]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - make a PLD-theme - default:] | |
3 | # | |
4 | # Conditional build: | |
5 | %bcond_without gradients # gradients (requires antialiasing which requires freetype) | |
6 | %bcond_without freetype # xfreetype support (implies no antialiasing) | |
7 | %bcond_without guievents # GUI events | |
8 | %bcond_without alsa # ALSA sound for GUI events | |
9 | %bcond_with esd # EsounD sound for GUI events | |
10 | %bcond_without yiff # YIFF sound for GUI events | |
11 | %bcond_with gnome2 # support for GNOME2 menus and wm-properties | |
12 | ||
13 | %if %{without guievents} | |
14 | %undefine with_alsa | |
15 | %undefine with_esd | |
16 | %undefine with_yiff | |
17 | %endif | |
18 | Summary: IceWM X11 Window Manager | |
19 | Summary(de.UTF-8): IceWM ist ein Window Manager für X | |
20 | Summary(es.UTF-8): Administrador de Ventanas X11 | |
21 | Summary(pl.UTF-8): IceWM - zarządca okienek X11 | |
22 | Summary(pt_BR.UTF-8): Gerenciador de Janelas X11 | |
23 | Summary(ru.UTF-8): Оконный менеджер для X11 | |
24 | Summary(uk.UTF-8): Віконний менеджер для X11 | |
25 | %define iceicons_ver 0.6 | |
26 | Name: icewm | |
27 | Version: 2.1.0 | |
28 | Release: 1 | |
29 | Epoch: 2 | |
30 | License: LGPL v2 | |
31 | Group: X11/Window Managers | |
32 | #Source0Download: https://github.com/ice-wm/icewm/releases | |
33 | Source0: https://github.com/ice-wm/icewm/archive/%{version}/%{name}-%{version}.tar.gz | |
34 | # Source0-md5: 228f27299bb79b6c4ccf7cf7109aa5ee | |
35 | Source1: IceWM.desktop | |
36 | Source3: http://downloads.sourceforge.net/icewm/iceicons-%{iceicons_ver}.tar.gz | |
37 | # Source3-md5: 53ed111a3c4d1e609bd1604ddccd4701 | |
38 | Source4: %{name}-startup.sh | |
39 | Patch0: %{name}-build-fixes.patch | |
40 | URL: https://ice-wm.org/ | |
41 | %{?with_alsa:BuildRequires: alsa-lib-devel} | |
42 | BuildRequires: asciidoc | |
43 | BuildRequires: autoconf >= 2.69 | |
44 | BuildRequires: automake >= 1:1.13.4 | |
45 | %{?with_esd:BuildRequires: esound-devel} | |
46 | BuildRequires: fontconfig-devel | |
47 | BuildRequires: fribidi-devel >= 0.10.4 | |
48 | BuildRequires: gdk-pixbuf2-xlib-devel >= 2.0 | |
49 | BuildRequires: gettext-tools >= 0.19.6 | |
50 | BuildRequires: glib2-devel >= 2.0 | |
51 | %{?with_gnome2:BuildRequires: gnome-desktop2-devel >= 2.0} | |
52 | %{?with_gnome2:BuildRequires: gnome-vfs2-devel >= 2.0} | |
53 | %{?with_gnome2:BuildRequires: libgnomeui-devel >= 2.0} | |
54 | %{?with_alsa:BuildRequires: libsndfile-devel} | |
55 | BuildRequires: libstdc++-devel | |
56 | BuildRequires: libtool >= 2:2.4.2 | |
57 | BuildRequires: pkgconfig | |
58 | BuildRequires: sed >= 4.0 | |
59 | BuildRequires: xorg-lib-libICE-devel | |
60 | BuildRequires: xorg-lib-libSM-devel | |
61 | BuildRequires: xorg-lib-libX11-devel | |
62 | BuildRequires: xorg-lib-libXext-devel | |
63 | %{?with_freetype:BuildRequires: xorg-lib-libXft-devel >= 2.1} | |
64 | BuildRequires: xorg-lib-libXinerama-devel | |
65 | BuildRequires: xorg-lib-libXpm-devel | |
66 | BuildRequires: xorg-lib-libXrandr-devel | |
67 | %{?with_yiff:BuildRequires: yiff-devel >= 2.14.7-3} | |
68 | Requires(pre): /bin/rm | |
69 | Requires(pre): /usr/bin/test | |
70 | Requires: shared-mime-info | |
71 | Requires: xinitrc-ng | |
72 | Suggests: vfmg >= 0.9.95 | |
73 | Conflicts: filesystem < 3.0-20 | |
74 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
75 | ||
76 | %define _wmpropsdir /usr/share/gnome/wm-properties | |
77 | %define specflags_ia32 -fomit-frame-pointer | |
78 | ||
79 | %description | |
80 | Window Manager for X Window System. Can emulate the look of | |
81 | Windows'95, OS/2 Warp 3,4, Motif. Tries to take the best features of | |
82 | the above systems. Features multiple workspaces, opaque move/resize, | |
83 | task bar, window list, mailbox status, digital clock. Fast and small. | |
84 | ||
85 | %description -l es.UTF-8 | |
86 | Administrador de Ventanas para el X Window. Puede emular la apariencia | |
87 | del Windows'95, OS/2 Warp 3 y 4 y el Motif. Intenta usar las mejores | |
88 | características de los sistemas citados. Características: varios | |
89 | ambientes de trabajo, movimiento/ redimensionamiento opaco, barra de | |
90 | tareas, lista de ventanas, estado de la caja de entrada del correo y | |
91 | reloj digital. Rápido y pequeño. | |
92 | ||
93 | %description -l pl.UTF-8 | |
94 | Zarządca okienek pod X11. Może emulować wygląd Windows'95, OS/2 Warp | |
95 | 3, 4, MWM. Zarządca ten próbuje przejąć z powyższych środowisk ich | |
96 | najlepsze cechy, takie jak: wiele jednocześnie obecnych przestrzeni | |
97 | roboczych, paski narzędziowe, status skrzynki z pocztą, cyfrowy zegar. | |
98 | Jest przy tym mały i szybki. | |
99 | ||
100 | %description -l pt_BR.UTF-8 | |
101 | Gerenciador de Janelas para o X Window. Pode emular a aparência do | |
102 | Windows'95, OS/2 Warp 3 e 4 e o Motif. Tenta usar as melhores | |
103 | características dos sistemas citados. Características: vários | |
104 | ambientes de trabalho, movimentação/ redimensionamento opaco, barra de | |
105 | tarefas, lista de janelas, status da caixa de entrada do correio e | |
106 | relógio digital. É rápido e pequeno. | |
107 | ||
108 | %description -l ru.UTF-8 | |
109 | Оконный менеджер для X Window System. Может эмулировать внешний вид | |
110 | Windows'95, OS/2 Warp 3,4, Motif. Старается взять лучшее из упомянутых | |
111 | систем. Поддерживает несколько рабочих поверхностей, непрозрачное | |
112 | перемещение окон, полоску заданий, список окон, статус почтового | |
113 | ящика, цифровые часы. Быстрый и компактный. | |
114 | ||
115 | %description -l uk.UTF-8 | |
116 | Віконний менеджер для X Window System. Може емулювати зовнішній вигляд | |
117 | Windows'95, OS/2 Warp 3,4, Motif. Намагається взяти найкраще із | |
118 | згаданих систем. Підтримує кілька робочих площин, непрозоре | |
119 | переміщення вікон, смужку завдань, список вікон, стан поштової | |
120 | скриньки, цифровий годинник. Швидкий та компактний. | |
121 | ||
122 | %description -l de.UTF-8 | |
123 | IceWM ist ein in C++ programmierter, unter GPL stehender | |
124 | Fenstermanager für das X11-Fenstersystem. Ziel von IceWM ist | |
125 | Geschwindigkeit, Schlichtheit und Bedienerfreundlichkeit. | |
126 | ||
127 | In der Standardeinstellung erinnert das Design von IceWM stark an | |
128 | Microsoft Windows: Er verfügt über eine Taskleiste am unteren | |
129 | Bildrand, das aktive Fenster lässt sich mit der Tastenkombination | |
130 | ALT-TAB wechseln, etc. | |
131 | ||
132 | %package themes-base | |
133 | Summary: Pack of themes for IceWM | |
134 | Summary(pl.UTF-8): Zestaw motywów dla IceWM-a | |
135 | Group: Themes | |
136 | Requires: icewm | |
137 | ||
138 | %description themes-base | |
139 | Standard pack of themes delivered with IceWM: | |
140 | - CrystalBlue by BlueScorpio | |
141 | - Helix by RudeSka and TigerT | |
142 | - NanoBlue by lion1810 | |
143 | - metal2, motif, win32 by Marko Macek | |
144 | ||
145 | This package contains also old themes, no longer installed by default | |
146 | in IceWM 1.4: | |
147 | - gtk2, nice, nice2, warp3, warp4 by Marko Macek | |
148 | - yellowmotif by Andreas Leitgeb | |
149 | ||
150 | %description themes-base -l pl.UTF-8 | |
151 | Standardowy zestaw motywów dla IceWM-a, dostarczany wraz z nim: | |
152 | - CrystalBlue autorstwa BlueScorpio | |
153 | - Helix autorstwa RudeSka i TigerT | |
154 | - NanoBlue autorstwa lion1810 | |
155 | - metal2, motif, win32 autorstwa Marko Macka | |
156 | ||
157 | Pakiet zawiera także stare motywy, nie instalowane domyślnie wraz z | |
158 | IceWM-em 1.4: | |
159 | - gtk2, nice, nice2, warp3, warp4 autorstwa Marko Macka | |
160 | - yellowmotif autorstwa Andreasa Leitgeba | |
161 | ||
162 | %prep | |
163 | %setup -q | |
164 | #%%patch0 -p1 | |
165 | ||
166 | tar -xzf %{SOURCE3} -C lib/icons | |
167 | ||
168 | %{__sed} -i -e '/po\/Makefile.in/d' configure.ac | |
169 | ||
170 | %build | |
171 | %{__gettextize} | |
172 | %{__libtoolize} | |
173 | %{__aclocal} -I m4 | |
174 | %{__autoconf} | |
175 | %{__autoheader} | |
176 | %{__automake} | |
177 | %configure \ | |
178 | ASCIIDOC=/usr/bin/asciidoc \ | |
179 | %{!?with_gradients:--disable-gradients} \ | |
180 | %{?with_guievents:--enable-guievents --with-icesound=%{?with_alsa:ALSA,}OSS%{?with_yiff:,Y}%{?with_esd:,ESound}} \ | |
181 | %{!?with_gnome2:--disable-menus-gnome2} \ | |
182 | --enable-shaped-decorations \ | |
183 | %{!?with_freetype:--disable-xfreetype --enable-corefonts} \ | |
184 | --with-cfgdir=%{_sysconfdir}/X11/%{name} \ | |
185 | --with-docdir=%{_docdir} | |
186 | %{__make} | |
187 | ||
188 | %install | |
189 | rm -rf $RPM_BUILD_ROOT | |
190 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_wmpropsdir},%{_sysconfdir}/X11/%{name}} | |
191 | ||
192 | %{__make} install \ | |
193 | DESTDIR=$RPM_BUILD_ROOT | |
194 | ||
195 | %{__sed} -e 's|^# IconPath=""|IconPath="%{_pixmapsdir}:%{_datadir}/icons"|' -i $RPM_BUILD_ROOT%{_datadir}/icewm/preferences | |
196 | ||
197 | # packaged as %doc | |
198 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/icewm | |
199 | ||
200 | %{?with_gnome2:cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}} | |
201 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/icewm/startup | |
202 | cp -p lib/keys $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/keys | |
203 | cp -p lib/toolbar $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/toolbar | |
204 | cp -p lib/winoptions $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/winoptions | |
205 | echo %{_bindir}/icewmbg > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/startup | |
206 | :> $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/restart | |
207 | ||
208 | ln -s %{_datadir}/icewm/icons $RPM_BUILD_ROOT%{_pixmapsdir}/icewm | |
209 | ||
210 | echo "menuprog \"Programs\" %{_datadir}/icewm/icons/folder_16x16.xpm vfmg -i -f -x -c -s icewm" > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/menu | |
211 | ||
212 | # old themes, no longer installed | |
213 | cp -pr lib/themes/{gtk2,nice,nice2,warp3,warp4,yellowmotif} $RPM_BUILD_ROOT%{_datadir}/icewm/themes | |
214 | ||
215 | # duplicate locale | |
216 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no | |
217 | ||
218 | %find_lang %{name} | |
219 | ||
220 | %clean | |
221 | rm -rf $RPM_BUILD_ROOT | |
222 | ||
223 | %pre | |
224 | test -h %{_pixmapsdir}/icewm || rm -rf %{_pixmapsdir}/icewm | |
225 | ||
226 | %files -f %{name}.lang | |
227 | %defattr(644,root,root,755) | |
228 | %doc AUTHORS BUGS CHANGES ChangeLog NEWS PLATFORMS README.md THANKS TODO doc/*.html | |
229 | %attr(755,root,root) %{_bindir}/icehelp | |
230 | %attr(755,root,root) %{_bindir}/icesh | |
231 | %if %{with guievents} | |
232 | %attr(755,root,root) %{_bindir}/icesound | |
233 | %endif | |
234 | %attr(755,root,root) %{_bindir}/icewm | |
235 | %attr(755,root,root) %{_bindir}/icewm-menu-fdo | |
236 | %attr(755,root,root) %{_bindir}/icewm-session | |
237 | %attr(755,root,root) %{_bindir}/icewm-set-gnomewm | |
238 | %attr(755,root,root) %{_bindir}/icewmbg | |
239 | %attr(755,root,root) %{_bindir}/icewmhint | |
240 | %attr(755,root,root) %{_bindir}/icewm-menu-xrandr | |
241 | %{_mandir}/man1/icehelp.1* | |
242 | %{_mandir}/man1/icesh.1* | |
243 | %{_mandir}/man1/icesound.1* | |
244 | %{_mandir}/man1/icewm-menu-fdo.1* | |
245 | %{_mandir}/man1/icewm-menu-xrandr.1* | |
246 | %{_mandir}/man1/icewm-session.1* | |
247 | %{_mandir}/man1/icewm-set-gnomewm.1* | |
248 | %{_mandir}/man1/icewmbg.1* | |
249 | %{_mandir}/man1/icewmhint.1* | |
250 | %{_mandir}/man5/icewm-env.5* | |
251 | %{_mandir}/man5/icewm-focus_mode.5* | |
252 | %{_mandir}/man5/icewm-keys.5* | |
253 | %{_mandir}/man5/icewm-menu.5* | |
254 | %{_mandir}/man5/icewm-preferences.5* | |
255 | %{_mandir}/man5/icewm-prefoverride.5* | |
256 | %{_mandir}/man5/icewm-programs.5* | |
257 | %{_mandir}/man5/icewm-shutdown.5* | |
258 | %{_mandir}/man5/icewm-startup.5* | |
259 | %{_mandir}/man5/icewm-theme.5* | |
260 | %{_mandir}/man5/icewm-toolbar.5* | |
261 | %{_mandir}/man5/icewm-winoptions.5* | |
262 | %dir %{_sysconfdir}/X11/%{name} | |
263 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/keys | |
264 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/menu | |
265 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/toolbar | |
266 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/winoptions | |
267 | %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/restart | |
268 | %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/startup | |
269 | %{_pixmapsdir}/icewm | |
270 | %dir %{_datadir}/icewm | |
271 | %{_datadir}/icewm/IceWM.jpg | |
272 | %{_datadir}/icewm/icons | |
273 | %{_datadir}/icewm/keys | |
274 | %{_datadir}/icewm/menu | |
275 | %{_datadir}/icewm/ledclock | |
276 | %{_datadir}/icewm/mailbox | |
277 | %{_datadir}/icewm/preferences | |
278 | %{_datadir}/icewm/programs | |
279 | %attr(755,root,root) %{_datadir}/icewm/startup | |
280 | %{_datadir}/icewm/toolbar | |
281 | %{_datadir}/icewm/taskbar | |
282 | %{_datadir}/icewm/winoptions | |
283 | %dir %{_datadir}/icewm/themes | |
284 | %{_datadir}/icewm/themes/Infadel2 | |
285 | %{_datadir}/icewm/themes/default | |
286 | %{_datadir}/icewm/themes/icedesert | |
287 | %{_datadir}/xsessions/icewm.desktop | |
288 | %{_datadir}/xsessions/icewm-session.desktop | |
289 | %{?with_gnome2:%{_wmpropsdir}/IceWM.desktop} | |
290 | %{_mandir}/man1/icewm.1* | |
291 | ||
292 | %files themes-base | |
293 | %defattr(644,root,root,755) | |
294 | %{_datadir}/icewm/themes/CrystalBlue | |
295 | %{_datadir}/icewm/themes/Helix | |
296 | %{_datadir}/icewm/themes/NanoBlue | |
297 | %{_datadir}/icewm/themes/metal2 | |
298 | %{_datadir}/icewm/themes/motif | |
299 | %{_datadir}/icewm/themes/win95 | |
300 | # old themes, no longer installed in 1.4.x | |
301 | %{_datadir}/icewm/themes/gtk2 | |
302 | %{_datadir}/icewm/themes/nice | |
303 | %{_datadir}/icewm/themes/nice2 | |
304 | %{_datadir}/icewm/themes/warp3 | |
305 | %{_datadir}/icewm/themes/warp4 | |
306 | %{_datadir}/icewm/themes/yellowmotif |