1 %define name xscreensaver
4 Summary: X screen saver and locker
10 Group: Amusements/Graphics
11 URL: http://www.jwz.org/xscreensaver/
12 Source0: http://www.jwz.org/xscreensaver/xscreensaver-%{version}.tar.gz
13 Vendor: Jamie Zawinski <jwz@jwz.org>
14 Buildroot: %{_tmppath}/%{name}-root
17 Summary: A minimal installation of xscreensaver.
18 Summary(fr): Une installation minimale de xscreensaver.
19 Group: Amusements/Graphics
21 BuildRequires: gettext
22 BuildRequires: pam-devel
23 BuildRequires: gtk2-devel
24 BuildRequires: desktop-file-utils
26 BuildRequires: xorg-x11-devel
27 BuildRequires: libglade2-devel
29 #BuildRequires: libxorg-x11-devel
30 #BuildRequires: libglade2.0_0-devel
32 Requires: /etc/pam.d/system-auth
34 Requires: desktop-backgrounds-basic
35 Provides: xscreensaver
36 Provides: xscreensaver-base
37 Obsoletes: xscreensaver
40 Summary: An enhanced set of screensavers.
41 Summary(fr): Un jeu étendu d'économiseurs d'écran.
42 Group: Amusements/Graphics
43 Requires: xscreensaver-base
46 Summary: An enhanced set of screensavers that require OpenGL.
47 Summary(fr): Un jeu étendu d'économiseurs d'écran qui nécessitent OpenGL.
48 Group: Amusements/Graphics
49 Requires: xscreensaver-base
50 Obsoletes: xscreensaver-gl
53 A modular screen saver and locker for the X Window System.
54 More than 200 display modes are included in this package.
57 Un économiseur d'écran modulaire pour le système X Window.
58 Plus de 200 modes d'affichages sont inclus dans ce paquet.
61 A modular screen saver and locker for the X Window System.
62 This package contains the bare minimum needed to blank and
63 lock your screen. The graphical display modes are the
64 "xscreensaver-extras" and "xscreensaver-gl-extras" packages.
66 %description -l fr base
67 Un économiseur d'écran modulaire pour le système X Window.
68 Ce paquet contient le minimum vital pour éteindre et verouiller
69 votre écran. Les modes d'affichages graphiques sont inclus
70 dans les paquets "xscreensaver-extras" et "xscreensaver-gl-extras".
73 A modular screen saver and locker for the X Window System.
74 This package contains a variety of graphical screen savers for
75 your mind-numbing, ambition-eroding, time-wasting, hypnotized
78 %description -l fr extras
79 Un économiseur d'écran modulaire pour le système X Window.
80 Ce paquet contient une pléthore d'économiseurs d'écran graphiques
81 pour votre plaisir des yeux.
83 %description gl-extras
84 A modular screen saver and locker for the X Window System.
85 This package contains a variety of OpenGL-based (3D) screen
86 savers for your mind-numbing, ambition-eroding, time-wasting,
87 hypnotized viewing pleasure.
89 %description -l fr gl-extras
90 Un économiseur d'écran modulaire pour le système X Window.
91 Ce paquet contient une pléthore d'économiseurs d'écran basés sur OpenGL (3D)
92 pour votre plaisir des yeux.
97 if [ -x %{_datadir}/libtool/config.guess ]; then
98 # use system-wide copy
99 cp -p %{_datadir}/libtool/config.{sub,guess} .
103 archdir=`./config.guess`
107 export CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}"
109 CONFIG_OPTS="--prefix=/usr --with-pam --without-shadow --without-kerberos"
111 # Red Hat doesn't like this:
112 CONFIG_OPTS="$CONFIG_OPTS --with-setuid-hacks"
115 # CONFIG_OPTS="$CONFIG_OPTS --with-login-manager"
118 %configure $CONFIG_OPTS
124 archdir=`./config.guess`
127 rm -rf ${RPM_BUILD_ROOT}
129 # We have to make sure these directories exist,
130 # or nothing will be installed into them.
132 mkdir -p $RPM_BUILD_ROOT%{_bindir} \
133 $RPM_BUILD_ROOT%{_datadir}/xscreensaver \
134 $RPM_BUILD_ROOT%{_libexecdir}/xscreensaver \
135 $RPM_BUILD_ROOT%{_mandir}/man1/xscreensaver \
136 $RPM_BUILD_ROOT/etc/pam.d
138 make install_prefix=$RPM_BUILD_ROOT install
140 desktop-file-install --vendor gnome --delete-original \
141 --dir $RPM_BUILD_ROOT%{_datadir}/applications \
142 $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
144 # This function prints a list of things that get installed.
145 # It does this by parsing the output of a dummy run of "make install".
148 make -s install_prefix=${RPM_BUILD_ROOT} INSTALL=true "$@" \
149 | sed -n -e 's@.* \(/[^ ]*\)$@\1@p' \
150 | sed -e "s@^${RPM_BUILD_ROOT}@@" \
151 -e "s@/[a-z][a-z]*/\.\./@/@" \
152 | sed -e 's@\(.*/man/.*\)@\1\*@' \
153 | sed -e 's@\(.*/app-defaults/\)@%config \1@' \
154 -e 's@\(.*/pam\.d/\)@%config(missingok) \1@' \
158 # Generate three lists of files for the three packages.
160 dd=%{_builddir}/%{name}-%{version}
161 ( cd hacks ; list_files install ) > $dd/extras.files
162 ( cd hacks/glx ; list_files install ) > $dd/gl-extras.files
163 ( cd driver ; list_files install ) > $dd/base.files
164 #( cd po ; list_files install ) >> $dd/base.files
167 cat %{name}.lang >> $dd/base.files
170 # Make sure all files are readable by all, and writable only by owner.
172 chmod -R a+r,u+w,og-w ${RPM_BUILD_ROOT}
175 rm -rf ${RPM_BUILD_ROOT}
178 # This part runs on the end user's system, when the RPM is installed.
180 # This will cause the screen to unlock, which annoys people. So, nevermind:
181 # people will just have to remember to re-launch it themselves, like they
182 # have to do with any other daemon they've upgraded.
184 #pids=`/sbin/pidof xscreensaver`
185 #if [ -n "$pids" ]; then
186 # echo "sending SIGHUP to running xscreensaver ($pids)..." >&2
190 %files -f base.files base
191 %defattr(-,root,root)
193 %files -f extras.files extras
194 %defattr(-,root,root)
196 %files -f gl-extras.files gl-extras
197 %defattr(-,root,root)
200 * Fri Nov 4 2005 Eric Lassauge <lassauge@users.sf.net>
201 - Updated french translations