[xfce4-cpugraph-plugin] Clean up specfile
Christoph Wickert
cwickert at fedoraproject.org
Sat Mar 12 12:55:04 UTC 2011
commit 51a0cb1d57d078f14f5a2cdfedc7b4b49c559ff4
Author: Christoph Wickert <cwickert at fedoraproject.org>
Date: Sat Mar 12 13:55:00 2011 +0100
Clean up specfile
xfce4-cpugraph-plugin.spec | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/xfce4-cpugraph-plugin.spec b/xfce4-cpugraph-plugin.spec
index 8740e2f..bd5c85a 100644
--- a/xfce4-cpugraph-plugin.spec
+++ b/xfce4-cpugraph-plugin.spec
@@ -1,3 +1,5 @@
+# Review: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173658
+
%global minor_version 1.0
Name: xfce4-cpugraph-plugin
@@ -11,7 +13,8 @@ URL: http://goodies.xfce.org/projects/panel-plugins/%{name}
Source0: http://archive.xfce.org/src/panel-plugins/%{name}/%{minor_version}/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: xfce4-panel-devel >= 4.4.0, libxfcegui4-devel >= 4.4.0, libxml2-devel
+BuildRequires: libxfcegui4-devel >= 4.4.0
+BuildRequires: xfce4-panel-devel >= 4.4.0
BuildRequires: intltool, gettext
Requires: xfce4-panel >= 4.4.1
@@ -20,30 +23,37 @@ A CPU monitor plugin for the Xfce panel. It offers multiple display modes
(LED, gradient, fire, etc...) to show the current CPU load of the system. The
colors and the size of the plugin are customizable.
+
%prep
%setup -q
+
%build
%configure
make %{?_smp_mflags}
+
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
%find_lang %{name}
+
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
+
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
%clean
rm -rf $RPM_BUILD_ROOT
More information about the scm-commits
mailing list