nimbus.spec revision 11968
10139N/A#
10139N/A# spec file for package nimbus
10139N/A#
10139N/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#
10139N/AName: nimbus
10139N/ASummary: Engine for GTK2 Nimbus Theme
11968N/AVersion: 0.0.10
10139N/A%define tarball_version %{version}
10139N/ARelease: 1
10139N/ALicense: LGPL
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/AGroup: System/GUI/GNOME
10139N/ASource: http://dlc.sun.com/osol/jds/downloads/extras/%{name}-%{tarball_version}.tar.bz2
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/AURL: http://www.sun.com/software/javadesktopsystem/
10139N/A#owner:erwannc date:2006-09-20 type:branding
10139N/APatch1: nimbus-01-icon-name-mapping-hack.diff
10139N/A
10139N/A%define gtk2_version 2.4.0
10139N/A%define intltool_version 0.30
10139N/ABuildRequires: gtk2 >= %{gtk2_version}
10139N/ABuildRequires: intltool >= %{intltool_version}
10139N/A
10139N/A%description
10139N/AThis package contains the Nimbus theme engine for GTK2
10139N/A
10139N/A%prep
10139N/A%setup -q -n %name-%tarball_version
10139N/A%patch1 -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
10668N/Aexport CFLAGS="%optflags"
10668N/Aexport LDFLAGS="%_ldflags"
10139N/A./autogen.sh --prefix=%{_prefix} \
10668N/A --libdir=%{_libdir} \
10139N/A --sysconfdir=%{_sysconfdir}
10139N/Amake -j $CPUS
10139N/Acd -
10139N/A
10139N/A%install
10139N/Amake DESTDIR=$RPM_BUILD_ROOT install
10139N/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
10668N/A* Fri May 18 2007 - laca@sun.com
10668N/A- set CFLAGS/LDFLAGS and configure options such that we can use this spec
10668N/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