#
# spec file for package gtk2-engines
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: gtk2-engines
License: GPL
Group: System/GUI/GNOME
Version: 2.6.3
Release: 1
Distribution: Java Desktop System
Vendor: Sun Microsystems, Inc.
Summary: Engines for GTK2 Themes
Source: http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.6/gtk-engines-%{version}.tar.bz2
Patch1: gtk-engines-01-clearlooks-install.diff
URL: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/doc
Autoreqprov: on
Prereq: /sbin/ldconfig
%define gtk2_version 2.4.0
BuildRequires: gtk2-devel >= %{gtk2_version}
Requires: gtk2 >= %{gtk2_version}
%description
This packages contains Theme-Engine libraries for GTK2
%prep
%setup -q -n gtk-engines-%{version}
%patch1 -p1
%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
libtoolize --copy --force
aclocal $ACLOCAL_FLAGS
automake -a -c -f
autoconf
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{_prefix} \
--libdir=%{_libdir}
make -j $CPUS
%install
make DESTDIR=$RPM_BUILD_ROOT install
#Clean up unpackaged files
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.4.0/engines/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-, root, root)
%{_libdir}/gtk-2.0/*/engines/*.so
%{_datadir}/themes/*
%{_libdir}/pkgconfig/*.pc
%changelog -n gtk2-engines
* Sat May 14 2005 - [email protected]
- Update to 2.6.3
* Wed Jul 07 2004 - [email protected]
- port to rpm4
* Wed Jul 07 2004 - [email protected]
- added "-j $CPUS" to make to speed up builds
* Thu Feb 26 2004 - [email protected]
- Uprevved release to 230 so there is a clean upgrade from quicksilver.
* Wed Jan 07 2004 - [email protected]
- Remove pixbuf static patch since it's upstream
* Tue Oct 20 2003 - [email protected]
- remove the thinice engine, since it's part of gnome-themes now
* Thu Aug 14 2003 - <[email protected]>
- remove *.a, *.la
* Tue Jul 15 2003 - <[email protected]>
- Make pixbuf_cache static so it doesn't conflict with other
global symbols of the same name.
* Thu Jul 02 2003 - <[email protected]>
- Make sure that we install the thinice engine
* Tue May 13 2003 - <[email protected]>
- initial release