]>
Commit | Line | Data |
---|---|---|
45c7a25e | 1 | Summary: X screen savers |
1536a28f ER |
2 | Summary(de.UTF-8): X-Bildschirmschoner |
3 | Summary(es.UTF-8): Protectores de pantalla X | |
4 | Summary(fr.UTF-8): Economiseurs d'écran X | |
5 | Summary(pl.UTF-8): Wygaszacze ekranu pod X Window | |
6 | Summary(pt_BR.UTF-8): Salvadores de tela X | |
7 | Summary(ru.UTF-8): Набор программ хранения экрана для X Window | |
8 | Summary(uk.UTF-8): Набір програм збереження екрану для X Window | |
9 | Summary(zh_CN.UTF-8): X 窗口系统保护器 | |
45c7a25e | 10 | Name: xscreensaver |
8da0b4bf KM |
11 | Version: 6.00 |
12 | Release: 1 | |
018ae6eb | 13 | Epoch: 1 |
b9017da5 | 14 | License: BSD |
bd2fce08 | 15 | Group: X11/Applications |
5233c314 | 16 | Source0: https://www.jwz.org/xscreensaver/%{name}-%{version}.tar.gz |
8da0b4bf | 17 | # Source0-md5: 0c77c3d46a4b4d11fdef1d368349ed7a |
15faf92d | 18 | Source1: %{name}-autostart.desktop |
88c26881 | 19 | Source2: %{name}-lock.desktop |
20 | Source3: %{name}.pamd | |
8da0b4bf | 21 | Patch0: %{name}-desktop.patch |
5233c314 | 22 | URL: https://www.jwz.org/xscreensaver/ |
8da0b4bf KM |
23 | BuildRequires: Mesa-libGL-devel |
24 | BuildRequires: Mesa-libGLES-devel | |
25 | BuildRequires: Mesa-libGLU-devel | |
5233c314 | 26 | BuildRequires: autoconf >= 2.69 |
2080cbce | 27 | BuildRequires: automake |
7c8bb864 | 28 | BuildRequires: bc |
5233c314 | 29 | BuildRequires: gdk-pixbuf2-xlib-devel >= 2.0.0 |
a0ebace9 | 30 | BuildRequires: gettext-tools |
dfaf8d02 | 31 | BuildRequires: gle-devel |
5233c314 JB |
32 | BuildRequires: glib2-devel >= 2.0.0 |
33 | BuildRequires: gtk+2-devel >= 1:2.22.0 | |
9cc54719 | 34 | BuildRequires: intltool |
8da0b4bf KM |
35 | BuildRequires: libjpeg-devel |
36 | BuildRequires: libtool | |
51a0f6a0 | 37 | BuildRequires: libxml2-devel >= 2.4.22 |
2080cbce | 38 | BuildRequires: pam-devel >= 0.77.3 |
fa43b208 | 39 | BuildRequires: perl-base |
45894efb | 40 | BuildRequires: pkgconfig |
5233c314 JB |
41 | BuildRequires: rpmbuild(macros) >= 1.745 |
42 | BuildRequires: systemd-devel >= 1:221 | |
8da0b4bf KM |
43 | BuildRequires: xorg-lib-libICE-devel |
44 | BuildRequires: xorg-lib-libX11-devel | |
45 | BuildRequires: xorg-lib-libXext-devel | |
5233c314 | 46 | BuildRequires: xorg-lib-libXft-devel >= 2.1.0 |
8da0b4bf KM |
47 | BuildRequires: xorg-lib-libXi-devel |
48 | BuildRequires: xorg-lib-libXinerama-devel | |
49 | BuildRequires: xorg-lib-libXrandr-devel | |
50 | BuildRequires: xorg-lib-libXt-devel | |
51 | BuildRequires: xorg-lib-libXxf86vm-devel | |
21a8a290 | 52 | Requires: %{name}-savers = %{epoch}:%{version}-%{release} |
5233c314 | 53 | Requires: gtk+2 >= 1:2.22.0 |
f5a846a8 | 54 | Requires: pam >= 0.77.3 |
21a8a290 | 55 | Requires: xorg-lib-libXt >= 1.0.0 |
22b5527b ER |
56 | # for screensaver-getimage-file |
57 | Suggests: perl-perldoc | |
58 | # for xscreensaver-text | |
59 | Suggests: xorg-app-appres | |
5233c314 JB |
60 | Obsoletes: xscreensaver-gnome < 1:4.06 |
61 | Obsoletes: xscreensaver-gnome1 < 1:4.21 | |
62 | Obsoletes: xscreensaver-gnome2 < 1:5.06 | |
023a3d9b | 63 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ca58e9cf | 64 | |
9d828928 | 65 | %define _sysconfdir /etc/X11 |
8468378d | 66 | %define _appdefsdir /usr/share/X11/app-defaults |
c88054c0 | 67 | |
ca58e9cf | 68 | %description |
b9017da5 | 69 | Screen savers of every sort are included in this package, guaranteeing |
5ae2cad7 | 70 | hours of enjoyment and monitor saving. And if you are bent on really |
71 | saving your monitor, there's that old classic, the plain black screen. | |
ca58e9cf | 72 | |
dfa7a41b JR |
73 | %description -l de.UTF-8 |
74 | Dieses Paket enthält eine Sammlung verschiedenster Bildschirmschoner. | |
75 | Stundenlanger Spaß ist garantiert. Und wenn Sie Ihren Bildschirm | |
76 | wirklich schonen möchten, gibt's den alten Klassiker, den einfachen | |
5ae2cad7 | 77 | schwarzen Bildschirm. |
3dd40087 | 78 | |
dfa7a41b JR |
79 | %description -l es.UTF-8 |
80 | En este paquete están incluidos protectores de pantalla, de todos los | |
81 | tipos, garantizando horas de diversión para tu monitor. Y si realmente | |
82 | estás inclinado a la protección de tu monitor, existe aquel antiguo y | |
83 | clásico protector, la "pantalla negra". | |
84 | ||
85 | %description -l fr.UTF-8 | |
86 | Des économiseurs d'écran de chaque sorte sont inclus dans ce paquet, | |
87 | guarantissant des heures de plaisir et d'économies d'écran. Et si vous | |
88 | êtes voulez vraiment économiser votre écran, il y a ce vieux | |
89 | classique, l'écran tout noir. | |
90 | ||
91 | %description -l pl.UTF-8 | |
92 | Każdy wygaszacz ekranu dołączony do tego pakietu zapewnia godziny | |
93 | zadowolenia i oszczędzania monitora. Jeśli bardzo Ci zależy na | |
94 | oszczędzaniu monitora to jest też dostępny klasyczny "czysty" czarny | |
5ae2cad7 | 95 | wygaszacz. |
ca58e9cf | 96 | |
dfa7a41b JR |
97 | %description -l pt_BR.UTF-8 |
98 | Protetores de tela de todos os tipos estão incluídos neste pacote, | |
99 | garantindo horas de divertimento para o seu monitor. E se você | |
100 | realmente está inclinado à proteção do seu monitor, existe aquele | |
101 | velho clássico, a "tela preta". | |
e6797462 | 102 | |
dfa7a41b JR |
103 | %description -l ru.UTF-8 |
104 | Пакет xscreensaver содержит разнообразные программы хранения экрана. | |
e6797462 | 105 | |
dfa7a41b JR |
106 | %description -l uk.UTF-8 |
107 | Пакет xscreensaver містить різноманітні програми збереження екрану. | |
e6797462 | 108 | |
77ade7a1 | 109 | %package common |
110 | Summary: Common X screen savers files | |
1536a28f | 111 | Summary(pl.UTF-8): Pliki wspólne dla podpakietów wygaszaczy ekranu |
77ade7a1 | 112 | Group: X11/Applications |
77ade7a1 | 113 | |
114 | %description common | |
115 | Common X screen savers files. | |
116 | ||
dfa7a41b JR |
117 | %description common -l pl.UTF-8 |
118 | Pliki wspólne dla podpakietów wygaszaczy ekranu. | |
77ade7a1 | 119 | |
acad6e37 | 120 | %package base |
121 | Summary: Base X screen savers | |
1536a28f | 122 | Summary(pl.UTF-8): Podstawowe wygaszacze ekranu pod X Window |
acad6e37 | 123 | Group: X11/Applications |
77ade7a1 | 124 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
8da0b4bf KM |
125 | Requires: perl-HTML-Parser |
126 | Requires: perl-LWP-Protocol-https | |
5233c314 | 127 | Requires: xorg-lib-libXft >= 2.1.0 |
12d4ffb7 | 128 | Provides: %{name}-savers = %{epoch}:%{version}-%{release} |
acad6e37 | 129 | |
130 | %description base | |
131 | Base screen savers for X Window. | |
132 | ||
dfa7a41b | 133 | %description base -l pl.UTF-8 |
acad6e37 | 134 | Podstawowe wygaszacze ekranu pod X Window. |
135 | ||
aff3efc6 | 136 | %package GL |
137 | Summary: OpenGL X screen savers | |
1536a28f ER |
138 | Summary(pl.UTF-8): Wygaszacze ekranu pod X Window używające OpenGL |
139 | Summary(pt_BR.UTF-8): Protetores de tela GL | |
672fa9af | 140 | Group: X11/Applications |
77ade7a1 | 141 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
5233c314 | 142 | Requires: xorg-lib-libXft >= 2.1.0 |
12d4ffb7 | 143 | Provides: %{name}-savers = %{epoch}:%{version}-%{release} |
22b5527b ER |
144 | # for starwars req: xscreensaver-text |
145 | Suggests: %{name} | |
aff3efc6 | 146 | |
147 | %description GL | |
148 | Screen savers which uses OpenGL libraries. | |
149 | ||
dfa7a41b JR |
150 | %description GL -l pl.UTF-8 |
151 | Wygaszacze ekranu pod X Window używające OpenGL. | |
aff3efc6 | 152 | |
dfa7a41b | 153 | %description GL -l pt_BR.UTF-8 |
e6797462 | 154 | Ainda mais protetores de tela, usando a biblioteca 3D OpenGL. |
155 | ||
dfaf8d02 | 156 | %package GLE |
12d4ffb7 | 157 | Summary: OpenGL & GLE X screen savers |
1536a28f | 158 | Summary(pl.UTF-8): Wygaszacze ekranu pod X Window używające OpenGL i GLE |
dfaf8d02 | 159 | Group: X11/Applications |
77ade7a1 | 160 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
5233c314 | 161 | Requires: xorg-lib-libXft >= 2.1.0 |
12d4ffb7 | 162 | Provides: %{name}-savers = %{epoch}:%{version}-%{release} |
dfaf8d02 AM |
163 | |
164 | %description GLE | |
165 | Screen savers which uses OpenGL and GLE libraries. | |
166 | ||
dfa7a41b JR |
167 | %description GLE -l pl.UTF-8 |
168 | Wygaszacze ekranu pod X Window używające OpenGL oraz GLE. | |
dfaf8d02 | 169 | |
ca58e9cf | 170 | %prep |
11cd7bff | 171 | %setup -q |
15faf92d | 172 | %patch0 -p1 |
ca58e9cf | 173 | |
174 | %build | |
3dd40087 | 175 | %configure \ |
8da0b4bf KM |
176 | --with-x \ |
177 | --with-dpms-ext \ | |
178 | --with-xf86vmode-ext \ | |
9d828928 | 179 | --with-xinerama-ext \ |
ae3d7b08 | 180 | --with-randr-ext \ |
8da0b4bf | 181 | --with-xinput-ext \ |
9d828928 | 182 | --with-xf86gamma-ext \ |
8da0b4bf KM |
183 | --with-xshm-ext \ |
184 | --with-xdbe-ext \ | |
185 | --with-xkb-ext \ | |
9d828928 | 186 | --with-proc-interrupts \ |
8da0b4bf KM |
187 | --with-proc-oom \ |
188 | --with-systemd \ | |
51a0f6a0 | 189 | --with-pam \ |
77ade7a1 | 190 | --with-shadow \ |
8da0b4bf | 191 | --with-gtk \ |
c5d5a41b | 192 | --with-gl \ |
dfaf8d02 | 193 | --with-gle \ |
51a0f6a0 | 194 | --with-jpeg \ |
8da0b4bf KM |
195 | --with-png \ |
196 | --with-pixbuf \ | |
197 | --with-xft \ | |
45894efb | 198 | --with-hackdir=%{_libdir}/xscreensaver \ |
0ad14fb6 | 199 | --with-configdir=%{_datadir}/xscreensaver \ |
8da0b4bf KM |
200 | --enable-locking \ |
201 | --without-login-manager \ | |
202 | --without-kerberos \ | |
203 | --without-motif | |
c5d5a41b | 204 | |
51a0f6a0 | 205 | %{__make} all |
c5d5a41b | 206 | |
ca58e9cf | 207 | %install |
45c7a25e | 208 | rm -rf $RPM_BUILD_ROOT |
221d7879 | 209 | |
52c6e2a6 | 210 | %{__make} install \ |
c92f159c | 211 | DESTDIR=$RPM_BUILD_ROOT \ |
697a6d85 | 212 | install_sh=$(pwd)/install-sh \ |
52c6e2a6 | 213 | install_prefix=$RPM_BUILD_ROOT \ |
8468378d | 214 | AD_DIR=%{_appdefsdir} \ |
acad6e37 | 215 | PAM_DIR=/etc/pam.d |
221d7879 | 216 | |
15faf92d | 217 | install -d $RPM_BUILD_ROOT{/etc/{pam.d,xdg/autostart},%{_desktopdir}} |
52c6e2a6 | 218 | |
8da0b4bf KM |
219 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/xdg/autostart |
220 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} | |
ca58e9cf | 221 | |
45894efb JB |
222 | %{__make} -C driver install-pam \ |
223 | PAM_DIR=$RPM_BUILD_ROOT/etc/pam.d | |
22b5527b | 224 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/xscreensaver |
c88054c0 | 225 | |
dfaf8d02 AM |
226 | _DIR=$(pwd) |
227 | cd $RPM_BUILD_ROOT%{_libdir}/%{name} | |
228 | ||
acad6e37 | 229 | echo '%defattr(644,root,root,755)' > $_DIR/files.base |
230 | echo '%defattr(644,root,root,755)' > $_DIR/files.gl | |
231 | echo '%defattr(644,root,root,755)' > $_DIR/files.gle | |
dfaf8d02 | 232 | |
9d828928 AF |
233 | find_config_and_man() |
234 | { | |
acad6e37 | 235 | if test -e $RPM_BUILD_ROOT%{_datadir}/%{name}/${1}.xml ; then |
236 | echo %{_datadir}/%{name}/${1}.xml | |
9d828928 | 237 | fi |
01e2caf5 | 238 | if test -e $RPM_BUILD_ROOT%{_mandir}/man6/${1}.6 ; then |
239 | mv $RPM_BUILD_ROOT%{_mandir}/man6/{,xscreensaver-}${1}.6 | |
240 | echo %{_mandir}/man6/xscreensaver-${1}.6'*' | |
1b643c22 | 241 | # these two conflict with other packages |
242 | if [ ${1} != barcode -a ${1} != flame ]; then | |
01e2caf5 | 243 | echo ".so xscreensaver-${1}.6" > $RPM_BUILD_ROOT%{_mandir}/man6/${1}.6 |
244 | echo %{_mandir}/man6/${1}.6'*' | |
1b643c22 | 245 | fi |
9d828928 AF |
246 | fi |
247 | } | |
248 | ||
22b5527b ER |
249 | for file in *; do |
250 | _REQUIRES=$(objdump -p $file 2> /dev/null | awk ' | |
dfaf8d02 AM |
251 | BEGIN { START=0; LIBNAME=""; } |
252 | /Dynamic Section:/ { START=1; } | |
253 | /NEEDED/ && (START==1) { | |
254 | LIBNAME=$2; | |
255 | } | |
256 | (START==1) && (LIBNAME!="") { print LIBNAME; } | |
22b5527b | 257 | /^$/ { START=0; }') |
dfaf8d02 | 258 | |
22b5527b | 259 | if echo "$_REQUIRES" | grep -q "libgle.so"; then |
acad6e37 | 260 | echo "%attr(755,root,root) %{_libdir}/xscreensaver/$file" >> $_DIR/files.gle |
261 | find_config_and_man $file >> $_DIR/files.gle | |
22b5527b | 262 | elif echo "$_REQUIRES" | grep -q "libGLU.so"; then |
acad6e37 | 263 | echo "%attr(755,root,root) %{_libdir}/xscreensaver/$file" >> $_DIR/files.gl |
264 | find_config_and_man $file >> $_DIR/files.gl | |
265 | else | |
266 | echo "%attr(755,root,root) %{_libdir}/xscreensaver/$file" >> $_DIR/files.base | |
267 | find_config_and_man $file >> $_DIR/files.base | |
268 | fi | |
dfaf8d02 AM |
269 | done |
270 | ||
271 | cd $_DIR | |
272 | ||
51a0f6a0 | 273 | %find_lang %{name} --all-name |
c92f159c | 274 | |
ca58e9cf | 275 | %clean |
5ae2cad7 | 276 | rm -rf $RPM_BUILD_ROOT |
ca58e9cf | 277 | |
acad6e37 | 278 | %files -f %{name}.lang |
45c7a25e | 279 | %defattr(644,root,root,755) |
78763ab8 | 280 | %doc README README.hacking |
0ad14fb6 | 281 | %doc %{_datadir}/%{name}/README |
e8786e28 AM |
282 | %attr(755,root,root) %{_bindir}/xscreensaver |
283 | %attr(755,root,root) %{_bindir}/xscreensaver-command | |
284 | %attr(755,root,root) %{_bindir}/xscreensaver-demo | |
8da0b4bf | 285 | %attr(755,root,root) %{_bindir}/xscreensaver-settings |
9a386630 | 286 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xscreensaver |
15faf92d | 287 | /etc/xdg/autostart/xscreensaver-autostart.desktop |
5233c314 | 288 | %{_appdefsdir}/XScreenSaver |
221c8abb | 289 | %{_desktopdir}/xscreensaver-properties.desktop |
42ef55fb | 290 | %{_desktopdir}/xscreensaver-lock.desktop |
acad6e37 | 291 | %{_mandir}/man1/xscreensaver.1* |
292 | %{_mandir}/man1/xscreensaver-command.1* | |
293 | %{_mandir}/man1/xscreensaver-demo.1* | |
8da0b4bf KM |
294 | %{_mandir}/man1/xscreensaver-settings.1* |
295 | %{_mandir}/man6/xscreensaver-command.6* | |
5233c314 | 296 | %{_pixmapsdir}/xscreensaver.xpm |
8da0b4bf KM |
297 | %dir %{_datadir}/%{name}/ui |
298 | %{_datadir}/%{name}/ui/screensaver*.png | |
299 | %{_datadir}/%{name}/ui/xscreensaver.ui | |
dfaf8d02 | 300 | |
77ade7a1 | 301 | %files common |
bd2fce08 | 302 | %defattr(644,root,root,755) |
77ade7a1 | 303 | %dir %{_libdir}/%{name} |
8da0b4bf KM |
304 | %dir %{_fontsdir}/xscreensaver |
305 | %{_fontsdir}/xscreensaver/*.otf | |
306 | %{_fontsdir}/xscreensaver/*.ttf | |
77ade7a1 | 307 | |
acad6e37 | 308 | %files base -f files.base |
309 | %defattr(644,root,root,755) | |
310 | ||
dfaf8d02 | 311 | %files GL -f files.gl |
c4e78737 | 312 | %defattr(644,root,root,755) |
dfaf8d02 AM |
313 | |
314 | %files GLE -f files.gle | |
c4e78737 | 315 | %defattr(644,root,root,755) |