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