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