[dconf-editor] Initial import

Kalev Lember kalev at fedoraproject.org
Tue Mar 3 14:04:12 UTC 2015


commit 3e3a5b57d12e0558878e5a90f3d2b9abdd34f1c4
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Mar 3 15:02:16 2015 +0100

    Initial import
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1197898

 .gitignore                                |  1 +
 dconf-editor-appdata-screenshot-url.patch | 26 +++++++++++
 dconf-editor.spec                         | 78 +++++++++++++++++++++++++++++++
 sources                                   |  1 +
 4 files changed, 106 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..65255cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dconf-editor-3.15.91.tar.xz
diff --git a/dconf-editor-appdata-screenshot-url.patch b/dconf-editor-appdata-screenshot-url.patch
new file mode 100644
index 0000000..2adae9f
--- /dev/null
+++ b/dconf-editor-appdata-screenshot-url.patch
@@ -0,0 +1,26 @@
+From 4ef6f66673e45ca62aa0ef6a68ba1cb69e0fb01b Mon Sep 17 00:00:00 2001
+From: David King <amigadave at amigadave.com>
+Date: Tue, 3 Mar 2015 08:35:12 +0000
+Subject: [PATCH] Update AppData screenshot URL
+
+https://bugzilla.gnome.org/show_bug.cgi?id=745501
+---
+ editor/ca.desrt.dconf-editor.appdata.xml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/editor/ca.desrt.dconf-editor.appdata.xml b/editor/ca.desrt.dconf-editor.appdata.xml
+index f1ce2f0..c4ac9f2 100644
+--- a/editor/ca.desrt.dconf-editor.appdata.xml
++++ b/editor/ca.desrt.dconf-editor.appdata.xml
+@@ -12,7 +12,7 @@
+     </p>
+   </description>
+   <screenshots>
+-    <screenshot type="default" width="640" height="360">https://git.gnome.org/browse/dconf/plain/editor/screenshot.png</screenshot>
++    <screenshot type="default" width="640" height="360">https://git.gnome.org/browse/dconf-editor/plain/editor/screenshot.png</screenshot>
+   </screenshots>
+   <url type="homepage">https://wiki.gnome.org/Projects/dconf</url>
+ </application>
+-- 
+2.3.1
+
diff --git a/dconf-editor.spec b/dconf-editor.spec
new file mode 100644
index 0000000..dd85ec4
--- /dev/null
+++ b/dconf-editor.spec
@@ -0,0 +1,78 @@
+Name:           dconf-editor
+Version:        3.15.91
+Release:        3%{?dist}
+Summary:        Configuration editor for dconf
+
+License:        LGPLv2+
+URL:            https://wiki.gnome.org/Projects/dconf
+Source0:        https://download.gnome.org/sources/dconf-editor/3.15/dconf-editor-%{version}.tar.xz
+Patch0:         dconf-editor-appdata-screenshot-url.patch
+
+BuildRequires:  /usr/bin/appstream-util
+BuildRequires:  desktop-file-utils
+BuildRequires:  intltool
+BuildRequires:  pkgconfig(dconf)
+BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  pkgconfig(gmodule-2.0)
+BuildRequires:  pkgconfig(gtk+-3.0)
+BuildRequires:  pkgconfig(libxml-2.0)
+BuildRequires:  vala
+
+%description
+Graphical tool for editing the dconf configuration database.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%find_lang dconf
+
+%check
+appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/ca.desrt.dconf-editor.appdata.xml
+desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ca.desrt.dconf-editor.desktop
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+touch --no-create %{_datadir}/icons/HighContrast &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+    touch --no-create %{_datadir}/icons/HighContrast &>/dev/null || :
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+    gtk-update-icon-cache %{_datadir}/icons/HighContrast &>/dev/null || :
+    glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+gtk-update-icon-cache %{_datadir}/icons/HighContrast &>/dev/null || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
+
+%files -f dconf.lang
+%license COPYING
+%{_bindir}/dconf-editor
+%{_datadir}/appdata/ca.desrt.dconf-editor.appdata.xml
+%{_datadir}/applications/ca.desrt.dconf-editor.desktop
+%{_datadir}/dbus-1/services/ca.desrt.dconf-editor.service
+%{_datadir}/glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml
+%{_datadir}/icons/hicolor/*/apps/dconf-editor.png
+%{_datadir}/icons/HighContrast/
+
+%changelog
+* Tue Mar 03 2015 Kalev Lember <kalevlember at gmail.com> - 3.15.91-3
+- Fix unowned HighContrast icon theme directories (#1197898)
+
+* Tue Mar 03 2015 Kalev Lember <kalevlember at gmail.com> - 3.15.91-2
+- Fix appdata screenshot URL
+- Validate appdata during %%check
+
+* Mon Mar 02 2015 Kalev Lember <kalevlember at gmail.com> - 3.15.91-1
+- Initial Fedora packaging
diff --git a/sources b/sources
index e69de29..ad2f807 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b0e64b540891df062cebf8229b425a46  dconf-editor-3.15.91.tar.xz


More information about the scm-commits mailing list