%define version 0.8.0 %define release 1.fc4 %define xssdir /usr/X11R6 %define xssdata /usr/X11R6/lib/X11/app-defaults/XScreenSaver %define rsstemp /tmp/rss_glx %define redhatxsconfigdir /usr/share/xscreensaver/config %define kdessconfigdir /usr/share/applnk/System/ScreenSavers Summary: Really Slick Screensavers Name: rss-glx Version: %{version} Release: %{release} License: GPL Group: Amusements/Toys/Screensavers Source: %{name}_%{version}.tar.bz2 URL: http://rss-glx.sourceforge.net/ Autoreqprov: On BuildRoot: %{_tmppath}/%{name}_%{version}-build Requires: xscreensaver-base Patch0: rss-glx_0.8.0.fix-kdeconfigfile.diff %description The Really Slick Screensavers GLX port. A collection of fancy OpenGL screensavers ported from Windows to X for use with xscreensaver. Authors: -------- Tugrul Galatali %prep %setup -n %{name}_%{version} -b 0 %patch -p1 %build CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="$RPM_OPT_FLAGS" ./configure \ --prefix=%{xssdir} --mandir=%{xssdir}/man \ --with-configdir=%{redhatxsconfigdir} \ --with-kdessconfigdir=%{kdessconfigdir} --disable-sound make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install-strip %post if test -e %{xssdata} ; then echo Adding RSS_GLX to XScreenSaver program list sed '/*programs:/a\ GL: \"Cyclone\" cyclone --root \\n\\\ GL: \"Euphoria\" euphoria --root \\n\\\ GL: \"Fieldlines\" fieldlines --root \\n\\\ GL: \"Flocks\" flocks --root \\n\\\ GL: \"Flux\" flux --root \\n\\\ GL: \"Helios\" helios --root \\n\\\ GL: \"Lattice\" lattice --root \\n\\\ GL: \"Plasma\" plasma --root \\n\\\ GL: \"Skyrocket\" skyrocket --root \\n\\\ GL: \"Solarwinds\" solarwinds --root \\n\\\ GL: \"Colorfire\" colorfire --root \\n\\\ GL: \"Hufos Smoke\" hufo_smoke --root \\n\\\ GL: \"Hufos Tunnel\" hufo_tunnel --root \\n\\\ GL: \"Hyperspace\" hyperspace --root \\n\\\ GL: \"Sundancer2\" sundancer2 --root \\n\\\ GL: \"MatrixView\" matrixview --root \\n\\\ GL: \"SpiroGraphx\" spirographx --root \\n\\\ GL: \"BioF\" biof --root \\n\\\ GL: \"BusySpheres\" busyspheres --root \\n\\' %{xssdata} > %{rsstemp} \ && diff -q %{xssdata} %{rsstemp} || mv %{rsstemp} %{xssdata} fi %postun if test -e %{xssdata} ; then echo Removing RSS_GLX from XScreenSaver program list sed -e '/\"Cyclone\" cyclone/d' \ -e '/\"Euphoria\" euphoria/d' \ -e '/\"Fieldlines\" fieldlines/d' \ -e '/\"Flocks\" flocks/d' \ -e '/\"Flux\" flux/d' \ -e '/\"Helios\" helios/d' \ -e '/\"Lattice\" lattice/d' \ -e '/\"Plasma\" plasma/d' \ -e '/\"Skyrocket\" skyrocket/d' \ -e '/\"Solarwinds\" solarwinds/d' \ -e '/\"Colorfire\" colorfire/d' \ -e '/\"Hufos Smoke\" hufo_smoke/d' \ -e '/\"Hufos Tunnel\" hufo_tunnel/d' \ -e '/\"Hyperspace\" hyperspace/d' \ -e '/\"Sundancer2\" sundancer2/d' \ -e '/\"MatrixView\" matrixview/d' \ -e '/\"SpiroGraphx\" spirographx/d' \ -e '/\"BioF\" biof/d' \ -e '/\"BusySpheres\" busyspheres/d' %{xssdata} > %{rsstemp} \ && diff -q %{xssdata} %{rsstemp} || mv %{rsstemp} %{xssdata} fi %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc COPYING INSTALL README README.xscreensaver %{xssdir}/bin/* %{xssdir}/man/*/* %{xssdir}/lib/* %{redhatxsconfigdir}/*.xml %{kdessconfigdir}/*.desktop