]>
Commit | Line | Data |
---|---|---|
25f07c49 JB |
1 | # TODO: |
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 | |
5450fc43 | 25 | Name: icewm |
25f07c49 | 26 | Version: 1.3.12 |
efc175b0 | 27 | %define iceicons_ver 0.6 |
efc175b0 | 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 | |
34 | # Source0-md5: ab4671878fc36d5f96896a04e5f8c0bc | |
0c3991fa | 35 | Source1: IceWM.desktop |
efc175b0 | 36 | Source3: http://downloads.sourceforge.net/icewm/iceicons-%{iceicons_ver}.tar.gz |
a5b4d509 | 37 | # Source3-md5: 53ed111a3c4d1e609bd1604ddccd4701 |
2e7a9eeb | 38 | Source4: icewm-startup.sh |
4037b355 | 39 | Patch0: %{name}-build-fixes.patch |
efc175b0 | 40 | URL: https://ice-wm.org/ |
25f07c49 JB |
41 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
42 | BuildRequires: autoconf >= 2.69 | |
3d37a24f | 43 | BuildRequires: automake |
25f07c49 JB |
44 | %{?with_esd:BuildRequires: esound-devel} |
45 | BuildRequires: fontconfig-devel | |
46 | BuildRequires: fribidi-devel >= 0.10.4 | |
efc175b0 | 47 | BuildRequires: gdk-pixbuf2-xlib-devel >= 2.0 |
25f07c49 JB |
48 | BuildRequires: gettext-tools >= 0.19.6 |
49 | BuildRequires: glib2-devel >= 2.0 | |
50 | %{?with_gnome2:BuildRequires: gnome-desktop2-devel >= 2.0} | |
51 | %{?with_gnome2:BuildRequires: gnome-vfs2-devel >= 2.0} | |
52 | %{?with_gnome2:BuildRequires: libgnomeui-devel >= 2.0} | |
53 | %{?with_alsa:BuildRequires: libsndfile-devel} | |
ad3dbd79 | 54 | BuildRequires: libstdc++-devel |
25f07c49 | 55 | BuildRequires: libtool >= 2:2.4.2 |
6497299f | 56 | BuildRequires: pkgconfig |
25f07c49 | 57 | BuildRequires: sed >= 4.0 |
6497299f | 58 | BuildRequires: xorg-lib-libICE-devel |
59 | BuildRequires: xorg-lib-libSM-devel | |
60 | BuildRequires: xorg-lib-libX11-devel | |
efc175b0 | 61 | BuildRequires: xorg-lib-libXext-devel |
6e664482 | 62 | %{?with_freetype:BuildRequires: xorg-lib-libXft-devel >= 2.1} |
6497299f | 63 | BuildRequires: xorg-lib-libXinerama-devel |
efc175b0 JB |
64 | BuildRequires: xorg-lib-libXrandr-devel |
65 | BuildRequires: xorg-lib-libXrender-devel | |
25f07c49 | 66 | %{?with_yiff:BuildRequires: yiff-devel >= 2.14.7-3} |
efc175b0 JB |
67 | Requires(pre): /bin/rm |
68 | Requires(pre): /usr/bin/test | |
6e420e6f | 69 | Requires: shared-mime-info |
6e664482 | 70 | Requires: xinitrc-ng |
adf9ec40 | 71 | Suggests: vfmg >= 0.9.95 |
493ede44 | 72 | Conflicts: filesystem < 3.0-20 |
6d982d2b | 73 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ae00d23e | 74 | |
493ede44 | 75 | %define _wmpropsdir /usr/share/gnome/wm-properties |
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 |
215be0a2 | 138 | Standard pack of themes delivered with IceWM. All of them made by |
ad3dbd79 | 139 | Marko Macek: gtk2, metal2, motif, nice, nice2, warp3, warp4, win95. |
1de8817c | 140 | |
4c581f51 JR |
141 | %description themes-base -l pl.UTF-8 |
142 | Standardowy zestaw motywów dla IceWM-a, dostarczany wraz z nim. | |
f9903abb | 143 | Wszystkie stworzone przez Marko Macka: gtk2, metal2, motif, nice, |
ad3dbd79 | 144 | nice2, warp3, warp4, win95. |
1de8817c | 145 | |
e3ce326c | 146 | %prep |
8210023f | 147 | %setup -q |
d7fd3e93 | 148 | %patch0 -p1 |
a57c0865 | 149 | |
25f07c49 | 150 | tar -xzf %{SOURCE3} -C lib/icons |
efc175b0 | 151 | |
25f07c49 | 152 | %{__sed} -i -e '/po\/Makefile.in/d' configure.ac |
88a00d08 | 153 | |
ae00d23e | 154 | %build |
25f07c49 JB |
155 | %{__gettextize} |
156 | %{__libtoolize} | |
157 | %{__aclocal} -I m4 | |
f1701bad | 158 | %{__autoconf} |
bee131a8 | 159 | %{__autoheader} |
25f07c49 | 160 | %{__automake} |
9c2161ab | 161 | %configure \ |
7b9b8cad | 162 | %{!?with_gradients:--disable-gradients} \ |
25f07c49 JB |
163 | %{?with_guievents:--enable-guievents --with-icesound=%{?with_alsa:ALSA,}OSS%{?with_yiff:,Y}%{?with_esd:,ESound}} \ |
164 | %{!?with_gnome2:--disable-menus-gnome2} \ | |
a0563aeb | 165 | --enable-shaped-decorations \ |
efc175b0 | 166 | %{!?with_freetype:--disable-xfreetype --enable-corefonts} \ |
d6cdaeb0 | 167 | --with-cfgdir=%{_sysconfdir}/X11/%{name} \ |
6e364d8f | 168 | --with-docdir=%{_docdir} |
3bac607c | 169 | %{__make} |
ae00d23e | 170 | |
171 | %install | |
4d5a15a4 | 172 | rm -rf $RPM_BUILD_ROOT |
25f07c49 | 173 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_wmpropsdir},%{_sysconfdir}/X11/%{name}} |
0c3991fa | 174 | |
6166ac1f JB |
175 | %{__make} install \ |
176 | DESTDIR=$RPM_BUILD_ROOT | |
ae00d23e | 177 | |
25f07c49 JB |
178 | %{__sed} -e 's|^# IconPath=""|IconPath="%{_datadir}/pixmaps:%{_datadir}/icons"|' -i $RPM_BUILD_ROOT%{_datadir}/icewm/preferences |
179 | ||
180 | # packaged as %doc | |
181 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/icewm | |
182 | ||
efc175b0 JB |
183 | %{?with_gnome2:cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}} |
184 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/icewm/startup | |
efc175b0 | 185 | cp -p lib/keys $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/keys |
efc175b0 JB |
186 | cp -p lib/toolbar $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/toolbar |
187 | cp -p lib/winoptions $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/winoptions | |
87dff741 TP |
188 | echo %{_bindir}/icewmbg > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/startup |
189 | :> $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/restart | |
3c3df5cc | 190 | |
ad3dbd79 | 191 | ln -s %{_datadir}/icewm/icons $RPM_BUILD_ROOT%{_pixmapsdir}/icewm |
3ad3dd29 | 192 | |
6e664482 | 193 | echo "menuprog \"Programs\" %{_datadir}/icewm/icons/folder_16x16.xpm vfmg -i -f -x -c -s icewm" > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/menu |
f358545f | 194 | |
6e364d8f | 195 | %find_lang %{name} |
cdb55b8b | 196 | |
ae00d23e | 197 | %clean |
4d5a15a4 | 198 | rm -rf $RPM_BUILD_ROOT |
ae00d23e | 199 | |
afc8af6e | 200 | %pre |
4af6cac8 | 201 | test -h %{_pixmapsdir}/icewm || rm -rf %{_pixmapsdir}/icewm |
afc8af6e | 202 | |
cdb55b8b | 203 | %files -f %{name}.lang |
5450fc43 | 204 | %defattr(644,root,root,755) |
efc175b0 JB |
205 | %doc AUTHORS BUGS CHANGES PLATFORMS README* TODO doc/*.html |
206 | %attr(755,root,root) %{_bindir}/icehelp | |
207 | %attr(755,root,root) %{_bindir}/icesh | |
208 | %if %{with guievents} | |
209 | %attr(755,root,root) %{_bindir}/icesound | |
210 | %endif | |
211 | %attr(755,root,root) %{_bindir}/icewm | |
25f07c49 | 212 | %attr(755,root,root) %{_bindir}/icewm-menu-fdo |
efc175b0 JB |
213 | %attr(755,root,root) %{_bindir}/icewm-session |
214 | %attr(755,root,root) %{_bindir}/icewm-set-gnomewm | |
215 | %attr(755,root,root) %{_bindir}/icewmbg | |
216 | %attr(755,root,root) %{_bindir}/icewmhint | |
217 | %attr(755,root,root) %{_bindir}/icewmtray | |
d6cdaeb0 | 218 | %dir %{_sysconfdir}/X11/%{name} |
efc175b0 JB |
219 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/keys |
220 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/menu | |
efc175b0 JB |
221 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/toolbar |
222 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/winoptions | |
223 | %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/restart | |
224 | %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/startup | |
95624d68 | 225 | %{_pixmapsdir}/icewm |
ad3dbd79 TP |
226 | %dir %{_datadir}/icewm |
227 | %{_datadir}/icewm/icons | |
efc175b0 JB |
228 | %{_datadir}/icewm/keys |
229 | %{_datadir}/icewm/menu | |
ad3dbd79 TP |
230 | %{_datadir}/icewm/ledclock |
231 | %{_datadir}/icewm/mailbox | |
efc175b0 | 232 | %{_datadir}/icewm/preferences |
25f07c49 | 233 | %{_datadir}/icewm/programs |
2e7a9eeb | 234 | %attr(755,root,root) %{_datadir}/icewm/startup |
efc175b0 | 235 | %{_datadir}/icewm/toolbar |
ad3dbd79 | 236 | %{_datadir}/icewm/taskbar |
efc175b0 | 237 | %{_datadir}/icewm/winoptions |
ad3dbd79 TP |
238 | %dir %{_datadir}/icewm/themes |
239 | %{_datadir}/icewm/themes/Infadel2 | |
10c19d56 | 240 | %{_datadir}/icewm/themes/icedesert |
efc175b0 | 241 | %{_datadir}/xsessions/icewm.desktop |
25f07c49 | 242 | %{_datadir}/xsessions/icewm-session.desktop |
efc175b0 | 243 | %{?with_gnome2:%{_wmpropsdir}/IceWM.desktop} |
25f07c49 | 244 | %{_mandir}/man1/icewm.1* |
1de8817c | 245 | |
66cf1d33 | 246 | %files themes-base |
c0e8bfc7 | 247 | %defattr(644,root,root,755) |
ad3dbd79 TP |
248 | %{_datadir}/icewm/themes/gtk2 |
249 | %{_datadir}/icewm/themes/metal2 | |
250 | %{_datadir}/icewm/themes/motif | |
251 | %{_datadir}/icewm/themes/nice | |
252 | %{_datadir}/icewm/themes/nice2 | |
253 | %{_datadir}/icewm/themes/warp3 | |
254 | %{_datadir}/icewm/themes/warp4 | |
255 | %{_datadir}/icewm/themes/win95 | |
61d539bc | 256 | %{_datadir}/icewm/themes/yellowmotif |