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