rpms/nimbus/devel nimbus.spec,1.1,1.2
Matej Cepl
mcepl at fedoraproject.org
Wed Sep 9 21:12:49 UTC 2009
Author: mcepl
Update of /cvs/pkgs/rpms/nimbus/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26017
Modified Files:
nimbus.spec
Log Message:
Universal .spec both for RHEL and Fedora
Index: nimbus.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nimbus/devel/nimbus.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- nimbus.spec 5 Aug 2009 08:00:51 -0000 1.1
+++ nimbus.spec 9 Sep 2009 21:12:49 -0000 1.2
@@ -1,6 +1,10 @@
+# Define Variables that must exist
+%{?!rhel:%define rhel 0}
+%{?!fedora:%define fedora 0}
+
Name: nimbus
Version: 0.0.17
-Release: 6%{?dist}
+Release: 8%{?dist}
Summary: Desktop theme originally from Sun
Group: User Interface/Desktops
@@ -22,7 +26,10 @@ Just a virtual package to collect all Ni
Summary: Desktop theme from Sun
Group: User Interface/Desktops
Requires: gtk-nimbus-engine, nimbus-icon-theme, nimbus-metacity-theme
+%if 0%{?fedora} >= 10
BuildArch: noarch
+%endif
+
%description -n nimbus-theme-gnome
The nimbus Theme Pack for Gnome make use of nimbus Metacity theme, nimbus
@@ -39,8 +46,14 @@ Gtk+ engine for %{name}.
%package -n nimbus-icon-theme
Summary: Icons for %{name}
Group: User Interface/Desktops
+%if 0%{?fedora} >= 10
BuildArch: noarch
+%endif
+%if 0%{?fedora} >= 10
Requires: fedora-logos
+%else
+Requires: redhat-artwork
+%endif
%description -n nimbus-icon-theme
Icons for %{name}.
@@ -48,7 +61,9 @@ Icons for %{name}.
%package -n nimbus-metacity-theme
Summary: Metacity theme for %{name}
Group: User Interface/Desktops
+%if 0%{?fedora} >= 10
BuildArch: noarch
+%endif
Requires: metacity
%description -n nimbus-metacity-theme
@@ -81,16 +96,24 @@ make install DESTDIR=$RPM_BUILD_ROOT
#no-la
find $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/ \( -name \*.la -o -name \*.a \) -delete
install -Dp -m 0644 index.theme \
- $RPM_BUILD_ROOT%{_datadir}/themes/nimbus/index.theme
+ $RPM_BUILD_ROOT%{_datadir}/themes/nimbus/index.theme
touch $RPM_BUILD_ROOT%{_datadir}/icons/nimbus/icon-theme.cache
# removing OpenSolaris branding use start-here.png from Fedora
+%if 0%{?fedora}
+%define theme_name Fedora
+%else
+%define theme_name Bluecurve
+%endif
find $RPM_BUILD_ROOT%{_datadir}/icons/nimbus/ -name start-here.png \
- |while read FILENAME ; do
- NEWICON=$(echo $FILENAME \
- |sed -e "s!$RPM_BUILD_ROOT.*nimbus\(.*\)\$!\.\./\.\./\.\./Fedora\1!")
- ln -sf -v $NEWICON $FILENAME
- done
+ |while read FILENAME ; do
+ NEWICON=$(echo $FILENAME \
+ |sed -e "s!$RPM_BUILD_ROOT.*nimbus\(.*\)\$!\.\./\.\./\.\./%{theme_name}\1!")
+%if 0%{?rhel}
+ NEWICON=$(echo $NEWICON|sed -e 's/places/mimetypes/')
+%endif
+ ln -sf -v $NEWICON $FILENAME
+ done
%clean
rm -rf $RPM_BUILD_ROOT
@@ -132,6 +155,9 @@ gtk-update-icon-cache %{_datadir}/icons/
%{_datadir}/themes/nimbus/index.theme
%changelog
+* Wed Sep 9 2009 Matěj Cepl <mcepl at redhat.com> - 0.0.17-8
+- use %%if and build both on RHEL and Fedora.
+
* Wed Aug 5 2009 Matěj Cepl <mcepl at redhat.com> - 0.0.17-6
- remove OpenSolaris branding
- add Requires for fedora-logos to nimbus-icon-theme
More information about the fedora-extras-commits
mailing list