]>
Commit | Line | Data |
---|---|---|
25f07c49 | 1 | # TODO: |
505d687f | 2 | # - make a PLD-theme - default:] |
c3c05e60 | 3 | # |
747634b9 | 4 | # Conditional build: |
efc175b0 JB |
5 | %bcond_without gradients # gradients (requires antialiasing which requires freetype) |
6 | %bcond_without freetype # xfreetype support (implies no antialiasing) | |
25f07c49 JB |
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 | |
f1701bad | 12 | |
25f07c49 JB |
13 | %if %{without guievents} |
14 | %undefine with_alsa | |
15 | %undefine with_esd | |
16 | %undefine with_yiff | |
17 | %endif | |
5450fc43 | 18 | Summary: IceWM X11 Window Manager |
6497299f | 19 | Summary(de.UTF-8): IceWM ist ein Window Manager für X |
e71b1c56 ER |
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 | |
efc175b0 | 25 | %define iceicons_ver 0.6 |
505d687f WF |
26 | Name: icewm |
27 | Version: 2.1.0 | |
28 | Release: 1 | |
1e98fedb | 29 | Epoch: 2 |
efc175b0 | 30 | License: LGPL v2 |
5450fc43 | 31 | Group: X11/Window Managers |
25f07c49 JB |
32 | #Source0Download: https://github.com/ice-wm/icewm/releases |
33 | Source0: https://github.com/ice-wm/icewm/archive/%{version}/%{name}-%{version}.tar.gz | |
505d687f | 34 | # Source0-md5: 228f27299bb79b6c4ccf7cf7109aa5ee |
0c3991fa | 35 | Source1: IceWM.desktop |
efc175b0 | 36 | Source3: http://downloads.sourceforge.net/icewm/iceicons-%{iceicons_ver}.tar.gz |
a5b4d509 | 37 | # Source3-md5: 53ed111a3c4d1e609bd1604ddccd4701 |
505d687f | 38 | Source4: %{name}-startup.sh |
4037b355 | 39 | Patch0: %{name}-build-fixes.patch |
efc175b0 | 40 | URL: https://ice-wm.org/ |
25f07c49 | 41 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
4ce4af62 | 42 | BuildRequires: asciidoc |
25f07c49 | 43 | BuildRequires: autoconf >= 2.69 |
4ce4af62 | 44 | BuildRequires: automake >= 1:1.13.4 |
25f07c49 JB |
45 | %{?with_esd:BuildRequires: esound-devel} |
46 | BuildRequires: fontconfig-devel | |
47 | BuildRequires: fribidi-devel >= 0.10.4 | |
efc175b0 | 48 | BuildRequires: gdk-pixbuf2-xlib-devel >= 2.0 |
25f07c49 JB |
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} | |
ad3dbd79 | 55 | BuildRequires: libstdc++-devel |
25f07c49 | 56 | BuildRequires: libtool >= 2:2.4.2 |
6497299f | 57 | BuildRequires: pkgconfig |
25f07c49 | 58 | BuildRequires: sed >= 4.0 |
6497299f | 59 | BuildRequires: xorg-lib-libICE-devel |
60 | BuildRequires: xorg-lib-libSM-devel | |
61 | BuildRequires: xorg-lib-libX11-devel | |
efc175b0 | 62 | BuildRequires: xorg-lib-libXext-devel |
6e664482 | 63 | %{?with_freetype:BuildRequires: xorg-lib-libXft-devel >= 2.1} |
6497299f | 64 | BuildRequires: xorg-lib-libXinerama-devel |
505d687f | 65 | BuildRequires: xorg-lib-libXpm-devel |
efc175b0 | 66 | BuildRequires: xorg-lib-libXrandr-devel |
25f07c49 | 67 | %{?with_yiff:BuildRequires: yiff-devel >= 2.14.7-3} |
efc175b0 JB |
68 | Requires(pre): /bin/rm |
69 | Requires(pre): /usr/bin/test | |
6e420e6f | 70 | Requires: shared-mime-info |
6e664482 | 71 | Requires: xinitrc-ng |
adf9ec40 | 72 | Suggests: vfmg >= 0.9.95 |
493ede44 | 73 | Conflicts: filesystem < 3.0-20 |
6d982d2b | 74 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ae00d23e | 75 | |
493ede44 | 76 | %define _wmpropsdir /usr/share/gnome/wm-properties |
adf9ec40 | 77 | %define specflags_ia32 -fomit-frame-pointer |
4b050385 | 78 | |
ae00d23e | 79 | %description |
1a5be8e2 | 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. | |
ae00d23e | 84 | |
4c581f51 | 85 | %description -l es.UTF-8 |
ddb1aa5d | 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 | |
4c581f51 | 88 | características de los sistemas citados. Características: varios |
ddb1aa5d | 89 | ambientes de trabajo, movimiento/ redimensionamiento opaco, barra de |
90 | tareas, lista de ventanas, estado de la caja de entrada del correo y | |
4c581f51 | 91 | reloj digital. Rápido y pequeño. |
ddb1aa5d | 92 | |
4c581f51 JR |
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. | |
ae00d23e | 99 | |
4c581f51 JR |
100 | %description -l pt_BR.UTF-8 |
101 | Gerenciador de Janelas para o X Window. Pode emular a aparência do | |
ddb1aa5d | 102 | Windows'95, OS/2 Warp 3 e 4 e o Motif. Tenta usar as melhores |
4c581f51 JR |
103 | características dos sistemas citados. Características: vários |
104 | ambientes de trabalho, movimentação/ redimensionamento opaco, barra de | |
ddb1aa5d | 105 | tarefas, lista de janelas, status da caixa de entrada do correio e |
4c581f51 | 106 | relógio digital. É rápido e pequeno. |
ddb1aa5d | 107 | |
4c581f51 JR |
108 | %description -l ru.UTF-8 |
109 | Оконный менеджер для X Window System. Может эмулировать внешний вид | |
110 | Windows'95, OS/2 Warp 3,4, Motif. Старается взять лучшее из упомянутых | |
111 | систем. Поддерживает несколько рабочих поверхностей, непрозрачное | |
112 | перемещение окон, полоску заданий, список окон, статус почтового | |
113 | ящика, цифровые часы. Быстрый и компактный. | |
ddb1aa5d | 114 | |
4c581f51 JR |
115 | %description -l uk.UTF-8 |
116 | Віконний менеджер для X Window System. Може емулювати зовнішній вигляд | |
117 | Windows'95, OS/2 Warp 3,4, Motif. Намагається взяти найкраще із | |
118 | згаданих систем. Підтримує кілька робочих площин, непрозоре | |
119 | переміщення вікон, смужку завдань, список вікон, стан поштової | |
120 | скриньки, цифровий годинник. Швидкий та компактний. | |
ddb1aa5d | 121 | |
4c581f51 | 122 | %description -l de.UTF-8 |
1dc87219 | 123 | IceWM ist ein in C++ programmierter, unter GPL stehender |
4c581f51 | 124 | Fenstermanager für das X11-Fenstersystem. Ziel von IceWM ist |
1dc87219 | 125 | Geschwindigkeit, Schlichtheit und Bedienerfreundlichkeit. |
126 | ||
127 | In der Standardeinstellung erinnert das Design von IceWM stark an | |
4c581f51 JR |
128 | Microsoft Windows: Er verfügt über eine Taskleiste am unteren |
129 | Bildrand, das aktive Fenster lässt sich mit der Tastenkombination | |
1dc87219 | 130 | ALT-TAB wechseln, etc. |
131 | ||
66cf1d33 | 132 | %package themes-base |
215be0a2 | 133 | Summary: Pack of themes for IceWM |
e71b1c56 | 134 | Summary(pl.UTF-8): Zestaw motywów dla IceWM-a |
1de8817c | 135 | Group: Themes |
1de8817c PG |
136 | Requires: icewm |
137 | ||
66cf1d33 | 138 | %description themes-base |
4ce4af62 JB |
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 | |
1de8817c | 149 | |
4c581f51 | 150 | %description themes-base -l pl.UTF-8 |
4ce4af62 JB |
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 | |
1de8817c | 161 | |
e3ce326c | 162 | %prep |
8210023f | 163 | %setup -q |
505d687f | 164 | #%%patch0 -p1 |
a57c0865 | 165 | |
25f07c49 | 166 | tar -xzf %{SOURCE3} -C lib/icons |
efc175b0 | 167 | |
25f07c49 | 168 | %{__sed} -i -e '/po\/Makefile.in/d' configure.ac |
88a00d08 | 169 | |
ae00d23e | 170 | %build |
25f07c49 JB |
171 | %{__gettextize} |
172 | %{__libtoolize} | |
173 | %{__aclocal} -I m4 | |
f1701bad | 174 | %{__autoconf} |
bee131a8 | 175 | %{__autoheader} |
25f07c49 | 176 | %{__automake} |
9c2161ab | 177 | %configure \ |
4ce4af62 | 178 | ASCIIDOC=/usr/bin/asciidoc \ |
7b9b8cad | 179 | %{!?with_gradients:--disable-gradients} \ |
25f07c49 JB |
180 | %{?with_guievents:--enable-guievents --with-icesound=%{?with_alsa:ALSA,}OSS%{?with_yiff:,Y}%{?with_esd:,ESound}} \ |
181 | %{!?with_gnome2:--disable-menus-gnome2} \ | |
a0563aeb | 182 | --enable-shaped-decorations \ |
efc175b0 | 183 | %{!?with_freetype:--disable-xfreetype --enable-corefonts} \ |
d6cdaeb0 | 184 | --with-cfgdir=%{_sysconfdir}/X11/%{name} \ |
6e364d8f | 185 | --with-docdir=%{_docdir} |
3bac607c | 186 | %{__make} |
ae00d23e | 187 | |
188 | %install | |
4d5a15a4 | 189 | rm -rf $RPM_BUILD_ROOT |
25f07c49 | 190 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_wmpropsdir},%{_sysconfdir}/X11/%{name}} |
0c3991fa | 191 | |
6166ac1f JB |
192 | %{__make} install \ |
193 | DESTDIR=$RPM_BUILD_ROOT | |
ae00d23e | 194 | |
505d687f | 195 | %{__sed} -e 's|^# IconPath=""|IconPath="%{_pixmapsdir}:%{_datadir}/icons"|' -i $RPM_BUILD_ROOT%{_datadir}/icewm/preferences |
25f07c49 JB |
196 | |
197 | # packaged as %doc | |
198 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/icewm | |
199 | ||
efc175b0 JB |
200 | %{?with_gnome2:cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}} |
201 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/icewm/startup | |
efc175b0 | 202 | cp -p lib/keys $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/keys |
efc175b0 JB |
203 | cp -p lib/toolbar $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/toolbar |
204 | cp -p lib/winoptions $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/winoptions | |
87dff741 TP |
205 | echo %{_bindir}/icewmbg > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/startup |
206 | :> $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/restart | |
3c3df5cc | 207 | |
ad3dbd79 | 208 | ln -s %{_datadir}/icewm/icons $RPM_BUILD_ROOT%{_pixmapsdir}/icewm |
3ad3dd29 | 209 | |
6e664482 | 210 | echo "menuprog \"Programs\" %{_datadir}/icewm/icons/folder_16x16.xpm vfmg -i -f -x -c -s icewm" > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/menu |
f358545f | 211 | |
4ce4af62 JB |
212 | # old themes, no longer installed |
213 | cp -pr lib/themes/{gtk2,nice,nice2,warp3,warp4,yellowmotif} $RPM_BUILD_ROOT%{_datadir}/icewm/themes | |
214 | ||
8852bbec JR |
215 | # duplicate locale |
216 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no | |
217 | ||
6e364d8f | 218 | %find_lang %{name} |
cdb55b8b | 219 | |
ae00d23e | 220 | %clean |
4d5a15a4 | 221 | rm -rf $RPM_BUILD_ROOT |
ae00d23e | 222 | |
afc8af6e | 223 | %pre |
4af6cac8 | 224 | test -h %{_pixmapsdir}/icewm || rm -rf %{_pixmapsdir}/icewm |
afc8af6e | 225 | |
cdb55b8b | 226 | %files -f %{name}.lang |
5450fc43 | 227 | %defattr(644,root,root,755) |
4ce4af62 | 228 | %doc AUTHORS BUGS CHANGES ChangeLog NEWS PLATFORMS README.md THANKS TODO doc/*.html |
efc175b0 JB |
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 | |
25f07c49 | 235 | %attr(755,root,root) %{_bindir}/icewm-menu-fdo |
efc175b0 JB |
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 | |
505d687f WF |
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* | |
d6cdaeb0 | 262 | %dir %{_sysconfdir}/X11/%{name} |
efc175b0 JB |
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 | |
efc175b0 JB |
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 | |
95624d68 | 269 | %{_pixmapsdir}/icewm |
ad3dbd79 | 270 | %dir %{_datadir}/icewm |
505d687f | 271 | %{_datadir}/icewm/IceWM.jpg |
ad3dbd79 | 272 | %{_datadir}/icewm/icons |
efc175b0 JB |
273 | %{_datadir}/icewm/keys |
274 | %{_datadir}/icewm/menu | |
ad3dbd79 TP |
275 | %{_datadir}/icewm/ledclock |
276 | %{_datadir}/icewm/mailbox | |
efc175b0 | 277 | %{_datadir}/icewm/preferences |
25f07c49 | 278 | %{_datadir}/icewm/programs |
2e7a9eeb | 279 | %attr(755,root,root) %{_datadir}/icewm/startup |
efc175b0 | 280 | %{_datadir}/icewm/toolbar |
ad3dbd79 | 281 | %{_datadir}/icewm/taskbar |
efc175b0 | 282 | %{_datadir}/icewm/winoptions |
ad3dbd79 TP |
283 | %dir %{_datadir}/icewm/themes |
284 | %{_datadir}/icewm/themes/Infadel2 | |
4ce4af62 | 285 | %{_datadir}/icewm/themes/default |
10c19d56 | 286 | %{_datadir}/icewm/themes/icedesert |
efc175b0 | 287 | %{_datadir}/xsessions/icewm.desktop |
25f07c49 | 288 | %{_datadir}/xsessions/icewm-session.desktop |
efc175b0 | 289 | %{?with_gnome2:%{_wmpropsdir}/IceWM.desktop} |
25f07c49 | 290 | %{_mandir}/man1/icewm.1* |
1de8817c | 291 | |
66cf1d33 | 292 | %files themes-base |
c0e8bfc7 | 293 | %defattr(644,root,root,755) |
4ce4af62 JB |
294 | %{_datadir}/icewm/themes/CrystalBlue |
295 | %{_datadir}/icewm/themes/Helix | |
296 | %{_datadir}/icewm/themes/NanoBlue | |
ad3dbd79 TP |
297 | %{_datadir}/icewm/themes/metal2 |
298 | %{_datadir}/icewm/themes/motif | |
4ce4af62 JB |
299 | %{_datadir}/icewm/themes/win95 |
300 | # old themes, no longer installed in 1.4.x | |
301 | %{_datadir}/icewm/themes/gtk2 | |
ad3dbd79 TP |
302 | %{_datadir}/icewm/themes/nice |
303 | %{_datadir}/icewm/themes/nice2 | |
304 | %{_datadir}/icewm/themes/warp3 | |
305 | %{_datadir}/icewm/themes/warp4 | |
61d539bc | 306 | %{_datadir}/icewm/themes/yellowmotif |