[gnome-software] trivial: Update the reference RPM spec file
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Update the reference RPM spec file
- Date: Mon, 2 Sep 2013 18:44:08 +0000 (UTC)
commit 5235f3891c2baef453505f16602dff63a99cdeff
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 2 19:38:27 2013 +0100
trivial: Update the reference RPM spec file
contrib/gnome-software.spec.in | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/contrib/gnome-software.spec.in b/contrib/gnome-software.spec.in
index 37039eb..b3a8a52 100644
--- a/contrib/gnome-software.spec.in
+++ b/contrib/gnome-software.spec.in
@@ -14,13 +14,11 @@ Requires: gnome-icon-theme
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: docbook-utils
+BuildRequires: desktop-file-utils
BuildRequires: glib2-devel >= 2.25.9-2
BuildRequires: gtk3-devel >= 3.9.12
BuildRequires: PackageKit-glib-devel >= 0.8.10
-Requires(post): /usr/bin/gtk-update-icon-cache
-Requires(postun): /usr/bin/gtk-update-icon-cache
-
%description
gnome-software is an application that makes it easy to add, remove
and update software in the GNOME desktop.
@@ -33,16 +31,18 @@ and update software in the GNOME desktop.
make %{?_smp_mflags}
%install
-make install DESTDIR=$RPM_BUILD_ROOT
+%make_install
-rm $RPM_BUILD_ROOT%{_libdir}/gs-plugins/*.a
-rm $RPM_BUILD_ROOT%{_libdir}/gs-plugins/*.la
+rm %{buildroot}%{_libdir}/gs-plugins/*.a
+rm %{buildroot}%{_libdir}/gs-plugins/*.la
%find_lang %name --with-gnome
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/gnome-software.desktop
+
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
-update-desktop-database %{_datadir}/applications &> /dev/null || :
%postun
if [ $1 -eq 0 ]; then
@@ -50,19 +50,20 @@ if [ $1 -eq 0 ]; then
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi
-update-desktop-database %{_datadir}/applications &> /dev/null || :
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%files -f %{name}.lang
-%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README
%{_bindir}/gnome-software
%{_datadir}/applications/gnome-software.desktop
+%dir %{_datadir}/gnome-software
%{_datadir}/gnome-software/*.png
+%{_datadir}/gnome-software/*.gz
%{_mandir}/man1/gnome-software.1.gz
+%dir %{_libdir}/gs-plugins
%{_libdir}/gs-plugins/*.so
%changelog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]