3 %bcond_with gnome2 # build with support for GNOME2 wm-properties
6 Summary: NeXT-alike window manager
7 Summary(es.UTF-8): Administrador de Ventanas parecido con el NeXT
8 Summary(fr.UTF-8): Gestionnaire de fenêtres avec le look NeXT
9 Summary(pl.UTF-8): Zarządca okien w stylu NeXT
10 Summary(pt_BR.UTF-8): Gerente de Janelas parecido com o NeXT
11 Summary(ru.UTF-8): WindowMaker - оконный менеджер для X11
12 Summary(uk.UTF-8): WindowMaker - віконний менеджер для X11
17 Group: X11/Window Managers
18 Source0: ftp://windowmaker.info/pub/source/release/%{name}-%{version}.tar.gz
19 # Source0-md5: 678cb4a9b22a557cfb524dc3cb457c08
20 Source1: %{name}-data.tar.gz
21 # Source1-md5: 6ea0c37314ea9e9ab27e8bdf45a31a82
22 Source2: ftp://windowmaker.info/pub/source/release/%{name}-extra-%{extraver}.tar.gz
23 # Source2-md5: 07c7700daaaf232bc490f5abaabef085
24 Source3: %{name}.desktop
25 Source6: %{name}-xsession.desktop
26 Patch0: %{name}-cvs.patch
27 Patch1: %{name}-pl.po-update.patch
28 Patch2: %{name}-CFLAGS.patch
29 Patch3: %{name}-vfmg.patch
30 Patch4: %{name}-shared.patch
31 Patch5: %{name}-IconPosition.patch
32 Patch6: %{name}-singleclick.patch
33 Patch7: %{name}-plmenu.patch
34 Patch8: %{name}-dockit.patch
35 Patch9: http://www.heily.com/mark/code_samples/appicon_captions_maxprotect.diff
36 Patch10: %{name}-localenames.patch
37 Patch11: %{name}-0.91.0-translucency-1.patch
38 Patch12: %{name}-gnustep.patch
39 Patch13: %{name}-wine.patch
40 Patch14: %{name}-libpng14.patch
41 Patch15: %{name}-libpng15.patch
42 URL: http://www.windowmaker.info/
43 BuildRequires: autoconf
44 BuildRequires: automake
45 BuildRequires: gettext-devel
46 BuildRequires: giflib-devel
47 BuildRequires: libjpeg-devel >= 6b
48 BuildRequires: libpng-devel >= 2:1.4.0
49 BuildRequires: libtiff-devel
50 BuildRequires: libtool >= 1:1.4.2-9
51 BuildRequires: perl-base
52 BuildRequires: pkgconfig
53 BuildRequires: sed >= 4.0
54 BuildRequires: xorg-lib-libXext-devel
55 BuildRequires: xorg-lib-libXft-devel
56 BuildRequires: xorg-lib-libXinerama-devel
57 BuildRequires: xorg-lib-libXpm-devel
58 Requires: %{name}-libs = %{version}-%{release}
60 Requires: cpp >= 6:4.0.0
61 Requires: gnustep-dirs
63 Requires: vfmg >= 0.9.95
64 Provides: WallpaperChanger
65 Conflicts: filesystem < 3.0-20
66 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68 %define _sysconfdir /etc/X11
69 %define _wmpropsdir /usr/share/gnome/wm-properties
72 Window Maker is an X11 window manager which emulates the look and feel
73 of the NeXTSTEP (TM) graphical user interface. It is relatively fast,
74 feature rich and easy to configure and use. Window Maker is part of
75 the official GNU project, which means that Window Maker can
76 interoperate with other GNU projects, such as GNOME.
78 Window Maker allows users to switch themes 'on the fly,' to place
79 favorite applications on either an application dock, similar to
80 AfterStep's Wharf or on a workspace dock, a 'clip' which extends the
81 application dock's usefulness.
83 You should install the WindowMaker package if you use Window Maker as
84 your window manager or if you'd like to try using it. If you do
85 install the WindowMaker package, you may also want to install the
86 AfterStep-APPS package, which includes applets that will work with
87 both AfterStep and Window Maker window managers.
89 %description -l es.UTF-8
90 WindowMaker es un administrador de ventanas proyectado para emular la
91 apariencia de parte de la interface de usuario del NEXTSTEP(tm). Se
92 hizo para ser rápido, relativamente pequeño, rico en características y
93 de configuración fácil, con una apariencia sencilla y elegante
94 prestada del NEXTSTEP(tm).
96 %description -l fr.UTF-8
97 Window Maker est un gestionnaire de fenêtres pour X11 qui cherche à
98 reproduire l'allure et l'ergonomie ("look & feel") de l'interface
99 graphique NeXTSTEP(tm) (aka OpenStep). Il est relativement rapide,
100 évolué, et facile à configurer et à utiliser. Window Maker fait
101 officiellement partie du projet GNU, ce qui signifie que Window Maker
102 peut coopérer avec d'autres projets GNU, comme par exemple GNOME.
104 Window Maker permet de changer de thèmes facilement, de placer ses
105 applications favorites soit sur un "dock" similaire au programme Wharf
106 de AfterStep, soit sur un dock intégré à l'espace de travail, appelé
107 "clip" (trombone), et qui permet d'étendre les possibilités du dock
110 Vous devriez installer ce package si votre gestionnaire de fenêtres
111 est Window Maker, ou si vous voulez l'essayer. Si vous installez le
112 package Window Maker, vous voudrez peut-être installer aussi le
113 package AfterStep-APPS, qui contient des "applets" (petites
114 applications) qui fonctionnent à la fois dans les gestionnaires de
115 fenêtres AfterStep et Window Maker.
117 %description -l pl.UTF-8
118 WindowMaker jest zarządcą okien przypominającym wyglądem i wygodą
119 obsługi interfejs systemu NeXTSTEP(tm). Jest szybki, stosunkowo mały,
120 o dużych możliwościach i łatwy w konfiguracji. Konfiguruje się go
121 myszką, za pomocą programu WPrefs wchodzącego w skład tego pakietu.
123 %description -l pt_BR.UTF-8
124 WindowMaker é um gerente de janelas projetado para emular a aparência
125 de parte da interface de usuário do NEXTSTEP(tm). Feito para ser
126 rápido, relativamente pequeno, rico em características e de
127 configuração fácil, com uma aparência simples e elegante emprestada do
130 %description -l ru.UTF-8
131 WindowMaker - это оконный менеджер, эмулирующий часть экранной среды
132 NEXTSTEP(tm). Подразумевается что он относительно невелик, быстр,
133 богат возможностями, легко настраивается и имеет простую и элегантную
134 внешность, позаимствованную у NEXTSTEP(tm).
136 %description -l uk.UTF-8
137 WindowMaker - це віконний менеджер, що емулює інтерфейс екранного
138 середовища NEXTSTEP(tm). Його вважають відносно невеликим, швидким,
139 багатим можливостями, легким для налагодження; він має просту та
140 елегантну зовнішність, запозичену в NEXTSTEP(tm).
143 Summary: WindowMaker shared libraries
144 Summary(pl.UTF-8): Biblioteki współdzielone WindowMakera
146 Obsoletes: libwraster2
149 This package contains shared libraries for run WindowMaker.
151 %description libs -l pl.UTF-8
152 Ten pakiet zawiera biblioteki współdzielone niezbędne do pracy
153 zarządcy okien WindowMaker.
156 Summary: WindowMaker libraries - development part
157 Summary(es.UTF-8): Bibliotecas y archivos de inclusión para WindowMaker
158 Summary(fr.UTF-8): Librairies de WindowMaker
159 Summary(pl.UTF-8): Biblioteki WindowMakera - część dla programistów
160 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para o WindowMaker
161 Summary(ru.UTF-8): Библиотеки поддержки и .h файлы для WindowMaker
162 Summary(uk.UTF-8): Бібліотеки підтримки та .h файли для WindowMaker
163 Group: Development/Libraries
164 Requires: %{name}-libs = %{version}-%{release}
165 Requires: xorg-lib-libXext-devel
166 Requires: xorg-lib-libXft-devel
167 Requires: xorg-lib-libXpm-devel
168 Obsoletes: libwraster2-devel
171 This package contains libraries for building WindowMaker-enhanced
174 %description devel -l es.UTF-8
175 Bibliotecas, archivos de inclusión, e etc. para desarrollar
176 aplicaciones WindowMaker
178 %description devel -l fr.UTF-8
179 Ce paquet contient des librairies pour faire des applications mise en
180 valeur par WindowMaker.
182 %description devel -l pl.UTF-8
183 Ten pakiet zawiera pliki nagłówkowe i biblioteki niezbędne do
184 tworzenia aplikacji wykorzystujących możliwości zarządcy okien
187 %description devel -l pt_BR.UTF-8
188 Arquivos de inclusão e bibliotecas para o desenvolvimento de programas
189 baseados no WindowMaker
191 %description devel -l ru.UTF-8
192 Этот пакет содержит библиотеки и .h файлы, предназначенные для сборки
193 приложений, использующих возможности WindowMaker.
195 %description devel -l uk.UTF-8
196 Цей пакет містить бібліотеки та .h файли, призначені для прикладних
197 програм, що використовують можливості WindowMaker.
200 Summary: WindowMaker static libraries
201 Summary(pl.UTF-8): Biblioteki statyczne WindowMakera
202 Summary(pt_BR.UTF-8): Componentes estáticos de desenvolvimento para o WindowMaker
203 Summary(ru.UTF-8): Статические библиотеки поддержки для WindowMaker
204 Summary(uk.UTF-8): Статичні бібліотеки підтримки для WindowMaker
205 Group: Development/Libraries
206 Requires: %{name}-devel = %{version}-%{release}
209 This package contains static libraries for building
210 WindowMaker-enhanced applications.
212 %description static -l pl.UTF-8
213 Ten pakiet zawiera statyczne biblioteki do tworzenia aplikacji
214 wykorzystujących możliwości zarządcy okien WindowMaker.
216 %description static -l pt_BR.UTF-8
217 Instale este pacote se você deseja desenvolver para o WindowMaker,
218 utilizando componentes estáticos (raramente necessário).
220 %description static -l ru.UTF-8
221 Этот пакет содержит статические библиотеки предназначенные для сборки
222 приложений, использующих возможности WindowMaker.
224 %description static -l uk.UTF-8
225 Цей пакет містить статичні бібліотеки, призначені для прикладних
226 програм, що використовують можливості WindowMaker.
247 for f in WindowMaker/*menu*; do
248 %{__sed} -i s,/GNUstep/Apps,/GNUstep/Applications, $f
249 %{__sed} -i s,%{_libdir}/GNUstep/,%{_libdir}/GNUstep/, $f
250 %{__sed} -i s,%{_prefix}/local/GNUstep/,%{_libdir}/GNUstep/, $f
253 %{__mv} po/{no,nb}.po
257 # hack, should be obsolete - needs check
258 #export ac_cv_c_inline_asm=no
265 cd %{name}-extra-%{extraver}
272 %{__perl} -pi -e 's/defaultAppIcon.#extension#;SharedAppIcon = Yes;/defaultAppIcon.#extension#;/' \
273 WindowMaker/Defaults/WMWindowAttributes.in
276 CPP_PATH="/lib/cpp" \
277 LINGUAS="bg cs da de el es et fi fr gl hr hu it ja ko ms nb nl pl pt ro ru \
278 sk sv tr zh_CN zh_TW" \
285 --with-appspath=%{_libdir}/GNUstep/Applications \
286 --with-nlsdir=%{_datadir}/locale \
287 --with-gnustepdir=%{_libdir}/GNUstep \
292 touch WindowMaker/Defaults/W*.in
295 CFLAGS="%{rpmcflags}" \
296 LDFLAGS="%{rpmldflags}"
299 cd %{name}-extra-%{extraver}
301 --with-nlsdir=%{_datadir}/locale \
302 --with-iconsdir=%{_pixmapsdir}
305 rm -rf $RPM_BUILD_ROOT
306 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir},%{_wmpropsdir}} \
307 $RPM_BUILD_ROOT/etc/sysconfig/wmstyle \
308 $RPM_BUILD_ROOT%{_datadir}/WindowMaker/{Sounds,SoundSets}
311 DESTDIR=$RPM_BUILD_ROOT
313 install util/bughint $RPM_BUILD_ROOT%{_bindir}
315 install contrib/dockit $RPM_BUILD_ROOT%{_bindir}
316 install contrib/dockit.1 $RPM_BUILD_ROOT%{_mandir}/man1
318 install WindowMaker-data/pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
319 #%{?with_gnome2:install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}}
320 %{?with_gnome2:%{__sed} s,@LIBDIR@,%{_libdir}, %{SOURCE3} > $RPM_BUILD_ROOT%{_wmpropsdir}/WindowMaker.desktop}
322 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
323 #%{__sed} s,@LIBDIR@,%{_libdir}, %{SOURCE6} > $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
325 %{__make} -C %{name}-extra-%{extraver} install \
326 DESTDIR=$RPM_BUILD_ROOT
328 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
330 %find_lang %{name} --all-name
333 rm -rf $RPM_BUILD_ROOT
335 %post libs -p /sbin/ldconfig
336 %postun libs -p /sbin/ldconfig
338 %files -f %{name}.lang
339 %defattr(644,root,root,755)
340 %doc AUTHORS BUGFORM BUGS ChangeLog FAQ NEWS README
342 %dir %{_sysconfdir}/WindowMaker
343 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/WindowMaker/*
346 %lang(sk) %{_mandir}/sk/man1/*.1*
349 %{?with_gnome2:%{_wmpropsdir}/WindowMaker.desktop}
351 %attr(755,root,root) %{_bindir}/convertfonts
352 %attr(755,root,root) %{_bindir}/bughint
353 %attr(755,root,root) %{_bindir}/geticonset
354 %attr(755,root,root) %{_bindir}/getstyle
355 %attr(755,root,root) %{_bindir}/set*
356 %attr(755,root,root) %{_bindir}/wd*
357 %attr(755,root,root) %{_bindir}/wkdemenu.pl
358 %attr(755,root,root) %{_bindir}/wm*
359 %attr(755,root,root) %{_bindir}/wx*
360 %attr(755,root,root) %{_bindir}/dockit
362 %{_datadir}/WindowMaker
363 %{_datadir}/xsessions/WindowMaker.desktop
365 # the first one is shared with gnustep-make...
366 %dir %{_libdir}/GNUstep/Applications
367 %dir %{_libdir}/GNUstep/Applications/WPrefs.app
369 %attr(755,root,root) %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs
371 %{_libdir}/GNUstep/Applications/WPrefs.app/tiff
372 %{_libdir}/GNUstep/Applications/WPrefs.app/xpm
373 %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs.tiff
374 %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs.xpm
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/lib*.so.*.*
379 %attr(755,root,root) %ghost %{_libdir}/libExtraWINGs.so.0
380 %attr(755,root,root) %ghost %{_libdir}/libWINGs.so.0
381 %attr(755,root,root) %ghost %{_libdir}/libWMaker.so.0
382 %attr(755,root,root) %ghost %{_libdir}/libWUtil.so.0
383 %attr(755,root,root) %ghost %{_libdir}/libwraster.so.3
387 %defattr(644,root,root,755)
388 %attr(755,root,root) %{_bindir}/get-wings-flags
389 %attr(755,root,root) %{_bindir}/get-wraster-flags
390 %attr(755,root,root) %{_bindir}/get-wutil-flags
391 %attr(755,root,root) %{_libdir}/lib*.so
393 %{_pkgconfigdir}/*.pc
396 %defattr(644,root,root,755)