1 | %define modular_conf 1 |
---|
2 | |
---|
3 | %define default_text %{_datadir}/doc/HTML/README-Accessibility |
---|
4 | |
---|
5 | %define pam_ver 1.1 |
---|
6 | %define autoconf_ver 2.65 |
---|
7 | |
---|
8 | %define update_po 1 |
---|
9 | |
---|
10 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
11 | |
---|
12 | Summary: X screen saver and locker |
---|
13 | Summary(ja): X ウィンドウシステム・スクリーンセーバ |
---|
14 | Name: xscreensaver |
---|
15 | Version: 5.11 |
---|
16 | Release: 1%{?_dist_release} |
---|
17 | Epoch: 1 |
---|
18 | License: BSD |
---|
19 | Group: User Interface/X |
---|
20 | URL: http://www.jwz.org/xscreensaver/ |
---|
21 | |
---|
22 | Source0: http://www.jwz.org/xscreensaver/xscreensaver-%{version}%{?beta_ver}.tar.gz |
---|
23 | %if %{modular_conf} |
---|
24 | Source10: update-xscreensaver-hacks |
---|
25 | %endif |
---|
26 | Patch1: xscreensaver-5.00b5-sanitize-hacks.patch |
---|
27 | Patch3: xscreensaver-5.05-addopts-jwz.patch |
---|
28 | Patch21: xscreensaver-5.05-webcollage-default-nonet.patch |
---|
29 | Patch22: xscreensaver-5.05-penetrate-font.patch |
---|
30 | Requires: xscreensaver-base = %{epoch}:%{version}-%{release} |
---|
31 | Requires: xscreensaver-extras = %{epoch}:%{version}-%{release} |
---|
32 | Requires: xscreensaver-gl-extras = %{epoch}:%{version}-%{release} |
---|
33 | |
---|
34 | %package base |
---|
35 | Summary: A minimal installation of xscreensaver |
---|
36 | Group: User Interface/Desktops |
---|
37 | BuildRequires: autoconf |
---|
38 | BuildRequires: bc |
---|
39 | BuildRequires: desktop-file-utils |
---|
40 | BuildRequires: gawk |
---|
41 | BuildRequires: gettext |
---|
42 | BuildRequires: libtool |
---|
43 | BuildRequires: pam-devel > %{pam_ver} |
---|
44 | BuildRequires: sed |
---|
45 | BuildRequires: xdg-utils |
---|
46 | BuildRequires: xorg-x11-proto-devel |
---|
47 | BuildRequires: libX11-devel |
---|
48 | BuildRequires: libXScrnSaver-devel |
---|
49 | BuildRequires: libXext-devel |
---|
50 | BuildRequires: libXinerama-devel |
---|
51 | BuildRequires: libXmu-devel |
---|
52 | BuildRequires: libXpm-devel |
---|
53 | BuildRequires: libXt-devel |
---|
54 | BuildRequires: libXxf86misc-devel |
---|
55 | BuildRequires: libXxf86vm-devel |
---|
56 | BuildRequires: gtk2-devel |
---|
57 | BuildRequires: libjpeg-devel |
---|
58 | BuildRequires: libglade2-devel |
---|
59 | Requires: %{_sysconfdir}/pam.d/system-auth |
---|
60 | Requires: pam > %{pam_ver} |
---|
61 | Requires: xdg-utils |
---|
62 | Requires: xorg-x11-resutils |
---|
63 | Requires: xorg-x11-fonts-ISO8859-1-100dpi |
---|
64 | |
---|
65 | %package extras |
---|
66 | Summary: An enhanced set of screensavers |
---|
67 | Group: User Interface/Desktops |
---|
68 | BuildRequires: desktop-backgrounds |
---|
69 | Requires: %{name}-base = %{epoch}:%{version}-%{release} |
---|
70 | |
---|
71 | %package gl-base |
---|
72 | Summary: A base package for screensavers that require OpenGL |
---|
73 | Group: User Interface/Desktops |
---|
74 | Requires: %{name}-base = %{epoch}:%{version}-%{release} |
---|
75 | |
---|
76 | %package gl-extras |
---|
77 | Summary: An enhanced set of screensavers that require OpenGL |
---|
78 | Group: User Interface/Desktops |
---|
79 | Provides: xscreensaver-gl = %{epoch}:%{version}-%{release} |
---|
80 | Obsoletes: xscreensaver-gl <= 1:5.00 |
---|
81 | BuildRequires: libGL-devel |
---|
82 | BuildRequires: libGLU-devel |
---|
83 | %if %{modular_conf} |
---|
84 | Requires: %{name}-gl-base = %{epoch}:%{version}-%{release} |
---|
85 | %else |
---|
86 | Requires: %{name}-base = %{epoch}:%{version}-%{release} |
---|
87 | %endif |
---|
88 | |
---|
89 | %package extras-gss |
---|
90 | Summary: Desktop files of extras for gnome-screensaver |
---|
91 | Group: User Interface/Desktops |
---|
92 | Requires: %{name}-extras = %{epoch}:%{version}-%{release} |
---|
93 | Requires: gnome-screensaver |
---|
94 | |
---|
95 | %package gl-extras-gss |
---|
96 | Summary: Desktop files of gl-extras for gnome-screensaver |
---|
97 | Group: User Interface/Desktops |
---|
98 | Requires: %{name}-gl-extras = %{epoch}:%{version}-%{release} |
---|
99 | Requires: gnome-screensaver |
---|
100 | |
---|
101 | |
---|
102 | %description |
---|
103 | A modular screen saver and locker for the X Window System. |
---|
104 | More than 200 display modes are included in this package. |
---|
105 | |
---|
106 | This is a metapackage for installing all default packages |
---|
107 | related to XScreenSaver. |
---|
108 | |
---|
109 | %description base |
---|
110 | A modular screen saver and locker for the X Window System. |
---|
111 | This package contains the bare minimum needed to blank and |
---|
112 | lock your screen. The graphical display modes are the |
---|
113 | "xscreensaver-extras" and "xscreensaver-gl-extras" packages. |
---|
114 | |
---|
115 | %description extras |
---|
116 | A modular screen saver and locker for the X Window System. |
---|
117 | This package contains a variety of graphical screen savers for |
---|
118 | your mind-numbing, ambition-eroding, time-wasting, hypnotized |
---|
119 | viewing pleasure. |
---|
120 | |
---|
121 | %description gl-base |
---|
122 | A modular screen saver and locker for the X Window System. |
---|
123 | This package contains minimal files to make screensaver hacks |
---|
124 | that require OpenGL work for XScreenSaver. |
---|
125 | |
---|
126 | %description gl-extras |
---|
127 | A modular screen saver and locker for the X Window System. |
---|
128 | This package contains a variety of OpenGL-based (3D) screen |
---|
129 | savers for your mind-numbing, ambition-eroding, time-wasting, |
---|
130 | hypnotized viewing pleasure. |
---|
131 | |
---|
132 | %description extras-gss |
---|
133 | This package contains desktop files of extras screensavers |
---|
134 | for gnome-screensaver compatibility. |
---|
135 | |
---|
136 | %description gl-extras-gss |
---|
137 | This package contains desktop files of gl-extras screensavers |
---|
138 | for gnome-screensaver compatibility. |
---|
139 | |
---|
140 | |
---|
141 | |
---|
142 | %prep |
---|
143 | %setup -q -n %{name}-%{version}%{?beta_ver} |
---|
144 | |
---|
145 | %patch1 -p1 -b .sanitize-hacks |
---|
146 | ## %patch3 -p1 -b .opts |
---|
147 | ## %patch21 -p1 -b .nonet |
---|
148 | ## %patch22 -p1 -b .font |
---|
149 | |
---|
150 | change_option(){ |
---|
151 | set +x |
---|
152 | ADFILE=$1 |
---|
153 | if [ ! -f ${ADFILE}.opts ] ; then |
---|
154 | cp -p $ADFILE ${ADFILE}.opts |
---|
155 | fi |
---|
156 | shift |
---|
157 | |
---|
158 | for ARG in "$@" ; do |
---|
159 | TYPE=`echo $ARG | sed -e 's|=.*$||'` |
---|
160 | VALUE=`echo $ARG | sed -e 's|^.*=||'` |
---|
161 | |
---|
162 | eval sed -i \ |
---|
163 | -e \'s\|\^\\\(\\\*$TYPE\:\[ \\t\]\[ \\t\]\*\\\)\[\^ \\t\]\.\*\$\|\\1$VALUE\|\' \ |
---|
164 | $ADFILE |
---|
165 | done |
---|
166 | set -x |
---|
167 | } |
---|
168 | |
---|
169 | silence_hack(){ |
---|
170 | set +x |
---|
171 | ADFILE=$1 |
---|
172 | if [ ! -f ${ADFILE}.hack ] ; then |
---|
173 | cp -p $ADFILE ${ADFILE}.hack |
---|
174 | fi |
---|
175 | shift |
---|
176 | |
---|
177 | for hack in "$@" ; do |
---|
178 | eval sed -i \ |
---|
179 | -e \'\/\^\[ \\t\]\[ \\t\]\*$hack\/s\|\^\|-\|g\' \ |
---|
180 | -e \'s\|\^@GL_\.\*@.*\\\(GL\:\[ \\t\]\[ \\t\]\*$hack\\\)\|-\\t\\1\|g\' \ |
---|
181 | $ADFILE |
---|
182 | done |
---|
183 | set -x |
---|
184 | } |
---|
185 | |
---|
186 | # change some files to UTF-8 |
---|
187 | for f in \ |
---|
188 | driver/XScreenSaver.ad.in \ |
---|
189 | hacks/glx/sproingies.man \ |
---|
190 | ; do |
---|
191 | iconv -f ISO-8859-1 -t UTF-8 $f > $f.tmp || cp -p $f $f.tmp |
---|
192 | touch -r $f $f.tmp |
---|
193 | mv $f.tmp $f |
---|
194 | done |
---|
195 | |
---|
196 | # change some options |
---|
197 | change_option driver/XScreenSaver.ad.in \ |
---|
198 | captureStderr=False \ |
---|
199 | passwdTimeout=0:00:15 \ |
---|
200 | grabDesktopImages=False \ |
---|
201 | lock=True \ |
---|
202 | splash=False \ |
---|
203 | ignoreUninstalledPrograms=True \ |
---|
204 | textProgram=fortune\ -s |
---|
205 | |
---|
206 | # silence the following hacks by default |
---|
207 | silence_hack driver/XScreenSaver.ad.in \ |
---|
208 | bsod flag |
---|
209 | |
---|
210 | # record time, version |
---|
211 | eval sed -i.ver \ |
---|
212 | -e \'s\|version \[45\]\.\[0-9a-z\]\[0-9a-z\]\*\|version %{version}-`echo \ |
---|
213 | %{release} | sed -e 's|\.[a-z][a-z0-9].*$||'`\|\' \ |
---|
214 | driver/XScreenSaver.ad.in |
---|
215 | |
---|
216 | eval sed -i.date \ |
---|
217 | -e \'s\|\[0-9\].\*-.\*-20\[0-9\]\[0-9\]\|`LANG=C date -u +'%%d-%%b-%%Y'`\|g\' \ |
---|
218 | driver/XScreenSaver.ad.in |
---|
219 | |
---|
220 | eval sed -i.ver \ |
---|
221 | -e \'s\|\(\[0-9\].\*-.\*-20\[0-9\]\[0-9\]\)\|\(`LANG=C \ |
---|
222 | date -u +'%%d-%%b-%%Y'`\)\|g\' \ |
---|
223 | -e \'s\|\\\(5.\[0-9\]\[0-9\]\\\)[a-z]\[0-9\]\[0-9\]\*\|\\\1\|\' \ |
---|
224 | -e \'s\|5.\[0-9\]\[0-9\]\|%{version}-`echo %{release} | \ |
---|
225 | sed -e 's|\.[a-zA-Z][a-zA-Z0-9].*$||'`\|\' \ |
---|
226 | utils/version.h |
---|
227 | |
---|
228 | # move man entry to 6x. |
---|
229 | for f in `find hacks -name Makefile.in` ; do |
---|
230 | sed -i.mansuf \ |
---|
231 | -e '/^mansuffix/s|6|6x|'\ |
---|
232 | $f |
---|
233 | done |
---|
234 | |
---|
235 | # search first 6x entry, next 1 entry for man pages |
---|
236 | sed -i.manentry -e 's@man %%s@man 6x %%s 2>/dev/null || man 1 %%s @' \ |
---|
237 | driver/XScreenSaver.ad.in |
---|
238 | |
---|
239 | # suppress rpmlint booing. |
---|
240 | # suppress about pam config (although this is |
---|
241 | # not the fault of xscreensaver.pam ......). |
---|
242 | sed -i.rpmlint -n -e '1,5p' driver/xscreensaver.pam |
---|
243 | |
---|
244 | if [ -x %{_datadir}/libtool/config.guess ]; then |
---|
245 | # use system-wide copy |
---|
246 | cp -p %{_datadir}/libtool/config.{sub,guess} . |
---|
247 | fi |
---|
248 | |
---|
249 | # fix for desktop-file-utils 0.14+ |
---|
250 | sed -i.icon -e 's|xscreensaver\.xpm|xscreensaver|' \ |
---|
251 | driver/screensaver-properties.desktop.in |
---|
252 | |
---|
253 | %build |
---|
254 | autoconf |
---|
255 | |
---|
256 | archdir=`./config.guess` |
---|
257 | mkdir $archdir |
---|
258 | cd $archdir |
---|
259 | |
---|
260 | export CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" |
---|
261 | |
---|
262 | CONFIG_OPTS="--prefix=%{_prefix} --with-pam --without-shadow --without-kerberos" |
---|
263 | CONFIG_OPTS="$CONFIG_OPTS --without-setuid-hacks" |
---|
264 | CONFIG_OPTS="$CONFIG_OPTS --with-text-file=%{default_text}" |
---|
265 | CONFIG_OPTS="$CONFIG_OPTS --with-x-app-defaults=%{_datadir}/X11/app-defaults" |
---|
266 | CONFIG_OPTS="$CONFIG_OPTS --disable-root-passwd" |
---|
267 | CONFIG_OPTS="$CONFIG_OPTS --with-browser=xdg-open" |
---|
268 | |
---|
269 | # This is flaky: |
---|
270 | # CONFIG_OPTS="$CONFIG_OPTS --with-login-manager" |
---|
271 | |
---|
272 | ln -s ../configure . |
---|
273 | %configure $CONFIG_OPTS |
---|
274 | rm -f configure |
---|
275 | |
---|
276 | %if %{update_po} |
---|
277 | ( cd po ; make generate_potfiles_in update-po ) |
---|
278 | %endif |
---|
279 | |
---|
280 | make %{?_smp_mflags} |
---|
281 | |
---|
282 | %if %{modular_conf} |
---|
283 | # Make XScreenSavar.ad modular |
---|
284 | CONFD=xscreensaver |
---|
285 | rm -rf $CONFD |
---|
286 | mkdir $CONFD |
---|
287 | |
---|
288 | # preserve the original adfile |
---|
289 | cp -p driver/XScreenSaver.ad $CONFD |
---|
290 | |
---|
291 | # First split XScreenSaver.ad into 3 parts |
---|
292 | cat driver/XScreenSaver.ad | \ |
---|
293 | sed -n -e '1,/\*programs/p' > $CONFD/XScreenSaver.ad.header |
---|
294 | cat driver/XScreenSaver.ad | sed -e '1,/\*programs/d' | \ |
---|
295 | sed -n -e '1,/\\n$/p' > $CONFD/XScreenSaver.ad.hacks |
---|
296 | cat driver/XScreenSaver.ad | sed -e '1,/\\n$/d' > $CONFD/XScreenSaver.ad.tail |
---|
297 | |
---|
298 | # Seperate XScreenSaver.ad.hacks into each hacks |
---|
299 | cd $CONFD |
---|
300 | mkdir hacks.conf.d ; cp -p XScreenSaver.ad.hacks hacks.conf.d/xscreensaver.conf |
---|
301 | cd .. |
---|
302 | |
---|
303 | %endif |
---|
304 | |
---|
305 | %install |
---|
306 | archdir=`./config.guess` |
---|
307 | cd $archdir |
---|
308 | |
---|
309 | rm -rf ${RPM_BUILD_ROOT} |
---|
310 | |
---|
311 | # We have to make sure these directories exist, |
---|
312 | # or nothing will be installed into them. |
---|
313 | # |
---|
314 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d |
---|
315 | |
---|
316 | make install_prefix=$RPM_BUILD_ROOT INSTALL="install -c -p" install |
---|
317 | |
---|
318 | desktop-file-install --vendor "" --delete-original \ |
---|
319 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
320 | --add-only-show-in GNOME \ |
---|
321 | --add-category DesktopSettings \ |
---|
322 | %if 0 |
---|
323 | --add-category X-Red-Hat-Base \ |
---|
324 | %else |
---|
325 | --remove-category Appearance \ |
---|
326 | --remove-category AdvancedSettings \ |
---|
327 | --remove-category Application \ |
---|
328 | %endif |
---|
329 | $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop |
---|
330 | |
---|
331 | # This function prints a list of things that get installed. |
---|
332 | # It does this by parsing the output of a dummy run of "make install". |
---|
333 | list_files() { |
---|
334 | echo "%%defattr(-,root,root,-)" |
---|
335 | make -s install_prefix=${RPM_BUILD_ROOT} INSTALL=true "$@" \ |
---|
336 | | sed -n -e 's@.* \(/[^ ]*\)$@\1@p' \ |
---|
337 | | sed -e "s@^${RPM_BUILD_ROOT}@@" \ |
---|
338 | -e "s@/[a-z][a-z]*/\.\./@/@" \ |
---|
339 | | sed -e 's@\(.*/man/.*\)@%%doc \1\*@' \ |
---|
340 | -e 's@\(.*/pam\.d/\)@%%config(noreplace) \1@' \ |
---|
341 | | sort \ |
---|
342 | | uniq |
---|
343 | } |
---|
344 | |
---|
345 | # Generate three lists of files for the three packages. |
---|
346 | # |
---|
347 | dd=%{_builddir}/%{name}-%{version}%{?beta_ver} |
---|
348 | |
---|
349 | # In case rpm -bi --short-circuit is tried multiple times: |
---|
350 | rm -f $dd/*.files |
---|
351 | |
---|
352 | ( cd hacks ; list_files install ) > $dd/extras.files |
---|
353 | ( cd hacks/glx ; list_files install ) > $dd/gl-extras.files |
---|
354 | ( cd driver ; list_files install ) > $dd/base.files |
---|
355 | |
---|
356 | # Move %%{_bindir}/xscreensaver-gl-helper to gl-base |
---|
357 | # (bug 336331). |
---|
358 | %if %{modular_conf} |
---|
359 | echo "%%defattr(-,root,root,-)" >> $dd/gl-base.files |
---|
360 | |
---|
361 | sed -i -e '/xscreensaver-gl-helper/d' $dd/gl-extras.files |
---|
362 | pushd $RPM_BUILD_ROOT |
---|
363 | for dir in `find . -name \*xscreensaver-gl-helper\*` ; do |
---|
364 | echo "${dir#.}" >> $dd/gl-base.files |
---|
365 | done |
---|
366 | popd |
---|
367 | sed -i -e 's|^\(%{_mandir}.*\)$|\1*|' $dd/gl-base.files |
---|
368 | %endif |
---|
369 | |
---|
370 | %if %{modular_conf} |
---|
371 | # install update script |
---|
372 | mkdir -p $RPM_BUILD_ROOT%{_sbindir} |
---|
373 | install -cpm 755 %{SOURCE10} $RPM_BUILD_ROOT%{_sbindir} |
---|
374 | echo "%{_sbindir}/update-xscreensaver-hacks" >> $dd/base.files |
---|
375 | |
---|
376 | # make hack conf modular |
---|
377 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xscreensaver |
---|
378 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/xscreensaver/hacks.conf.d |
---|
379 | cp -p xscreensaver/XScreenSaver.ad* \ |
---|
380 | $RPM_BUILD_ROOT%{_sysconfdir}/xscreensaver |
---|
381 | cp -p xscreensaver/hacks.conf.d/xscreensaver.conf \ |
---|
382 | $RPM_BUILD_ROOT%{_datadir}/xscreensaver/hacks.conf.d/ |
---|
383 | |
---|
384 | for adfile in xscreensaver/XScreenSaver.ad.* ; do |
---|
385 | filen=`basename $adfile` |
---|
386 | echo "%%config(noreplace) %{_sysconfdir}/xscreensaver/$filen" >> $dd/base.files |
---|
387 | done |
---|
388 | echo -n "%%verify(not size md5 mtime) " >> $dd/base.files |
---|
389 | echo "%{_sysconfdir}/xscreensaver/XScreenSaver.ad" >> \ |
---|
390 | $dd/base.files |
---|
391 | echo "%{_datadir}/xscreensaver/hacks.conf.d/xscreensaver.conf" \ |
---|
392 | >> $dd/base.files |
---|
393 | |
---|
394 | # check symlink |
---|
395 | rm -f $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults/XScreenSaver |
---|
396 | |
---|
397 | pushd $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults |
---|
398 | pushd ../../../.. |
---|
399 | if [ ! $(pwd) == $RPM_BUILD_ROOT ] ; then |
---|
400 | echo "Possibly symlink broken" |
---|
401 | exit 1 |
---|
402 | fi |
---|
403 | popd |
---|
404 | popd |
---|
405 | |
---|
406 | ln -sf ../../../..%{_sysconfdir}/xscreensaver/XScreenSaver.ad \ |
---|
407 | $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults/XScreenSaver |
---|
408 | |
---|
409 | %endif |
---|
410 | |
---|
411 | # add documents |
---|
412 | pushd $dd &> /dev/null |
---|
413 | for f in README* ; do |
---|
414 | echo "%%doc $f" >> $dd/base.files |
---|
415 | done |
---|
416 | popd |
---|
417 | |
---|
418 | # add directory |
---|
419 | pushd $RPM_BUILD_ROOT |
---|
420 | for dir in `find . -type d | grep xscreensaver` ; do |
---|
421 | echo "%%dir ${dir#.}" >> $dd/base.files |
---|
422 | done |
---|
423 | popd |
---|
424 | |
---|
425 | %find_lang %{name} |
---|
426 | cat %{name}.lang | uniq >> $dd/base.files |
---|
427 | |
---|
428 | # suppress rpmlint booing |
---|
429 | # sanitize path in script file |
---|
430 | for f in ${RPM_BUILD_ROOT}%{_bindir}/xscreensaver-getimage-* \ |
---|
431 | ${RPM_BUILD_ROOT}%{_libexecdir}/xscreensaver/vidwhacker \ |
---|
432 | ${RPM_BUILD_ROOT}%{_bindir}/xscreensaver-text ; do |
---|
433 | if [ -f $f ] ; then |
---|
434 | sed -i -e 's|%{_prefix}//bin|%{_bindir}|g' $f |
---|
435 | fi |
---|
436 | done |
---|
437 | |
---|
438 | # create desktop entry for gnome-screensaver |
---|
439 | create_desktop(){ |
---|
440 | COMMAND=`cat $1 | sed -n -e 's|^<screen.*name=\"\([^ ][^ ]*\)\".*$|\1|p'` |
---|
441 | NAME=`cat $1 | sed -n -e 's|^<screen.*_label=\"\(.*\)\">.*$|\1|p'` |
---|
442 | ARG=`cat $1 | sed -n -e 's|^.*<command arg=\"\([^ ][^ ]*\)\".*$|\1|p'` |
---|
443 | ARG=`echo $ARG` |
---|
444 | COMMENT="`cat $1 | sed -e '1,/_description/d' | \ |
---|
445 | sed -e '/_description/q' | sed -e '/_description/d'`" |
---|
446 | COMMENT=`echo $COMMENT` |
---|
447 | |
---|
448 | # webcollage treatment |
---|
449 | if [ "x$COMMAND" = "xwebcollage" ] ; then |
---|
450 | ARG="$ARG -directory %{_datadir}/backgrounds/images" |
---|
451 | fi |
---|
452 | |
---|
453 | if [ "x$NAME" = "x" ] ; then NAME=$COMMAND ; fi |
---|
454 | |
---|
455 | rm -f $2 |
---|
456 | echo "[Desktop Entry]" >> $2 |
---|
457 | echo "Encoding=UTF-8" >> $2 |
---|
458 | echo "Name=$NAME" >> $2 |
---|
459 | echo "Comment=$COMMENT" >> $2 |
---|
460 | echo "TryExec=$COMMAND" >> $2 |
---|
461 | echo "Exec=$COMMAND $ARG" >> $2 |
---|
462 | echo "StartupNotify=false" >> $2 |
---|
463 | echo "Type=Application" >> $2 |
---|
464 | echo "Categories=GNOME;Screensaver;" >> $2 |
---|
465 | } |
---|
466 | |
---|
467 | cd $dd |
---|
468 | |
---|
469 | SAVERDIR=%{_datadir}/applications/screensavers |
---|
470 | mkdir -p ${RPM_BUILD_ROOT}${SAVERDIR} |
---|
471 | echo "%%dir $SAVERDIR" >> base.files |
---|
472 | |
---|
473 | for list in *extras.files ; do |
---|
474 | |
---|
475 | glist=gnome-$list |
---|
476 | rm -f $glist |
---|
477 | |
---|
478 | echo "%%defattr(-,root,root,-)" > $glist |
---|
479 | ## move the owner of $SAVERDIR to -base |
---|
480 | ## echo "%%dir $SAVERDIR" >> $glist |
---|
481 | |
---|
482 | set +x |
---|
483 | for xml in `cat $list | grep xml$` ; do |
---|
484 | file=${RPM_BUILD_ROOT}${xml} |
---|
485 | desktop=xscreensaver-`basename $file` |
---|
486 | desktop=${desktop%.xml}.desktop |
---|
487 | |
---|
488 | echo + create_desktop $file ${RPM_BUILD_ROOT}${SAVERDIR}/$desktop |
---|
489 | create_desktop $file ${RPM_BUILD_ROOT}${SAVERDIR}/$desktop |
---|
490 | echo ${SAVERDIR}/$desktop >> $glist |
---|
491 | done |
---|
492 | set -x |
---|
493 | done |
---|
494 | |
---|
495 | # Make sure all files are readable by all, and writable only by owner. |
---|
496 | # |
---|
497 | chmod -R a+r,u+w,og-w ${RPM_BUILD_ROOT} |
---|
498 | |
---|
499 | %clean |
---|
500 | rm -rf ${RPM_BUILD_ROOT} |
---|
501 | |
---|
502 | %if %{modular_conf} |
---|
503 | %post base |
---|
504 | %{_sbindir}/update-xscreensaver-hacks |
---|
505 | exit 0 |
---|
506 | %endif |
---|
507 | |
---|
508 | %files |
---|
509 | %defattr(-,root,root,-) |
---|
510 | |
---|
511 | %files -f base.files base |
---|
512 | %defattr(-,root,root,-) |
---|
513 | |
---|
514 | %files -f extras.files extras |
---|
515 | %defattr(-,root,root,-) |
---|
516 | |
---|
517 | %if %{modular_conf} |
---|
518 | %files -f gl-base.files gl-base |
---|
519 | %defattr(-,root,root,-) |
---|
520 | %endif |
---|
521 | |
---|
522 | %files -f gl-extras.files gl-extras |
---|
523 | %defattr(-,root,root,-) |
---|
524 | |
---|
525 | %files -f gnome-extras.files extras-gss |
---|
526 | %defattr(-,root,root,-) |
---|
527 | |
---|
528 | %files -f gnome-gl-extras.files gl-extras-gss |
---|
529 | %defattr(-,root,root,-) |
---|
530 | |
---|
531 | %changelog |
---|
532 | * Sun Jul 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.11-1 |
---|
533 | - new upstream release |
---|
534 | - drop Patch3, Patch21, Patch22 |
---|
535 | |
---|
536 | * Wed May 21 2008 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.05-1 |
---|
537 | - new upstream release |
---|
538 | - remove unneeded patches |
---|
539 | |
---|
540 | * Sat Sep 9 2006 Ryoichi INAGAKI <daisuke@linux.or.jp> 4.18-0vl3 |
---|
541 | - rebuilt for Vine Linux 4.0 |
---|
542 | - changed Group to User Interface/X |
---|
543 | |
---|
544 | * Mon Mar 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.18-0vl2 |
---|
545 | - add Patch3 to use htmlview by default |
---|
546 | - add Patch5 to use blank screen by default instead of random screensaver |
---|
547 | - move desktopfile to %{_datadir}/applications/ |
---|
548 | |
---|
549 | * Thu Nov 11 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4.18-0vl1 |
---|
550 | - new upstream release |
---|
551 | |
---|
552 | * Wed Dec 17 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4.14-0vl1 |
---|
553 | - new upstream release |
---|
554 | |
---|
555 | * Mon Dec 30 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 4.06-4vl2 |
---|
556 | - update ja.po |
---|
557 | - copy xscreensaver.xpm to /usr/share/pixmaps directory |
---|
558 | |
---|
559 | * Sat Dec 28 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 4.06-4vl1 |
---|
560 | - merged with rawhide release |
---|
561 | - build on gnome2.1.5/gtk2.2 |
---|
562 | * Fri Nov 29 2002 Tim Powers <timp@redhat.com> 1:4.06-4 |
---|
563 | - call autoconf instead of autoconf-2.53 |
---|
564 | * Mon Nov 11 2002 Bill Nottingham <notting@redhat.com> 4.06-3 |
---|
565 | - put glade tweaks back in |
---|
566 | - switch pam package to not specify directories, to work on multilib |
---|
567 | arches |
---|
568 | * Fri Nov 8 2002 Nalin Dahyabhai <nalin@redhat.com> 4.06-1 |
---|
569 | - add a BuildPrereq on bc, which configure requires |
---|
570 | - replace use of fortune with an innocuous-and-editable stand-in script in |
---|
571 | %{stand_in_path} |
---|
572 | - define FORTUNE_PROGRAM at compile-time to force apps to use what's specified |
---|
573 | even if it doesn't happen to be installed at compile-time |
---|
574 | * Sun Sep 2 2002 Bill Nottingham <notting@redhat.com> 4.05-6 |
---|
575 | - fix typo (#73246) |
---|
576 | * Wed Aug 28 2002 Bill Nottingham <notting@redhat.com> 4.05-5 |
---|
577 | - revert to non-gtk unlock dialog |
---|
578 | - fix translations |
---|
579 | * Mon Aug 12 2002 Bill Nottingham <notting@redhat.com> 4.05-4 |
---|
580 | - twiddle titlebar (#67844) |
---|
581 | - fix extraneous text (#70975) |
---|
582 | - tweak desktop entry (#69502) |
---|
583 | * Fri Aug 9 2002 Yu Shao <yshao@redhat.com> 4.05-3 |
---|
584 | - use GTK_IM_MODULE=gtk-im-context-simple in lock widget |
---|
585 | - to avoid CJK IM weirdness (#70655, #68216) |
---|
586 | - xscreensaver-rh-imcjk.patch |
---|
587 | * Wed Jul 17 2002 Elliot Lee <sopwith@redhat.com> 4.05-2 |
---|
588 | - Add fortune-mod to buildprereq to make beehive happy |
---|
589 | - Fix find_lang usage - install translations properly by specifying datadir |
---|
590 | * Tue Jun 11 2002 Bill Nottingham <notting@redhat.com> 4.05-1 |
---|
591 | - update to 4.05 |
---|
592 | - use gtk2 lock widget (<jacob@ximian.com>) |
---|
593 | - some Red Hat-ifications |
---|
594 | - fix critical (#63916) |
---|
595 | * Mon Jun 10 2002 Bill Nottingham <notting@redhat.com> 4.04-2 |
---|
596 | - remove no longer needed xloadimage dependency |
---|
597 | * Mon Jun 3 2002 Bill Nottingham <notting@redhat.com> 4.04-1 |
---|
598 | - update to 4.04, gtk2 property dialog is now mainline |
---|
599 | * Thu May 16 2002 Bill Nottingham <notting@redhat.com> 4.03-1 |
---|
600 | - update to 4.03 |
---|
601 | - use gtk2 properties dialog |
---|
602 | |
---|
603 | * Mon Nov 25 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.01-2vl5 |
---|
604 | - rebuilt with new toolchain |
---|
605 | |
---|
606 | * Sun Mar 31 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 4.01-2vl4 |
---|
607 | - provides screensaver capplet entry for control-center |
---|
608 | |
---|
609 | * Wed Mar 27 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 4.01-2vl2 |
---|
610 | - change Requires fortune-mod ( not file-depend ) |
---|
611 | |
---|
612 | * Tue Mar 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 4.01-2vl1 |
---|
613 | - merged with rawhide release |
---|
614 | |
---|
615 | * Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 4.01-2 |
---|
616 | - don't show screensavers that aren't available |
---|
617 | |
---|
618 | * Sun Feb 24 2002 Bill Nottingham <notting@redhat.com> |
---|
619 | - update to 4.01 |
---|
620 | |
---|
621 | * Mon Feb 11 2002 Bill Nottingham <notting@redhat.com> |
---|
622 | - update to 4.00 |
---|
623 | |
---|
624 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
625 | - automated rebuild |
---|
626 | |
---|
627 | * Thu Aug 23 2001 Bill Nottingham <notting@redhat.com> |
---|
628 | - fix segfault on ia64 (#52336) |
---|
629 | |
---|
630 | * Thu Aug 9 2001 Bill Nottingham <notting@redhat.com> |
---|
631 | - never mind, back to 3.33 (wheeee) |
---|
632 | - hack window-id back in for the time being |
---|
633 | - disable memlimit so GL works |
---|
634 | |
---|
635 | * Mon Jul 23 2001 Bill Nottingham <notting@redhat.com> |
---|
636 | - oops, back to 3.32 for now |
---|
637 | - remove optflags override (oops) |
---|
638 | - add pam-devel buildprereq |
---|
639 | |
---|
640 | * Mon Jul 16 2001 Bill Nottingham <notting@redhat.com> |
---|
641 | - update to 3.33, fix broken last build |
---|
642 | - fix build weirdness on some package sets (#48905) |
---|
643 | - don't document non-existent options for forest (#49139) |
---|
644 | |
---|
645 | * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com> |
---|
646 | - Bump release + rebuild. |
---|
647 | |
---|
648 | * Tue May 22 2001 Havoc Pennington <hp@redhat.com> |
---|
649 | - putting in tree for David |
---|
650 | |
---|
651 | * Tue May 22 2001 David Sainty <dsainty@redhat.com> |
---|
652 | - added DPMS options to command line help |
---|
653 | |
---|
654 | * Sun Apr 22 2001 Bill Nottingham <notting@redhat.com> |
---|
655 | - update to 3.32 |
---|
656 | - add patch to specify DPMS settings on the command line |
---|
657 | |
---|
658 | * Wed Apr 11 2001 Bill Nottingham <notting@redhat.com> |
---|
659 | - update to 3.31 |
---|
660 | |
---|
661 | * Wed Apr 4 2001 Bill Nottingham <notting@redhat.com> |
---|
662 | - fix extrusion exclusion (#34742) |
---|
663 | |
---|
664 | * Tue Apr 3 2001 Bill Nottingham <notting@redhat.com> |
---|
665 | - disable GL screensavers by default (bleah) |
---|
666 | |
---|
667 | * Mon Feb 19 2001 Bill Nottingham <notting@redhat.com> |
---|
668 | - update to 3.29 (#27437) |
---|
669 | |
---|
670 | * Tue Jan 23 2001 Bill Nottingham <notting@redhat.com> |
---|
671 | - update to 3.27 |
---|
672 | |
---|
673 | * Fri Dec 01 2000 Bill Nottingham <notting@redhat.com> |
---|
674 | - rebuild because of broken fileutils |
---|
675 | |
---|
676 | * Fri Nov 10 2000 Bill Nottingham <notting@redhat.com> |
---|
677 | - 3.26 |
---|
678 | |
---|
679 | * Fri Aug 11 2000 Jonathan Blandford <jrb@redhat.com> |
---|
680 | - Up Epoch and release |
---|
681 | |
---|
682 | * Wed Jul 26 2000 Bill Nottingham <notting@redhat.com> |
---|
683 | - hey, vidmode works again |
---|
684 | |
---|
685 | * Fri Jul 21 2000 Bill Nottingham <notting@redhat.com> |
---|
686 | - update to 3.25 |
---|
687 | |
---|
688 | * Thu Jul 13 2000 Prospector <bugzilla@redhat.com> |
---|
689 | - automatic rebuild |
---|
690 | |
---|
691 | * Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> |
---|
692 | - xscreensaver.kss is not a %%config file. |
---|
693 | |
---|
694 | * Sun Jun 11 2000 Bill Nottingham <notting@redhat.com> |
---|
695 | - tweak kss module (#11872) |
---|
696 | |
---|
697 | * Thu Jun 1 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
698 | - modify PAM configuration to use system-auth |
---|
699 | |
---|
700 | * Thu May 18 2000 Preston Brown <pbrown@redhat.com> |
---|
701 | - added Red Hat screensaver (waving flag has logo now). |
---|
702 | |
---|
703 | * Fri May 5 2000 Bill Nottingham <notting@redhat.com> |
---|
704 | - tweaks for ia64 |
---|
705 | |
---|
706 | * Mon Apr 10 2000 Bill Nottingham <notting@redhat.com> |
---|
707 | - turn off xf86vidmode ext, so that binaries built against XFree86 4.0 |
---|
708 | work on 3.x servers |
---|
709 | |
---|
710 | * Wed Apr 5 2000 Bill Nottingham <notting@redhat.com> |
---|
711 | - turn off gnome support for now |
---|
712 | |
---|
713 | * Mon Apr 3 2000 Bill Nottingham <notting@redhat.com> |
---|
714 | - update to 3.24 |
---|
715 | |
---|
716 | * Wed Feb 09 2000 Preston Brown <pbrown@redhat.com> |
---|
717 | - wmconfig entry gone. |
---|
718 | |
---|
719 | * Mon Jan 31 2000 Bill Nottingham <notting@redhat.com> |
---|
720 | - update to 3.23 |
---|
721 | |
---|
722 | * Fri Jan 14 2000 Bill Nottingham <notting@redhat.com> |
---|
723 | - rebuild to fix GL depdencies |
---|
724 | |
---|
725 | * Tue Dec 14 1999 Bill Nottingham <notting@redhat.com> |
---|
726 | - everyone in GL |
---|
727 | - single package again |
---|
728 | |
---|
729 | * Fri Dec 10 1999 Bill Nottingham <notting@redhat.com> |
---|
730 | - update to 3.22 |
---|
731 | - turn off xf86vmode on alpha |
---|
732 | |
---|
733 | * Tue Dec 7 1999 Bill Nottingham <notting@redhat.com> |
---|
734 | - mmm... hardware accelerated GL on i386. :) :) |
---|
735 | |
---|
736 | * Mon Nov 22 1999 Bill Nottingham <notting@redhat.com> |
---|
737 | - 3.21 |
---|
738 | - use shm on alpha, let's see what breaks |
---|
739 | |
---|
740 | * Tue Nov 16 1999 Bill Nottingham <notting@redhat.com> |
---|
741 | - update to 3.20 |
---|
742 | |
---|
743 | * Wed Nov 3 1999 Bill Nottingham <notting@redhat.com> |
---|
744 | - update to 3.19 |
---|
745 | |
---|
746 | * Thu Oct 14 1999 Bill Nottingham <notting@redhat.com> |
---|
747 | - update to 3.18 |
---|
748 | |
---|
749 | * Sat Sep 25 1999 Bill Nottingham <notting@redhat.com> |
---|
750 | - add a '-oneshot' single time lock option. |
---|
751 | |
---|
752 | * Mon Sep 20 1999 Bill Nottingham <notting@redhat.com> |
---|
753 | - take webcollage out of random list (for people who pay for bandwidth) |
---|
754 | |
---|
755 | * Fri Sep 10 1999 Bill Nottingham <notting@redhat.com> |
---|
756 | - patch webcollage to use xloadimage |
---|
757 | - in the random list, run petri with -size 2 to save memory |
---|
758 | - extend RPM silliness to man pages, too. |
---|
759 | |
---|
760 | * Mon Jul 19 1999 Bill Nottingham <notting@redhat.com> |
---|
761 | - update to 3.17 |
---|
762 | - add a little RPM silliness to package GL stuff if it's built |
---|
763 | |
---|
764 | * Thu Jun 24 1999 Bill Nottingham <notting@redhat.com> |
---|
765 | - update to 3.16 |
---|
766 | |
---|
767 | * Mon May 10 1999 Bill Nottingham <notting@redhat.com> |
---|
768 | - update to 3.12 |
---|
769 | |
---|
770 | * Tue May 4 1999 Bill Nottingham <notting@redhat.com> |
---|
771 | - remove security problem introduced earlier |
---|
772 | |
---|
773 | * Wed Apr 28 1999 Bill Nottingham <notting@redhat.com> |
---|
774 | - update to 3.10 |
---|
775 | |
---|
776 | * Thu Apr 15 1999 Bill Nottingham <notting@redhat.com> |
---|
777 | - kill setuid the Right Way(tm) |
---|
778 | |
---|
779 | * Mon Apr 12 1999 Bill Nottingham <notting@redhat.com> |
---|
780 | - fix xflame on alpha |
---|
781 | |
---|
782 | * Mon Apr 12 1999 Preston Brown <pbrown@redhat.com> |
---|
783 | - upgrade to 3.09, fixes vmware interaction problems. |
---|
784 | |
---|
785 | * Mon Apr 5 1999 Bill Nottingham <notting@redhat.com> |
---|
786 | - remove setuid bit. Really. I mean it. |
---|
787 | |
---|
788 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
789 | - auto rebuild in the new build environment (release 3) |
---|
790 | |
---|
791 | * Fri Mar 19 1999 Bill Nottingham <notting@redhat.com> |
---|
792 | - kill setuid, since pam works OK |
---|
793 | |
---|
794 | * Tue Mar 16 1999 Bill Nottingham <notting@redhat.com> |
---|
795 | - update to 3.08 |
---|
796 | |
---|
797 | * Wed Feb 24 1999 Bill Nottingham <notting@redhat.com> |
---|
798 | - wmconfig returns, and no one is safe... |
---|
799 | |
---|
800 | * Tue Feb 23 1999 Bill Nottingham <notting@redhat.com> |
---|
801 | - remove bsod from random list because it's confusing people???? *sigh* |
---|
802 | |
---|
803 | * Tue Jan 12 1999 Cristian Gafton <gafton@redhat.com> |
---|
804 | - call libtoolize to get it to compile cleanely on the arm |
---|
805 | |
---|
806 | * Tue Jan 5 1999 Bill Nottingham <notting@redhat.com> |
---|
807 | - update to 3.07 |
---|
808 | |
---|
809 | * Mon Nov 23 1998 Bill Nottingham <notting@redhat.com> |
---|
810 | - update to 3.06 |
---|
811 | |
---|
812 | * Tue Nov 17 1998 Bill Nottingham <notting@redhat.com> |
---|
813 | - update to 3.04 |
---|
814 | |
---|
815 | * Thu Nov 12 1998 Bill Nottingham <notting@redhat.com> |
---|
816 | - update to 3.02 |
---|
817 | - PAMify |
---|
818 | |
---|
819 | * Tue Oct 13 1998 Cristian Gafton <gafton@redhat.com> |
---|
820 | - take out Noseguy module b/c of possible TMv |
---|
821 | - install modules in /usr/X11R6/lib/xscreensaver |
---|
822 | - don't compile support for xshm on the alpha |
---|
823 | - properly buildrooted |
---|
824 | - updated to version 2.34 |
---|
825 | |
---|
826 | * Fri Aug 7 1998 Bill Nottingham <notting@redhat.com> |
---|
827 | - update to 2.27 |
---|
828 | |
---|
829 | * Wed Jun 10 1998 Prospector System <bugs@redhat.com> |
---|
830 | - translations modified for de |
---|
831 | |
---|
832 | * Mon Jun 08 1998 Erik Troan <ewt@redhat.com> |
---|
833 | - added fix for argv0 buffer overflow |
---|
834 | |
---|
835 | * Fri Apr 24 1998 Prospector System <bugs@redhat.com> |
---|
836 | - translations modified for de, fr, tr |
---|
837 | |
---|
838 | * Sat Apr 11 1998 Donnie Barnes <djb@redhat.com> |
---|
839 | - updated from 2.10 to 2.16 |
---|
840 | - added buildroot |
---|
841 | |
---|
842 | * Wed Oct 25 1997 Marc Ewing <marc@redhat.com> |
---|
843 | - wmconfig |
---|
844 | |
---|
845 | * Thu Oct 23 1997 Marc Ewing <marc@redhat.com> |
---|
846 | - new version, configure |
---|
847 | |
---|
848 | * Fri Aug 22 1997 Erik Troan <ewt@redhat.com> |
---|
849 | - built against glibc |
---|
850 | |
---|