%define extra_builds gtk-thinice-theme-1.0.3 notif2-1.0 Summary: Theme engines for GTK+. Name: gtk-engines Version: 0.12 Release: 1 Epoch: 1 License: GPL Group: System Environment/Libraries Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.gz Source1: GTKstep.tar.gz Source2: Notif2-1.0.tar.gz Source3: ThinIce.tar.gz # Some extra themes from gtk.themes.org Source4: Basic.tar.gz Source5: BeOS.tar.gz Source6: Blue-n-Gray.tar.gz Source7: BrushedMetalClean.tar.gz Source8: Cheese.tar.gz Source9: Forest-Green.tar.gz Source10: Gradient.tar.gz Source11: Macos-Blue-8.6.tar.gz Source12: QNX-Photon.tar.gz Source13: Quiet.tar.gz Source14: Smoke.tar.gz Source20: gtkrc-skel Requires: gtk+ >= 1.2.8-9 BuildRequires: gtk+-devel >= 1.2.8-9 BuildRequires: imlib-devel Url: http://gtk.themes.org BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The gtk-engines package contains shared objects and configuration files that implement a number of GTK+ theme engines. Theme engines provide different looks for GTK+, some of which resemble other toolkits or operating systems. %prep %setup -q -a 2 -a 3 -a 4 -a 5 -a 6 %build libtoolize --force aclocal automake autoconf CFLAGS="$RPM_OPT_FLAGS" %configure make for I in `echo %{extra_builds}`; do cd $I libtoolize --force aclocal automake autoconf CFLAGS="$RPM_OPT_FLAGS" %configure --cache-file=../config.cache make cd .. done %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT # # makefile is broken, sets exec_prefix explicitely. # %makeinstall for I in `echo %{extra_builds}`; do cd $I %makeinstall cd .. done for I in Basic BeOS Blue-n-Gray BrushedMetalClean Cheese \ Forest-Green Gradient Macos-Blue-8.6 QNX-Photon Quiet; do tar -C $RPM_BUILD_ROOT%{_prefix}/share/themes -xzf $RPM_SOURCE_DIR/$I.tar.gz done (cd $RPM_BUILD_ROOT%{_prefix}/share/themes; # Here's where I get to give themes dumb names because of possible # trademarks mv QNX-Photon LightSpeed mv macos8.6-blue MockMack mv BeOS BeCool ) # remove backup files that shouldn't be here. Fix me. find $RPM_BUILD_ROOT%{_prefix}/share/themes -name \*~ | xargs rm -rvf # No, we don't need to package these either find $RPM_BUILD_ROOT%{_prefix}/share/themes -type d -name ".xvpics" | xargs rm -rvf # sanitize permissions find $RPM_BUILD_ROOT%{_prefix}/share/themes -type d -exec chmod 755 {} \; find $RPM_BUILD_ROOT%{_prefix}/share/themes -type f -name "*.png" -exec chmod 644 {} \; find $RPM_BUILD_ROOT%{_prefix}/share/themes -name "gtkrc*" -perm +111 -exec chmod 644 {} \; ./mkinstalldirs $RPM_BUILD_ROOT%{_sysconfdir}/skel install -m 0644 %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.gtkrc ./mkinstalldirs $RPM_BUILD_ROOT/root install -m 0644 %{SOURCE20} $RPM_BUILD_ROOT/root/.gtkrc %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644, root, root, 755) %doc COPYING README ChangeLog %attr (755, root, root) %{_prefix}/lib/gtk/themes/engines/* %{_prefix}/share/themes/* %config %{_sysconfdir}/skel/.gtkrc %config /root/.gtkrc %changelog * Thu Aug 9 2001 Owen Taylor - Install /etc/skel/.gtkrc as /root/.gtkrc as well, or we don't get Raleigh for our nice config tools * Sat Jul 21 2001 Owen Taylor - Add BuildPrereq on imlib-devel (#49478) * Tue Jul 10 2001 Owen Taylor - Version 0.11 - Install a /etc/skel/.gtkrc * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Sat Feb 10 2001 Owen Taylor - New, slightly improved version of Raleigh * Sun Feb 04 2001 Owen Taylor - Require as well as BuildPrereq a sufficiently new GTK+ package. * Wed Jan 17 2001 Owen Taylor - remove references to /home/raster from a couple of themes * Tue Nov 21 2000 Owen Taylor - Add 'Raleigh' theme * Fri Aug 11 2000 Jonathan Blandford - Up Epoch and release * Thu Jul 13 2000 Owen Taylor - Go back to real gtk-engines-0.10.tar.gz instead of hosed cvs snapshot that someone had inserted. * Thu Jul 13 2000 Prospector - automatic rebuild * Mon Jun 19 2000 Dave Mason - Removed many themes to speed up control center and get rid of ugly themes * Sat Jun 17 2000 Matt Wilson - defattr files 644 and dirs 755, list attr of 755 for libraries explicitly - use %%makeinstall - remove spec file stupidism (defining docdir, using own prefix macro, rel, ver, etc) * Tue May 16 2000 Dave Mason - fixed Tiger, RatsTheme, OldWood, and LCD themes as they had no gtk subdirectory * Tue Feb 22 2000 Bill Nottingham - sanitize various things (permissions, .xv thumbnails) * Thu Feb 10 2000 Preston Brown - remove backup files from package * Tue Jan 25 2000 Owen Taylor - Update to 0.10 (fixing problem with text in eventboxes becoming garbled) * Wed Sep 15 1999 Elliot Lee - Misc fixes from DrMike suggestions * Thu Sep 09 1999 Elliot Lee - Update to 0.6, etc. * Wed Apr 14 1999 Michael Fulbright - removed Odo (has issues) * Fri Apr 9 1999 The Rasterman - patched metal theme - fixed handlebox redraw. * Wed Mar 31 1999 Michael Fulbright - removed some themes that were misbehaving * Tue Mar 16 1999 Michael Fulbright - removed enlightened themes, seems to be defective * Thu Mar 11 1999 Michael Fulbright - removed Default theme data, this comes with gtk+ package * Wed Mar 10 1999 Michael Fulbright - added extra gtk themes * Thu Mar 04 1999 Michael Fulbright - version 0.5 * Fri Feb 12 1999 Michael Fulbright - version 0.4 * Wed Feb 03 1999 Michael Fulbright - version 0.3 * Mon Dec 18 1998 Michael Fulbright - version 0.2 * Wed Dec 16 1998 Michael Fulbright - rebuild because gtk+ version changed * Wed Dec 16 1998 Michael Fulbright - in preparation for GNOME freeze * Fri Nov 20 1998 Michael Fulbright - First try at a spec file