nimbus.spec revision 18970
16517N/A#
16517N/A# spec file for package nimbus
16517N/A#
12092N/A# Copyright (c) 2006 Sun Microsystems, Inc.
12092N/A# This file and all modifications and additions to the pristine
10242N/A# package are under the same license as the package itself.
10242N/A#
10242N/A%define owner erwannc
10242N/A#
10242N/A
10242N/A%define OSR developed in the open, no OSR needed:n/a
10242N/A
16517N/AName: nimbus
10242N/ASummary: Engine for GTK2 Nimbus Theme
10242N/A# NOTE: If the version is bumped the new tarball must be uploaded to the
10242N/A# Sun Download Center. Contact GNOME RE for assistance.
10242N/AVersion: 0.1.5
10242N/A%define tarball_version %{version}
10242N/ARelease: 1
10242N/ALicense: LGPL
10242N/ADistribution: Java Desktop System
10242N/AVendor: Sun Microsystems, Inc.
10242N/AGroup: System/GUI/GNOME
10242N/ASource: http://dlc.sun.com/osol/jds/downloads/extras/nimbus/%{name}-%{tarball_version}.tar.bz2
10242N/ASource1: nimbus-media-play-rtl.png
10242N/ASource2: start-here.tar.bz2
10242N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10242N/AURL: http://www.sun.com/software/javadesktopsystem/
10242N/A## %SOURCE1 .png file needs to be upstreamed when the %patch2
10242N/A## rtl-icons.diff is upstreamed.
10242N/A#owner:fujiwara date:2009-04-10 type:bug bugster:6675046
10242N/APatch2: nimbus-02-rtl-icons.diff
10242N/A#owner:fujiwara date:2009-04-22 type:bug bugster:6641239
10242N/APatch3: nimbus-03-rtl-option-menu.diff
10242N/A
16517N/A%define gtk2_version 2.4.0
10622N/A%define intltool_version 0.30
10242N/ABuildRequires: gtk2 >= %{gtk2_version}
10242N/ABuildRequires: intltool >= %{intltool_version}
10622N/A
10622N/A%description
10242N/AThis package contains the Nimbus theme engine for GTK2
10242N/A
10242N/A%prep
10242N/A%setup -q -n %name-%tarball_version
10242N/Acp %SOURCE1 gtk-engine/gtk-2.0/media-play-rtl.png
10242N/Agtar jxvf %SOURCE2
10242N/Amv start-here-24.png icons/24x24/places/start-here.png
10242N/Amv start-here-32.png icons/32x32/places/start-here.png
10242N/Amv start-here-48.png icons/48x48/places/start-here.png
10242N/A%patch2 -p1
10242N/A%patch3 -p1
10242N/A
10242N/A%build
10242N/A%ifos linux
10242N/Aif [ -x /usr/bin/getconf ]; then
10242N/A CPUS=`getconf _NPROCESSORS_ONLN`
10242N/Afi
10242N/A%else
10242N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10242N/A%endif
10242N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10242N/A CPUS=1
10242N/Afi
10242N/A
10242N/Alibtoolize --force
10242N/Aaclocal $ACLOCAL_FLAGS -I .
10242N/Aautomake -a -c -f
10242N/Aautoconf
10242N/Aexport CFLAGS="%optflags"
10242N/Aexport LDFLAGS="%_ldflags"
10242N/A./autogen.sh --prefix=%{_prefix} \
10242N/A --libdir=%{_libdir} \
10242N/A --sysconfdir=%{_sysconfdir}
10242N/Amake -j $CPUS
10242N/Acd -
10242N/A
10242N/A%install
10242N/Amake DESTDIR=$RPM_BUILD_ROOT install
10242N/Arm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.a
10242N/Arm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.la
16517N/A
10242N/A%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_libdir}/gtk-2.0/*/engines/*.so
%{_datadir}/themes/*
%{_datadir}/icons/*
%{_datadir}/locale/*
%{_datadir}/pixmaps/*
%changelog
* Wed Apr 22 2009 - takao.fujiwara@sun.com
- Add patch nimbus-03-rtl-option-menu.diff CR 6641239. Fixes RTL for
GtkComboBox and GtkOptionMenu.
* Fri Apr 10 2009 - takao.fujiwara@sun.com
- Add patch nimbus-02-rtl-icons.diff CR 6675046
- Add media-play-rtl.png in ext-sources.
* Thu Aug 14 2008 - erwann@sun.com
- bumped to 0.0.17
* Fri May 18 2007 - laca@sun.com
- set CFLAGS/LDFLAGS and configure options such that we can use this spec
file for the 64-bit build too
* Fri Jul 21 2006 - damien.carbery@sun.com
- Add patch to comment out the redefine of an enum.
* Mon May 12 2006 Erwann Chenede - <erwann.chenede@sun.com>
- initial implementation of the spec file