nimbus.spec revision 10668
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# Owner: erwannc
10139N/A#
12285N/AName: nimbus
10139N/ASummary: Engine for GTK2 Nimbus Theme
10139N/AVersion: 0.0.6
10139N/A%define tarball_version %{version}
16372N/ARelease: 1
13494N/ALicense: LGPL
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/AGroup: System/GUI/GNOME
16167N/ASource: http://dlc.sun.com/osol/jds/downloads/extras/%{name}-%{tarball_version}.tar.bz2
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12285N/AURL: http://www.sun.com/software/javadesktopsystem/
12773N/A#owner:erwannc date:2006-09-20 type:branding
12773N/APatch1: nimbus-01-icon-name-mapping-hack.diff
12773N/A
13368N/A%define gtk2_version 2.4.0
16208N/A%define intltool_version 0.30
10139N/ABuildRequires: gtk2 >= %{gtk2_version}
10737N/ABuildRequires: intltool >= %{intltool_version}
11419N/A
10139N/A%description
13494N/AThis package contains the Nimbus theme engine for GTK2
11419N/A
11895N/A%prep
13494N/A%setup -q -n %name-%tarball_version
10737N/A%patch1 -p1
13494N/A
11420N/A%build
11044N/A%ifos linux
13494N/Aif [ -x /usr/bin/getconf ]; then
11420N/A CPUS=`getconf _NPROCESSORS_ONLN`
13368N/Afi
16081N/A%else
15306N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
16081N/A%endif
13494N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
16081N/A CPUS=1
14053N/Afi
16081N/A
14281N/Alibtoolize --force
14127N/Aaclocal $ACLOCAL_FLAGS -I .
16081N/Aautomake -a -c -f
14281N/Aautoconf
15825N/Aexport CFLAGS="%optflags"
16081N/Aexport LDFLAGS="%_ldflags"
15756N/A./autogen.sh --prefix=%{_prefix} \
16139N/A --libdir=%{_libdir} \
16139N/A --sysconfdir=%{_sysconfdir}
16139N/Amake -j $CPUS
16139N/Acd -
16139N/A
16339N/A%install
16339N/Amake DESTDIR=$RPM_BUILD_ROOT install
10737N/Arm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.a
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.la
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%defattr(-, root, root)
10139N/A%{_libdir}/gtk-2.0/*/engines/*.so
10139N/A%{_datadir}/themes/*
10139N/A%{_datadir}/icons/*
10139N/A%{_datadir}/locale/*
10139N/A%{_datadir}/pixmaps/*
10139N/A
10139N/A%changelog
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.
12285N/A* Mon May 12 2006 Erwann Chenede - <erwann.chenede@sun.com>
12285N/A- initial implementation of the spec file
12285N/A