]> git.pld-linux.org Git - packages/icewm.git/blob - icewm.spec
- updated to 2.9.0
[packages/icewm.git] / icewm.spec
1 # TODO:
2 # - make a PLD-theme - default:]
3 #
4 # Conditional build:
5 %bcond_without  gradients       # gradients (requires antialiasing which requires freetype)
6 %bcond_without  freetype        # xfreetype support (implies no antialiasing)
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
12
13 %if %{without guievents}
14 %undefine       with_alsa
15 %undefine       with_esd
16 %undefine       with_yiff
17 %endif
18 Summary:        IceWM X11 Window Manager
19 Summary(de.UTF-8):      IceWM ist ein Window Manager für X
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
25 %define iceicons_ver            0.6
26 Name:           icewm
27 Version:        2.9.0
28 Release:        1
29 Epoch:          2
30 License:        LGPL v2
31 Group:          X11/Window Managers
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:  f2f6fdb00287b75dd9ae12f35c054fca
35 Source1:        IceWM.desktop
36 Source3:        http://downloads.sourceforge.net/icewm/iceicons-%{iceicons_ver}.tar.gz
37 # Source3-md5:  53ed111a3c4d1e609bd1604ddccd4701
38 Source4:        %{name}-startup.sh
39 Patch0:         %{name}-build-fixes.patch
40 URL:            https://ice-wm.org/
41 %{?with_alsa:BuildRequires:     alsa-lib-devel}
42 BuildRequires:  asciidoc
43 BuildRequires:  autoconf >= 2.69
44 BuildRequires:  automake >= 1:1.13.4
45 %{?with_esd:BuildRequires:      esound-devel}
46 BuildRequires:  fontconfig-devel
47 BuildRequires:  fribidi-devel >= 0.10.4
48 BuildRequires:  gdk-pixbuf2-xlib-devel >= 2.0
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 BuildRequires:  imlib2-devel
54 %{?with_gnome2:BuildRequires:   libgnomeui-devel >= 2.0}
55 %{?with_alsa:BuildRequires:     libsndfile-devel}
56 BuildRequires:  libstdc++-devel
57 BuildRequires:  libtool >= 2:2.4.2
58 BuildRequires:  pkgconfig
59 BuildRequires:  sed >= 4.0
60 BuildRequires:  xorg-lib-libICE-devel
61 BuildRequires:  xorg-lib-libSM-devel
62 BuildRequires:  xorg-lib-libX11-devel
63 BuildRequires:  xorg-lib-libXext-devel
64 %{?with_freetype:BuildRequires: xorg-lib-libXft-devel >= 2.1}
65 BuildRequires:  xorg-lib-libXinerama-devel
66 BuildRequires:  xorg-lib-libXpm-devel
67 BuildRequires:  xorg-lib-libXrandr-devel
68 %{?with_yiff:BuildRequires:     yiff-devel >= 2.14.7-3}
69 Requires(pre):  /bin/rm
70 Requires(pre):  /usr/bin/test
71 Requires:       shared-mime-info
72 Requires:       xinitrc-ng
73 Suggests:       vfmg >= 0.9.95
74 Conflicts:      filesystem < 3.0-20
75 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76
77 %define         _wmpropsdir     /usr/share/gnome/wm-properties
78 %define         specflags_ia32  -fomit-frame-pointer
79
80 %description
81 Window Manager for X Window System. Can emulate the look of
82 Windows'95, OS/2 Warp 3,4, Motif. Tries to take the best features of
83 the above systems. Features multiple workspaces, opaque move/resize,
84 task bar, window list, mailbox status, digital clock. Fast and small.
85
86 %description -l es.UTF-8
87 Administrador de Ventanas para el X Window. Puede emular la apariencia
88 del Windows'95, OS/2 Warp 3 y 4 y el Motif. Intenta usar las mejores
89 características de los sistemas citados. Características: varios
90 ambientes de trabajo, movimiento/ redimensionamiento opaco, barra de
91 tareas, lista de ventanas, estado de la caja de entrada del correo y
92 reloj digital. Rápido y pequeño.
93
94 %description -l pl.UTF-8
95 Zarządca okienek pod X11. Może emulować wygląd Windows'95, OS/2 Warp
96 3, 4, MWM. Zarządca ten próbuje przejąć z powyższych środowisk ich
97 najlepsze cechy, takie jak: wiele jednocześnie obecnych przestrzeni
98 roboczych, paski narzędziowe, status skrzynki z pocztą, cyfrowy zegar.
99 Jest przy tym mały i szybki.
100
101 %description -l pt_BR.UTF-8
102 Gerenciador de Janelas para o X Window. Pode emular a aparência do
103 Windows'95, OS/2 Warp 3 e 4 e o Motif. Tenta usar as melhores
104 características dos sistemas citados. Características: vários
105 ambientes de trabalho, movimentação/ redimensionamento opaco, barra de
106 tarefas, lista de janelas, status da caixa de entrada do correio e
107 relógio digital. É rápido e pequeno.
108
109 %description -l ru.UTF-8
110 Оконный менеджер для X Window System. Может эмулировать внешний вид
111 Windows'95, OS/2 Warp 3,4, Motif. Старается взять лучшее из упомянутых
112 систем. Поддерживает несколько рабочих поверхностей, непрозрачное
113 перемещение окон, полоску заданий, список окон, статус почтового
114 ящика, цифровые часы. Быстрый и компактный.
115
116 %description -l uk.UTF-8
117 Віконний менеджер для X Window System. Може емулювати зовнішній вигляд
118 Windows'95, OS/2 Warp 3,4, Motif. Намагається взяти найкраще із
119 згаданих систем. Підтримує кілька робочих площин, непрозоре
120 переміщення вікон, смужку завдань, список вікон, стан поштової
121 скриньки, цифровий годинник. Швидкий та компактний.
122
123 %description -l de.UTF-8
124 IceWM ist ein in C++ programmierter, unter GPL stehender
125 Fenstermanager für das X11-Fenstersystem. Ziel von IceWM ist
126 Geschwindigkeit, Schlichtheit und Bedienerfreundlichkeit.
127
128 In der Standardeinstellung erinnert das Design von IceWM stark an
129 Microsoft Windows: Er verfügt über eine Taskleiste am unteren
130 Bildrand, das aktive Fenster lässt sich mit der Tastenkombination
131 ALT-TAB wechseln, etc.
132
133 %package themes-base
134 Summary:        Pack of themes for IceWM
135 Summary(pl.UTF-8):      Zestaw motywów dla IceWM-a
136 Group:          Themes
137 Requires:       icewm
138
139 %description themes-base
140 Standard pack of themes delivered with IceWM:
141 - CrystalBlue by BlueScorpio
142 - Helix by RudeSka and TigerT
143 - NanoBlue by lion1810
144 - metal2, motif, win32 by Marko Macek
145
146 This package contains also old themes, no longer installed by default
147 in IceWM 1.4:
148 - gtk2, nice, nice2, warp3, warp4 by Marko Macek
149 - yellowmotif by Andreas Leitgeb
150
151 %description themes-base -l pl.UTF-8
152 Standardowy zestaw motywów dla IceWM-a, dostarczany wraz z nim:
153 - CrystalBlue autorstwa BlueScorpio
154 - Helix autorstwa RudeSka i TigerT
155 - NanoBlue autorstwa lion1810
156 - metal2, motif, win32 autorstwa Marko Macka
157
158 Pakiet zawiera także stare motywy, nie instalowane domyślnie wraz z
159 IceWM-em 1.4:
160 - gtk2, nice, nice2, warp3, warp4 autorstwa Marko Macka
161 - yellowmotif autorstwa Andreasa Leitgeba
162
163 %prep
164 %setup -q
165 #%%patch0 -p1
166
167 tar -xzf %{SOURCE3} -C lib/icons
168
169 %{__sed} -i -e '/po\/Makefile.in/d' configure.ac
170
171 %build
172 %{__gettextize}
173 %{__libtoolize}
174 %{__aclocal} -I m4
175 %{__autoconf}
176 %{__autoheader}
177 %{__automake}
178 %configure \
179         ASCIIDOC=/usr/bin/asciidoc \
180         %{!?with_gradients:--disable-gradients} \
181         %{?with_guievents:--enable-guievents --with-icesound=%{?with_alsa:ALSA,}OSS%{?with_yiff:,Y}%{?with_esd:,ESound}} \
182         %{!?with_gnome2:--disable-menus-gnome2} \
183         --enable-shaped-decorations \
184         %{!?with_freetype:--disable-xfreetype --enable-corefonts} \
185         --with-cfgdir=%{_sysconfdir}/X11/%{name} \
186         --with-docdir=%{_docdir}
187 %{__make} V=1
188
189 %install
190 rm -rf $RPM_BUILD_ROOT
191 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_wmpropsdir},%{_sysconfdir}/X11/%{name}}
192
193 %{__make} install \
194         DESTDIR=$RPM_BUILD_ROOT
195
196 %{__sed} -e 's|^# IconPath=""|IconPath="%{_pixmapsdir}:%{_datadir}/icons"|' -i $RPM_BUILD_ROOT%{_datadir}/icewm/preferences
197
198 # packaged as %doc
199 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/icewm
200
201 %{?with_gnome2:cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}}
202 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/icewm/startup
203 cp -p lib/keys $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/keys
204 cp -p lib/toolbar $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/toolbar
205 cp -p lib/winoptions $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/winoptions
206 echo %{_bindir}/icewmbg > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/startup
207 :> $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/restart
208
209 ln -s %{_datadir}/icewm/icons $RPM_BUILD_ROOT%{_pixmapsdir}/icewm
210
211 echo "menuprog \"Programs\" %{_datadir}/icewm/icons/folder_16x16.xpm vfmg -i -f -x -c -s icewm" > $RPM_BUILD_ROOT%{_sysconfdir}/X11/%{name}/menu
212
213 # old themes, no longer installed
214 cp -pr lib/themes/{gtk2,nice,nice2,warp3,warp4,yellowmotif} $RPM_BUILD_ROOT%{_datadir}/icewm/themes
215
216 # duplicate locale
217 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no
218
219 %find_lang %{name}
220
221 %clean
222 rm -rf $RPM_BUILD_ROOT
223
224 %pre
225 test -h %{_pixmapsdir}/icewm || rm -rf %{_pixmapsdir}/icewm
226
227 %files -f %{name}.lang
228 %defattr(644,root,root,755)
229 %doc AUTHORS BUGS CHANGES ChangeLog NEWS PLATFORMS README.md THANKS TODO doc/*.html
230 %attr(755,root,root) %{_bindir}/icehelp
231 %attr(755,root,root) %{_bindir}/icesh
232 %if %{with guievents}
233 %attr(755,root,root) %{_bindir}/icesound
234 %endif
235 %attr(755,root,root) %{_bindir}/icewm
236 %attr(755,root,root) %{_bindir}/icewm-menu-fdo
237 %attr(755,root,root) %{_bindir}/icewm-session
238 %attr(755,root,root) %{_bindir}/icewm-set-gnomewm
239 %attr(755,root,root) %{_bindir}/icewmbg
240 %attr(755,root,root) %{_bindir}/icewmhint
241 %attr(755,root,root) %{_bindir}/icewm-menu-xrandr
242 %{_mandir}/man1/icehelp.1*
243 %{_mandir}/man1/icesh.1*
244 %{_mandir}/man1/icesound.1*
245 %{_mandir}/man1/icewm-menu-fdo.1*
246 %{_mandir}/man1/icewm-menu-xrandr.1*
247 %{_mandir}/man1/icewm-session.1*
248 %{_mandir}/man1/icewm-set-gnomewm.1*
249 %{_mandir}/man1/icewmbg.1*
250 %{_mandir}/man1/icewmhint.1*
251 %{_mandir}/man5/icewm-env.5*
252 %{_mandir}/man5/icewm-focus_mode.5*
253 %{_mandir}/man5/icewm-keys.5*
254 %{_mandir}/man5/icewm-menu.5*
255 %{_mandir}/man5/icewm-preferences.5*
256 %{_mandir}/man5/icewm-prefoverride.5*
257 %{_mandir}/man5/icewm-programs.5*
258 %{_mandir}/man5/icewm-shutdown.5*
259 %{_mandir}/man5/icewm-startup.5*
260 %{_mandir}/man5/icewm-theme.5*
261 %{_mandir}/man5/icewm-toolbar.5*
262 %{_mandir}/man5/icewm-winoptions.5*
263 %dir %{_sysconfdir}/X11/%{name}
264 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/keys
265 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/menu
266 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/toolbar
267 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/X11/%{name}/winoptions
268 %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/restart
269 %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) %{_sysconfdir}/X11/%{name}/startup
270 %{_pixmapsdir}/icewm
271 %dir %{_datadir}/icewm
272 %{_datadir}/icewm/IceWM.jpg
273 %{_datadir}/icewm/icons
274 %{_datadir}/icewm/keys
275 %{_datadir}/icewm/menu
276 %{_datadir}/icewm/ledclock
277 %{_datadir}/icewm/mailbox
278 %{_datadir}/icewm/preferences
279 %{_datadir}/icewm/programs
280 %attr(755,root,root) %{_datadir}/icewm/startup
281 %{_datadir}/icewm/toolbar
282 %{_datadir}/icewm/taskbar
283 %{_datadir}/icewm/winoptions
284 %dir %{_datadir}/icewm/themes
285 %{_datadir}/icewm/themes/Infadel2
286 %{_datadir}/icewm/themes/default
287 %{_datadir}/icewm/themes/icedesert
288 %{_datadir}/xsessions/icewm.desktop
289 %{_datadir}/xsessions/icewm-session.desktop
290 %{?with_gnome2:%{_wmpropsdir}/IceWM.desktop}
291 %{_mandir}/man1/icewm.1*
292
293 %files themes-base
294 %defattr(644,root,root,755)
295 %{_datadir}/icewm/themes/CrystalBlue
296 %{_datadir}/icewm/themes/Helix
297 %{_datadir}/icewm/themes/NanoBlue
298 %{_datadir}/icewm/themes/metal2
299 %{_datadir}/icewm/themes/motif
300 %{_datadir}/icewm/themes/win95
301 # old themes, no longer installed in 1.4.x
302 %{_datadir}/icewm/themes/gtk2
303 %{_datadir}/icewm/themes/nice
304 %{_datadir}/icewm/themes/nice2
305 %{_datadir}/icewm/themes/warp3
306 %{_datadir}/icewm/themes/warp4
307 %{_datadir}/icewm/themes/yellowmotif
This page took 0.060122 seconds and 4 git commands to generate.