Summary: X screen saver and locker Name: xscreensaver Version: 4.02 Release: 2 License: IBM_ILA Group: Amusements/Graphics URL: http://www.jwz.org/xscreensaver/ Vendor: Jamie Zawinski Source: http://www.jwz.org/xscreensaver/xscreensaver-%{version}.tar.gz Source1: IBM_ILA Source2: xscreensaver.txt Patch: xscreensaver-%{version}-nearest.patch Patch1: xscreensaver-%{version}-nongl.patch Obsoletes: xscreensaver-gl Buildroot: /var/tmp/xscreensaver-root %description A modular screen saver and locker for the X Window System. Highly customizable: allows the use of any program that can draw on the root window as a display mode. More than 100 display modes are included in this package. %{?USE_GL:See also the xscreensaver-gl package, which} %{?USE_GL:includes optional OpenGL display modes.} %{?USE_GL:%package gl} %{?USE_GL:Group: Amusements/Graphics} %{?USE_GL:Requires: xscreensaver = %{version}} %{?USE_GL:Summary: A set of GL screensavers} %{?USE_GL:%description gl} %{?USE_GL:The xscreensaver-gl package contains even more screensavers for your} %{?USE_GL:mind-numbing, ambition-eroding, time-wasting, hypnotized viewing} %{?USE_GL:pleasure. These screensavers require OpenGL or Mesa support.} %{?USE_GL: } %{?USE_GL:Install the xscreensaver-gl package if you need more screensavers} %{?USE_GL:for use with the X Window System and you have OpenGL or Mesa} %{?USE_GL:installed.} %prep %setup -q %patch -p1 -b .near %patch1 -p1 -b .non-gl # Add license info cat $RPM_SOURCE_DIR/IBM_ILA > LICENSE cat $RPM_SOURCE_DIR/xscreensaver.txt >> LICENSE %build %ifarch alpha RPMOPTS="--without-xf86vmode-ext" %endif %ifos solaris || %ifos aix RPMOPTS="$RPMOPTS --without-pam" %else RPMOPTS="$RPMOPTS --with-pam --without-shadow" %endif %{?USE_GL:RPMOPTS="$RPMOPTS --with-gl"} %{!?USE_GL:RPMOPTS="$RPMOPTS --without-gl"} CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \ --with-motif $RPMOPTS \ --with-hackdir=%{_prefix}/lib/xscreensaver \ --without-gnome #### --enable-subdir=../lib/xscreensaver \ make %install rm -rf $RPM_BUILD_ROOT # This is another (since "make install" doesn't try to install # the xscreensaver.kss file unless $KDEDIR is set.) # %{!?KDEDIR:%define KDEDIR /opt/freeware/kde} mkdir -p $RPM_BUILD_ROOT%{KDEDIR}/bin # And two more for Gnome (same reason...) # mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/control-center/Desktop mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/gnome/apps/Settings/Desktop mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin mkdir -p $RPM_BUILD_ROOT%{_prefix}/xscreensaver/app-defaults mkdir -p $RPM_BUILD_ROOT%{_prefix}/xscreensaver/lib mkdir -p $RPM_BUILD_ROOT%{_prefix}/man/man1 mkdir -p $RPM_BUILD_ROOT/usr/lpp/X11/lib/X11/app-defaults mkdir -p $RPM_BUILD_ROOT/usr/lpp/X11/bin make install_prefix=$RPM_BUILD_ROOT \ AD_DIR=%{_prefix}/xscreensaver/app-defaults \ HACKDIR=%{_prefix}/lib/xscreensaver \ KDEDIR=%{KDEDIR} \ install /usr/bin/strip $RPM_BUILD_ROOT%{_prefix}/bin/xscreensaver || : # Make a pair of lists, of the GL and non-GL hacks. # Do this by parsing the output of a dummy run of "make install" # in the hacks/ and hacks/glx/ directories. # list_files() { make -s install_prefix=$RPM_BUILD_ROOT INSTALL=true \ AD_DIR=%{_prefix}/xscreensaver/app-defaults \ HACKDIR=%{_prefix}/lib/xscreensaver \ install | sed -n -e 's@.* /\([^ ]*\)$@/\1@p' | sed -e "s@^$RPM_BUILD_ROOT@@" \ -e "s@/bin/..@@" | sort -u } ( cd hacks ; list_files > $RPM_BUILD_DIR/xscreensaver-%{version}/hacks-non-gl ) %{?USE_GL: ( cd hacks/glx ; list_files > $RPM_BUILD_DIR/xscreensaver-%{version}/hacks-gl ) } /usr/bin/strip $RPM_BUILD_ROOT%{_prefix}/bin/* $RPM_BUILD_ROOT%{_prefix}/lib/xscreensaver/* || : # This line is redundant, except that it causes the "xscreensaver" # executable to be installed unstripped (while all others are stripped.) # You should install it this way so that jwz gets useful bug reports. # # XX: Pfft, I say -- why give xscreensaver special debugging treatment # over any other application? I'm commenting this out! # %ifos unstripped # ha! install -m 4755 driver/xscreensaver $RPM_BUILD_ROOT%{_prefix}/bin %endif # Disable the capplet - let control-center install it rm -f $RPM_BUILD_ROOT/%{_prefix}/bin/screensaver-properties-capplet (cd $RPM_BUILD_ROOT cd ./usr/lpp/X11/bin ln -sf ../../../..%{_prefix}/bin/* . cd - cd ./usr/lpp/X11/lib/X11/app-defaults ln -sf ../../../../../..%{_prefix}/xscreensaver/app-defaults/* . cd - cd ./usr/lpp/X11/lib/X11 ln -sf ../../../..%{_prefix}/xscreensaver . ) # Make sure all files are readable by all, and writable only by owner. # chmod -R a+r,u+w,og-w $RPM_BUILD_ROOT %clean if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT ; fi if [ -d $RPM_BUILD_ROOT-gl ]; then rm -r $RPM_BUILD_ROOT-gl ; fi %files -f hacks-non-gl %defattr(-,root,root) # Files for the "xscreensaver" package: # /usr/share/pixmaps/* %doc README README.debugging LICENSE %{_prefix}/bin/* /usr/lpp/X11/bin/* %dir %{_prefix}/lib/xscreensaver %config %{_prefix}/xscreensaver/app-defaults/* /usr/lpp/X11/lib/X11/app-defaults /usr/lpp/X11/lib/X11/xscreensaver %config(missingok) %{KDEDIR}/bin/*.kss # Files for the "xscreensaver-gl" package: # %{?USE_GL:%files -f hacks-gl gl} %changelog * Fri Nov 22 2002 David Clissold - Add IBM ILA license. * Tue Jun 25 2002 Chris Tysor - New version, 4.02 * Wed Oct 31 2001 David Clissold - New version, 3.34 * Thu Oct 04 2001 Marc Stephenson - New version * Thu Sep 20 2001 Kevin Monroe - Configure without gnome support since capplet is removed * Thu May 24 2001 Marc Stephenson - Remove conflict with control-center over screensaver-propreties-capplet * Mon May 21 2001 Marc Stephenson - Version 3.32 * Fri Mar 18 2001 Marc Stephenson - Rebuild again against new shared objects * Fri Mar 09 2001 Marc Stephenson - Rebuild against new shared objects * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Wed Feb 09 2000 Preston Brown - wmconfig entry gone. * Mon Jan 31 2000 Bill Nottingham - update to 3.23 * Fri Jan 14 2000 Bill Nottingham - rebuild to fix GL depdencies * Tue Dec 14 1999 Bill Nottingham - everyone in GL - single package again * Fri Dec 10 1999 Bill Nottingham - update to 3.22 - turn off xf86vmode on alpha * Tue Dec 7 1999 Bill Nottingham - mmm... hardware accelerated GL on i386. :) :) * Mon Nov 22 1999 Bill Nottingham - 3.21 - use shm on alpha, let's see what breaks * Tue Nov 16 1999 Bill Nottingham - update to 3.20 * Wed Nov 3 1999 Bill Nottingham - update to 3.19 * Thu Oct 14 1999 Bill Nottingham - update to 3.18 * Sat Sep 25 1999 Bill Nottingham - add a '-oneshot' single time lock option. * Mon Sep 20 1999 Bill Nottingham - take webcollage out of random list (for people who pay for bandwidth) * Fri Sep 10 1999 Bill Nottingham - patch webcollage to use xloadimage - in the random list, run petri with -size 2 to save memory - extend RPM silliness to man pages, too. * Mon Jul 19 1999 Bill Nottingham - update to 3.17 - add a little RPM silliness to package GL stuff if it's built * Thu Jun 24 1999 Bill Nottingham - update to 3.16 * Mon May 10 1999 Bill Nottingham - update to 3.12 * Tue May 4 1999 Bill Nottingham - remove security problem introduced earlier * Wed Apr 28 1999 Bill Nottingham - update to 3.10 * Thu Apr 15 1999 Bill Nottingham - kill setuid the Right Way(tm) * Mon Apr 12 1999 Bill Nottingham - fix xflame on alpha * Mon Apr 12 1999 Preston Brown - upgrade to 3.09, fixes vmware interaction problems. * Mon Apr 5 1999 Bill Nottingham - remove setuid bit. Really. I mean it. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 3) * Fri Mar 19 1999 Bill Nottingham - kill setuid, since pam works OK * Tue Mar 16 1999 Bill Nottingham - update to 3.08 * Wed Feb 24 1999 Bill Nottingham - wmconfig returns, and no one is safe... * Tue Feb 23 1999 Bill Nottingham - remove bsod from random list because it's confusing people???? *sigh* * Tue Jan 12 1999 Cristian Gafton - call libtoolize to get it to compile cleanely on the arm * Tue Jan 5 1999 Bill Nottingham - update to 3.07 * Mon Nov 23 1998 Bill Nottingham - update to 3.06 * Tue Nov 17 1998 Bill Nottingham - update to 3.04 * Thu Nov 12 1998 Bill Nottingham - update to 3.02 - PAMify * Tue Oct 13 1998 Cristian Gafton - take out Noseguy module b/c of possible TMv - install modules in /usr/X11R6/lib/xscreensaver - don't compile support for xshm on the alpha - properly buildrooted - updated to version 2.34 * Fri Aug 7 1998 Bill Nottingham - update to 2.27 * Wed Jun 10 1998 Prospector System - translations modified for de * Mon Jun 08 1998 Erik Troan - added fix for argv0 buffer overflow * Fri Apr 24 1998 Prospector System - translations modified for de, fr, tr * Sat Apr 11 1998 Donnie Barnes - updated from 2.10 to 2.16 - added buildroot * Wed Oct 25 1997 Marc Ewing - wmconfig * Thu Oct 23 1997 Marc Ewing - new version, configure * Fri Aug 22 1997 Erik Troan - built against glibc