Name: xscreensaver Summary: X screen saver and locker Vendor: Jamie Zawinski Version: 3.20 Release: 1 URL: http://www.jwz.org/xscreensaver/ Source: xscreensaver-%{version}.tar.gz Copyright: BSD Group: X11/Utilities 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. %prep %setup -q %build ./configure --prefix=/usr/X11R6 \ --enable-subdir=/usr/X11R6/lib/xscreensaver make all %install # This is the only directory that "make install" won't make as needed # (since Linux uses /etc/pam.d/* and Solaris uses /etc/pam.conf). # mkdir -p $RPM_BUILD_ROOT/etc/pam.d make prefix=$RPM_BUILD_ROOT/usr/X11R6 \ AD_DIR=$RPM_BUILD_ROOT/usr/X11R6/lib/X11/app-defaults \ HACKDIR=$RPM_BUILD_ROOT/usr/X11R6/lib/xscreensaver \ PAM_DIR=$RPM_BUILD_ROOT/etc/pam.d \ install-strip # 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. # install -m 4755 driver/xscreensaver $RPM_BUILD_ROOT/usr/X11R6/bin # Even if we weren't compiled with PAM support, make sure to include # the PAM module file in the RPM anyway, just in case. # ( cd driver; make PAM_DIR=$RPM_BUILD_ROOT/etc/pam.d install-pam ) # If we built multiple versions of xscreensaver-demo (because multiple # toolkits were available) then install them all. # ( cd driver; exes=`echo xscreensaver-demo-*` count=`echo $exes | wc -w` if [ $count -gt 1 ]; then for exe in $exes; do install -c -s $exe $RPM_BUILD_ROOT/usr/X11R6/bin done cd $RPM_BUILD_ROOT/usr/X11R6/bin if [ -x xscreensaver-demo-Xaw ]; then target=Xaw; fi if [ -x xscreensaver-demo-Xaw3d ]; then target=Xaw3d; fi if [ -x xscreensaver-demo-Xm ]; then target=Xm; fi if [ -x xscreensaver-demo-Gtk ]; then target=Gtk; fi rm -f xscreensaver-demo ln -s xscreensaver-demo-$target xscreensaver-demo fi ) # This is for wmconfig, a tool that generates init files for window managers. # mkdir -p $RPM_BUILD_ROOT/etc/X11/wmconfig cat > $RPM_BUILD_ROOT/etc/X11/wmconfig/xscreensaver < "$RPM_BUILD_ROOT/usr/share/apps/Amusements/Screen Savers/xscreensaver.desktop" <