xscreensaver-vl.spec 28 KB

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