]>
Commit | Line | Data |
---|---|---|
c3c05e60 | 1 | # |
747634b9 | 2 | # Conditional build: |
efc175b0 JB |
3 | %bcond_without gradients # gradients (requires antialiasing which requires freetype) |
4 | %bcond_without freetype # xfreetype support (implies no antialiasing) | |
5 | %bcond_with guievents # GUI events (broken in 1.3.8) | |
6 | %bcond_with gnome2 # support for GNOME2 wm-properties | |
747634b9 | 7 | # |
c3c05e60 | 8 | # TODO: |
c3c05e60 | 9 | # - make a PLD-theme - default :] |
f1701bad | 10 | |
5450fc43 | 11 | Summary: IceWM X11 Window Manager |
6497299f | 12 | Summary(de.UTF-8): IceWM ist ein Window Manager für X |
e71b1c56 ER |
13 | Summary(es.UTF-8): Administrador de Ventanas X11 |
14 | Summary(pl.UTF-8): IceWM - zarządca okienek X11 | |
15 | Summary(pt_BR.UTF-8): Gerenciador de Janelas X11 | |
16 | Summary(ru.UTF-8): Оконный менеджер для X11 | |
17 | Summary(uk.UTF-8): Віконний менеджер для X11 | |
5450fc43 | 18 | Name: icewm |
efc175b0 JB |
19 | Version: 1.3.8 |
20 | %define iceicons_ver 0.6 | |
21 | %define netscapeicons_ver 0.2 | |
22 | Release: 1 | |
1e98fedb | 23 | Epoch: 2 |
efc175b0 | 24 | License: LGPL v2 |
5450fc43 | 25 | Group: X11/Window Managers |
efc175b0 JB |
26 | Source0: http://downloads.sourceforge.net/icewm/%{name}-%{version}.tar.gz |
27 | # Source0-md5: 6d61aced3bd20b9e7caeb7e8380368c8 | |
0c3991fa | 28 | Source1: IceWM.desktop |
efc175b0 | 29 | Source3: http://downloads.sourceforge.net/icewm/iceicons-%{iceicons_ver}.tar.gz |
a5b4d509 | 30 | # Source3-md5: 53ed111a3c4d1e609bd1604ddccd4701 |
2e7a9eeb | 31 | Source4: icewm-startup.sh |
efc175b0 | 32 | Source6: http://downloads.sourceforge.net/icewm/netscapeicons-%{netscapeicons_ver}.tar.gz |
a5b4d509 | 33 | # Source6-md5: 409aa9b02adc11309ed546c5120c01d2 |
d237af73 | 34 | Source7: %{name}-xsession.desktop |
4037b355 | 35 | Patch0: %{name}-build-fixes.patch |
4037b355 | 36 | Patch3: %{name}-ifstate-exact-check.patch |
1c6d3d3b | 37 | Patch5: %{name}-autohide.patch |
efc175b0 | 38 | URL: https://ice-wm.org/ |
a57c0865 | 39 | BuildRequires: autoconf >= 2.50 |
3d37a24f | 40 | BuildRequires: automake |
efc175b0 | 41 | BuildRequires: gdk-pixbuf2-xlib-devel >= 2.0 |
bd887558 | 42 | BuildRequires: gettext-tools |
ad3dbd79 | 43 | BuildRequires: libstdc++-devel |
6497299f | 44 | BuildRequires: pkgconfig |
45 | BuildRequires: xorg-lib-libICE-devel | |
46 | BuildRequires: xorg-lib-libSM-devel | |
47 | BuildRequires: xorg-lib-libX11-devel | |
efc175b0 | 48 | BuildRequires: xorg-lib-libXext-devel |
6e664482 | 49 | %{?with_freetype:BuildRequires: xorg-lib-libXft-devel >= 2.1} |
6497299f | 50 | BuildRequires: xorg-lib-libXinerama-devel |
efc175b0 JB |
51 | BuildRequires: xorg-lib-libXrandr-devel |
52 | BuildRequires: xorg-lib-libXrender-devel | |
db2f0631 | 53 | %{?with_guievents:BuildRequires: yiff-devel} |
efc175b0 JB |
54 | Requires(pre): /bin/rm |
55 | Requires(pre): /usr/bin/test | |
6e420e6f | 56 | Requires: shared-mime-info |
6e664482 | 57 | Requires: xinitrc-ng |
adf9ec40 | 58 | Suggests: vfmg >= 0.9.95 |
493ede44 | 59 | Conflicts: filesystem < 3.0-20 |
6d982d2b | 60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ae00d23e | 61 | |
493ede44 | 62 | %define _wmpropsdir /usr/share/gnome/wm-properties |
adf9ec40 | 63 | %define specflags_ia32 -fomit-frame-pointer |
4b050385 | 64 | |
ae00d23e | 65 | %description |
1a5be8e2 | 66 | Window Manager for X Window System. Can emulate the look of |
67 | Windows'95, OS/2 Warp 3,4, Motif. Tries to take the best features of | |
68 | the above systems. Features multiple workspaces, opaque move/resize, | |
69 | task bar, window list, mailbox status, digital clock. Fast and small. | |
ae00d23e | 70 | |
4c581f51 | 71 | %description -l es.UTF-8 |
ddb1aa5d | 72 | Administrador de Ventanas para el X Window. Puede emular la apariencia |
73 | del Windows'95, OS/2 Warp 3 y 4 y el Motif. Intenta usar las mejores | |
4c581f51 | 74 | características de los sistemas citados. Características: varios |
ddb1aa5d | 75 | ambientes de trabajo, movimiento/ redimensionamiento opaco, barra de |
76 | tareas, lista de ventanas, estado de la caja de entrada del correo y | |
4c581f51 | 77 | reloj digital. Rápido y pequeño. |
ddb1aa5d | 78 | |
4c581f51 JR |
79 | %description -l pl.UTF-8 |
80 | Zarządca okienek pod X11. Może emulować wygląd Windows'95, OS/2 Warp | |
81 | 3, 4, MWM. Zarządca ten próbuje przejąć z powyższych środowisk ich | |
82 | najlepsze cechy, takie jak: wiele jednocześnie obecnych przestrzeni | |
83 | roboczych, paski narzędziowe, status skrzynki z pocztą, cyfrowy zegar. | |
84 | Jest przy tym mały i szybki. | |
ae00d23e | 85 | |
4c581f51 JR |
86 | %description -l pt_BR.UTF-8 |
87 | Gerenciador de Janelas para o X Window. Pode emular a aparência do | |
ddb1aa5d | 88 | Windows'95, OS/2 Warp 3 e 4 e o Motif. Tenta usar as melhores |
4c581f51 JR |
89 | características dos sistemas citados. Características: vários |
90 | ambientes de trabalho, movimentação/ redimensionamento opaco, barra de | |
ddb1aa5d | 91 | tarefas, lista de janelas, status da caixa de entrada do correio e |
4c581f51 | 92 | relógio digital. É rápido e pequeno. |
ddb1aa5d | 93 | |
4c581f51 JR |
94 | %description -l ru.UTF-8 |
95 | Оконный менеджер для X Window System. Может эмулировать внешний вид | |
96 | Windows'95, OS/2 Warp 3,4, Motif. Старается взять лучшее из упомянутых | |
97 | систем. Поддерживает несколько рабочих поверхностей, непрозрачное | |
98 | перемещение окон, полоску заданий, список окон, статус почтового | |
99 | ящика, цифровые часы. Быстрый и компактный. | |
ddb1aa5d | 100 | |
4c581f51 JR |
101 | %description -l uk.UTF-8 |
102 | Віконний менеджер для X Window System. Може емулювати зовнішній вигляд | |
103 | Windows'95, OS/2 Warp 3,4, Motif. Намагається взяти найкраще із | |
104 | згаданих систем. Підтримує кілька робочих площин, непрозоре | |
105 | переміщення вікон, смужку завдань, список вікон, стан поштової | |
106 | скриньки, цифровий годинник. Швидкий та компактний. | |
ddb1aa5d | 107 | |
4c581f51 | 108 | %description -l de.UTF-8 |
1dc87219 | 109 | IceWM ist ein in C++ programmierter, unter GPL stehender |
4c581f51 | 110 | Fenstermanager für das X11-Fenstersystem. Ziel von IceWM ist |
1dc87219 | 111 | Geschwindigkeit, Schlichtheit und Bedienerfreundlichkeit. |
112 | ||
113 | In der Standardeinstellung erinnert das Design von IceWM stark an | |
4c581f51 JR |
114 | Microsoft Windows: Er verfügt über eine Taskleiste am unteren |
115 | Bildrand, das aktive Fenster lässt sich mit der Tastenkombination | |
1dc87219 | 116 | ALT-TAB wechseln, etc. |
117 | ||
66cf1d33 | 118 | %package themes-base |
215be0a2 | 119 | Summary: Pack of themes for IceWM |
e71b1c56 | 120 | Summary(pl.UTF-8): Zestaw motywów dla IceWM-a |
1de8817c | 121 | Group: Themes |
1de8817c PG |
122 | Requires: icewm |
123 | ||
66cf1d33 | 124 | %description themes-base |
215be0a2 | 125 | Standard pack of themes delivered with IceWM. All of them made by |
ad3dbd79 | 126 | Marko Macek: gtk2, metal2, motif, nice, nice2, warp3, warp4, win95. |
1de8817c | 127 | |
4c581f51 JR |
128 | %description themes-base -l pl.UTF-8 |
129 | Standardowy zestaw motywów dla IceWM-a, dostarczany wraz z nim. | |
f9903abb | 130 | Wszystkie stworzone przez Marko Macka: gtk2, metal2, motif, nice, |
ad3dbd79 | 131 | nice2, warp3, warp4, win95. |
1de8817c | 132 | |
e3ce326c | 133 | %prep |
8210023f | 134 | %setup -q |
d7fd3e93 | 135 | %patch0 -p1 |
4037b355 | 136 | %patch3 -p1 |
1c6d3d3b | 137 | %patch5 -p1 |
a57c0865 | 138 | |
efc175b0 JB |
139 | # remove GNOME1/GNOME2 menu rules |
140 | %{__sed} -i -e '/icewm-menu-gnome/d' lib/menu.in | |
141 | ||
88a00d08 | 142 | cd lib/icons |
716f35c8 | 143 | tar -xzf %{SOURCE3} |
f358545f | 144 | tar -xzf %{SOURCE6} |
88a00d08 | 145 | |
ae00d23e | 146 | %build |
b6feae82 | 147 | cp -f /usr/share/automake/config.sub . |
f1701bad | 148 | %{__aclocal} |
149 | %{__autoconf} | |
bee131a8 | 150 | %{__autoheader} |
9c2161ab | 151 | %configure \ |
7b9b8cad | 152 | %{!?with_gradients:--disable-gradients} \ |
efc175b0 | 153 | %{?with_guievents:--enable-guievents --with-icesound=OSS,Y} \ |
a0563aeb | 154 | --enable-shaped-decorations \ |
efc175b0 | 155 | %{!?with_freetype:--disable-xfreetype --enable-corefonts} \ |
d6cdaeb0 | 156 | --with-cfgdir=%{_sysconfdir}/X11/%{name} \ |
6e364d8f | 157 | --with-docdir=%{_docdir} |
3bac607c | 158 | %{__make} |
ae00d23e | 159 | |
160 | %install | |
4d5a15a4 | 161 | rm -rf $RPM_BUILD_ROOT |
2e7a9eeb | 162 | install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir}} \ |
dff8174f | 163 | $RPM_BUILD_ROOT{%{_wmpropsdir},%{_sysconfdir}/X11/%{name}} |
0c3991fa | 164 | |
6166ac1f JB |
165 | %{__make} install \ |
166 | DESTDIR=$RPM_BUILD_ROOT | |
ae00d23e | 167 | |
efc175b0 JB |
168 | %{?with_gnome2:cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}} |
169 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/icewm/startup | |
170 | cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop | |
171 | cp -p lib/keys $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/keys | |
1dc87219 | 172 | sed 's|^# IconPath=""|IconPath="%{_datadir}/pixmaps:%{_datadir}/icons"|' < lib/preferences > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/preferences |
efc175b0 JB |
173 | cp -p lib/toolbar $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/toolbar |
174 | cp -p lib/winoptions $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/winoptions | |
87dff741 TP |
175 | echo %{_bindir}/icewmbg > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/startup |
176 | :> $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/restart | |
3c3df5cc | 177 | |
ad3dbd79 | 178 | ln -s %{_datadir}/icewm/icons $RPM_BUILD_ROOT%{_pixmapsdir}/icewm |
3ad3dd29 | 179 | |
6e664482 | 180 | echo "menuprog \"Programs\" %{_datadir}/icewm/icons/folder_16x16.xpm vfmg -i -f -x -c -s icewm" > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/menu |
f358545f | 181 | |
6e364d8f | 182 | %find_lang %{name} |
cdb55b8b | 183 | |
ae00d23e | 184 | %clean |
4d5a15a4 | 185 | rm -rf $RPM_BUILD_ROOT |
ae00d23e | 186 | |
afc8af6e | 187 | %pre |
4af6cac8 | 188 | test -h %{_pixmapsdir}/icewm || rm -rf %{_pixmapsdir}/icewm |
afc8af6e | 189 | |
cdb55b8b | 190 | %files -f %{name}.lang |
5450fc43 | 191 | %defattr(644,root,root,755) |
efc175b0 JB |
192 | %doc AUTHORS BUGS CHANGES PLATFORMS README* TODO doc/*.html |
193 | %attr(755,root,root) %{_bindir}/icehelp | |
194 | %attr(755,root,root) %{_bindir}/icesh | |
195 | %if %{with guievents} | |
196 | %attr(755,root,root) %{_bindir}/icesound | |
197 | %endif | |
198 | %attr(755,root,root) %{_bindir}/icewm | |
199 | %attr(755,root,root) %{_bindir}/icewm-session | |
200 | %attr(755,root,root) %{_bindir}/icewm-set-gnomewm | |
201 | %attr(755,root,root) %{_bindir}/icewmbg | |
202 | %attr(755,root,root) %{_bindir}/icewmhint | |
203 | %attr(755,root,root) %{_bindir}/icewmtray | |
d6cdaeb0 | 204 | %dir %{_sysconfdir}/X11/%{name} |
efc175b0 JB |
205 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/keys |
206 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/menu | |
207 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/preferences | |
208 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/toolbar | |
209 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/winoptions | |
210 | %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/restart | |
211 | %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/startup | |
95624d68 | 212 | %{_pixmapsdir}/icewm |
ad3dbd79 TP |
213 | %dir %{_datadir}/icewm |
214 | %{_datadir}/icewm/icons | |
efc175b0 JB |
215 | %{_datadir}/icewm/keys |
216 | %{_datadir}/icewm/menu | |
ad3dbd79 TP |
217 | %{_datadir}/icewm/ledclock |
218 | %{_datadir}/icewm/mailbox | |
efc175b0 | 219 | %{_datadir}/icewm/preferences |
2e7a9eeb | 220 | %attr(755,root,root) %{_datadir}/icewm/startup |
efc175b0 | 221 | %{_datadir}/icewm/toolbar |
ad3dbd79 | 222 | %{_datadir}/icewm/taskbar |
efc175b0 | 223 | %{_datadir}/icewm/winoptions |
ad3dbd79 TP |
224 | %dir %{_datadir}/icewm/themes |
225 | %{_datadir}/icewm/themes/Infadel2 | |
10c19d56 | 226 | %{_datadir}/icewm/themes/icedesert |
efc175b0 JB |
227 | %{_datadir}/xsessions/icewm.desktop |
228 | %{?with_gnome2:%{_wmpropsdir}/IceWM.desktop} | |
1de8817c | 229 | |
66cf1d33 | 230 | %files themes-base |
c0e8bfc7 | 231 | %defattr(644,root,root,755) |
ad3dbd79 TP |
232 | %{_datadir}/icewm/themes/gtk2 |
233 | %{_datadir}/icewm/themes/metal2 | |
234 | %{_datadir}/icewm/themes/motif | |
235 | %{_datadir}/icewm/themes/nice | |
236 | %{_datadir}/icewm/themes/nice2 | |
237 | %{_datadir}/icewm/themes/warp3 | |
238 | %{_datadir}/icewm/themes/warp4 | |
239 | %{_datadir}/icewm/themes/win95 | |
61d539bc | 240 | %{_datadir}/icewm/themes/yellowmotif |