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