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 URL: http://www.windowmaker.info/
42 BuildRequires: autoconf
43 BuildRequires: automake
44 BuildRequires: gettext-devel
45 BuildRequires: giflib-devel
46 BuildRequires: libjpeg-devel >= 6b
47 BuildRequires: libpng-devel >= 2:1.4.0
48 BuildRequires: libtiff-devel
49 BuildRequires: libtool >= 1:1.4.2-9
50 BuildRequires: perl-base
51 BuildRequires: pkgconfig
52 BuildRequires: sed >= 4.0
53 BuildRequires: xorg-lib-libXext-devel
54 BuildRequires: xorg-lib-libXft-devel
55 BuildRequires: xorg-lib-libXinerama-devel
56 BuildRequires: xorg-lib-libXpm-devel
57 Requires: %{name}-libs = %{version}-%{release}
59 Requires: cpp >= 6:4.0.0
60 Requires: gnustep-dirs
62 Requires: vfmg >= 0.9.95
63 Provides: WallpaperChanger
64 Conflicts: filesystem < 3.0-20
65 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 %define _sysconfdir /etc/X11
68 %define _wmpropsdir /usr/share/gnome/wm-properties
71 Window Maker is an X11 window manager which emulates the look and feel
72 of the NeXTSTEP (TM) graphical user interface. It is relatively fast,
73 feature rich and easy to configure and use. Window Maker is part of
74 the official GNU project, which means that Window Maker can
75 interoperate with other GNU projects, such as GNOME.
77 Window Maker allows users to switch themes 'on the fly,' to place
78 favorite applications on either an application dock, similar to
79 AfterStep's Wharf or on a workspace dock, a 'clip' which extends the
80 application dock's usefulness.
82 You should install the WindowMaker package if you use Window Maker as
83 your window manager or if you'd like to try using it. If you do
84 install the WindowMaker package, you may also want to install the
85 AfterStep-APPS package, which includes applets that will work with
86 both AfterStep and Window Maker window managers.
88 %description -l es.UTF-8
89 WindowMaker es un administrador de ventanas proyectado para emular la
90 apariencia de parte de la interface de usuario del NEXTSTEP(tm). Se
91 hizo para ser rápido, relativamente pequeño, rico en características y
92 de configuración fácil, con una apariencia sencilla y elegante
93 prestada del NEXTSTEP(tm).
95 %description -l fr.UTF-8
96 Window Maker est un gestionnaire de fenêtres pour X11 qui cherche à
97 reproduire l'allure et l'ergonomie ("look & feel") de l'interface
98 graphique NeXTSTEP(tm) (aka OpenStep). Il est relativement rapide,
99 évolué, et facile à configurer et à utiliser. Window Maker fait
100 officiellement partie du projet GNU, ce qui signifie que Window Maker
101 peut coopérer avec d'autres projets GNU, comme par exemple GNOME.
103 Window Maker permet de changer de thèmes facilement, de placer ses
104 applications favorites soit sur un "dock" similaire au programme Wharf
105 de AfterStep, soit sur un dock intégré à l'espace de travail, appelé
106 "clip" (trombone), et qui permet d'étendre les possibilités du dock
109 Vous devriez installer ce package si votre gestionnaire de fenêtres
110 est Window Maker, ou si vous voulez l'essayer. Si vous installez le
111 package Window Maker, vous voudrez peut-être installer aussi le
112 package AfterStep-APPS, qui contient des "applets" (petites
113 applications) qui fonctionnent à la fois dans les gestionnaires de
114 fenêtres AfterStep et Window Maker.
116 %description -l pl.UTF-8
117 WindowMaker jest zarządcą okien przypominającym wyglądem i wygodą
118 obsługi interfejs systemu NeXTSTEP(tm). Jest szybki, stosunkowo mały,
119 o dużych możliwościach i łatwy w konfiguracji. Konfiguruje się go
120 myszką, za pomocą programu WPrefs wchodzącego w skład tego pakietu.
122 %description -l pt_BR.UTF-8
123 WindowMaker é um gerente de janelas projetado para emular a aparência
124 de parte da interface de usuário do NEXTSTEP(tm). Feito para ser
125 rápido, relativamente pequeno, rico em características e de
126 configuração fácil, com uma aparência simples e elegante emprestada do
129 %description -l ru.UTF-8
130 WindowMaker - это оконный менеджер, эмулирующий часть экранной среды
131 NEXTSTEP(tm). Подразумевается что он относительно невелик, быстр,
132 богат возможностями, легко настраивается и имеет простую и элегантную
133 внешность, позаимствованную у NEXTSTEP(tm).
135 %description -l uk.UTF-8
136 WindowMaker - це віконний менеджер, що емулює інтерфейс екранного
137 середовища NEXTSTEP(tm). Його вважають відносно невеликим, швидким,
138 багатим можливостями, легким для налагодження; він має просту та
139 елегантну зовнішність, запозичену в NEXTSTEP(tm).
142 Summary: WindowMaker shared libraries
143 Summary(pl.UTF-8): Biblioteki współdzielone WindowMakera
145 Obsoletes: libwraster2
148 This package contains shared libraries for run WindowMaker.
150 %description libs -l pl.UTF-8
151 Ten pakiet zawiera biblioteki współdzielone niezbędne do pracy
152 zarządcy okien WindowMaker.
155 Summary: WindowMaker libraries - development part
156 Summary(es.UTF-8): Bibliotecas y archivos de inclusión para WindowMaker
157 Summary(fr.UTF-8): Librairies de WindowMaker
158 Summary(pl.UTF-8): Biblioteki WindowMakera - część dla programistów
159 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para o WindowMaker
160 Summary(ru.UTF-8): Библиотеки поддержки и .h файлы для WindowMaker
161 Summary(uk.UTF-8): Бібліотеки підтримки та .h файли для WindowMaker
162 Group: Development/Libraries
163 Requires: %{name}-libs = %{version}-%{release}
164 Requires: xorg-lib-libXext-devel
165 Requires: xorg-lib-libXft-devel
166 Requires: xorg-lib-libXpm-devel
167 Obsoletes: libwraster2-devel
170 This package contains libraries for building WindowMaker-enhanced
173 %description devel -l es.UTF-8
174 Bibliotecas, archivos de inclusión, e etc. para desarrollar
175 aplicaciones WindowMaker
177 %description devel -l fr.UTF-8
178 Ce paquet contient des librairies pour faire des applications mise en
179 valeur par WindowMaker.
181 %description devel -l pl.UTF-8
182 Ten pakiet zawiera pliki nagłówkowe i biblioteki niezbędne do
183 tworzenia aplikacji wykorzystujących możliwości zarządcy okien
186 %description devel -l pt_BR.UTF-8
187 Arquivos de inclusão e bibliotecas para o desenvolvimento de programas
188 baseados no WindowMaker
190 %description devel -l ru.UTF-8
191 Этот пакет содержит библиотеки и .h файлы, предназначенные для сборки
192 приложений, использующих возможности WindowMaker.
194 %description devel -l uk.UTF-8
195 Цей пакет містить бібліотеки та .h файли, призначені для прикладних
196 програм, що використовують можливості WindowMaker.
199 Summary: WindowMaker static libraries
200 Summary(pl.UTF-8): Biblioteki statyczne WindowMakera
201 Summary(pt_BR.UTF-8): Componentes estáticos de desenvolvimento para o WindowMaker
202 Summary(ru.UTF-8): Статические библиотеки поддержки для WindowMaker
203 Summary(uk.UTF-8): Статичні бібліотеки підтримки для WindowMaker
204 Group: Development/Libraries
205 Requires: %{name}-devel = %{version}-%{release}
208 This package contains static libraries for building
209 WindowMaker-enhanced applications.
211 %description static -l pl.UTF-8
212 Ten pakiet zawiera statyczne biblioteki do tworzenia aplikacji
213 wykorzystujących możliwości zarządcy okien WindowMaker.
215 %description static -l pt_BR.UTF-8
216 Instale este pacote se você deseja desenvolver para o WindowMaker,
217 utilizando componentes estáticos (raramente necessário).
219 %description static -l ru.UTF-8
220 Этот пакет содержит статические библиотеки предназначенные для сборки
221 приложений, использующих возможности WindowMaker.
223 %description static -l uk.UTF-8
224 Цей пакет містить статичні бібліотеки, призначені для прикладних
225 програм, що використовують можливості WindowMaker.
245 for f in WindowMaker/*menu*; do
246 %{__sed} -i s,/GNUstep/Apps,/GNUstep/Applications, $f
247 %{__sed} -i s,%{_libdir}/GNUstep/,%{_libdir}/GNUstep/, $f
248 %{__sed} -i s,%{_prefix}/local/GNUstep/,%{_libdir}/GNUstep/, $f
251 %{__mv} po/{no,nb}.po
255 # hack, should be obsolete - needs check
256 #export ac_cv_c_inline_asm=no
263 cd %{name}-extra-%{extraver}
270 %{__perl} -pi -e 's/defaultAppIcon.#extension#;SharedAppIcon = Yes;/defaultAppIcon.#extension#;/' \
271 WindowMaker/Defaults/WMWindowAttributes.in
274 CPP_PATH="/lib/cpp" \
275 LINGUAS="bg cs da de el es et fi fr gl hr hu it ja ko ms nb nl pl pt ro ru \
276 sk sv tr zh_CN zh_TW" \
283 --with-appspath=%{_libdir}/GNUstep/Applications \
284 --with-nlsdir=%{_datadir}/locale \
285 --with-gnustepdir=%{_libdir}/GNUstep \
290 touch WindowMaker/Defaults/W*.in
293 CFLAGS="%{rpmcflags}" \
294 LDFLAGS="%{rpmldflags}"
297 cd %{name}-extra-%{extraver}
299 --with-nlsdir=%{_datadir}/locale \
300 --with-iconsdir=%{_pixmapsdir}
303 rm -rf $RPM_BUILD_ROOT
304 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir},%{_wmpropsdir}} \
305 $RPM_BUILD_ROOT/etc/sysconfig/wmstyle \
306 $RPM_BUILD_ROOT%{_datadir}/WindowMaker/{Sounds,SoundSets}
309 DESTDIR=$RPM_BUILD_ROOT
311 install util/bughint $RPM_BUILD_ROOT%{_bindir}
313 install contrib/dockit $RPM_BUILD_ROOT%{_bindir}
314 install contrib/dockit.1 $RPM_BUILD_ROOT%{_mandir}/man1
316 install WindowMaker-data/pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
317 #%{?with_gnome2:install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}}
318 %{?with_gnome2:%{__sed} s,@LIBDIR@,%{_libdir}, %{SOURCE3} > $RPM_BUILD_ROOT%{_wmpropsdir}/WindowMaker.desktop}
320 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
321 #%{__sed} s,@LIBDIR@,%{_libdir}, %{SOURCE6} > $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
323 %{__make} -C %{name}-extra-%{extraver} install \
324 DESTDIR=$RPM_BUILD_ROOT
326 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
328 %find_lang %{name} --all-name
331 rm -rf $RPM_BUILD_ROOT
333 %post libs -p /sbin/ldconfig
334 %postun libs -p /sbin/ldconfig
336 %files -f %{name}.lang
337 %defattr(644,root,root,755)
338 %doc AUTHORS BUGFORM BUGS ChangeLog FAQ NEWS README
340 %dir %{_sysconfdir}/WindowMaker
341 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/WindowMaker/*
344 %lang(sk) %{_mandir}/sk/man1/*.1*
347 %{?with_gnome2:%{_wmpropsdir}/WindowMaker.desktop}
349 %attr(755,root,root) %{_bindir}/convertfonts
350 %attr(755,root,root) %{_bindir}/bughint
351 %attr(755,root,root) %{_bindir}/geticonset
352 %attr(755,root,root) %{_bindir}/getstyle
353 %attr(755,root,root) %{_bindir}/set*
354 %attr(755,root,root) %{_bindir}/wd*
355 %attr(755,root,root) %{_bindir}/wkdemenu.pl
356 %attr(755,root,root) %{_bindir}/wm*
357 %attr(755,root,root) %{_bindir}/wx*
358 %attr(755,root,root) %{_bindir}/dockit
360 %{_datadir}/WindowMaker
361 %{_datadir}/xsessions/WindowMaker.desktop
363 # the first one is shared with gnustep-make...
364 %dir %{_libdir}/GNUstep/Applications
365 %dir %{_libdir}/GNUstep/Applications/WPrefs.app
367 %attr(755,root,root) %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs
369 %{_libdir}/GNUstep/Applications/WPrefs.app/tiff
370 %{_libdir}/GNUstep/Applications/WPrefs.app/xpm
371 %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs.tiff
372 %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs.xpm
375 %defattr(644,root,root,755)
376 %attr(755,root,root) %{_libdir}/lib*.so.*.*
377 %attr(755,root,root) %ghost %{_libdir}/libExtraWINGs.so.0
378 %attr(755,root,root) %ghost %{_libdir}/libWINGs.so.0
379 %attr(755,root,root) %ghost %{_libdir}/libWMaker.so.0
380 %attr(755,root,root) %ghost %{_libdir}/libWUtil.so.0
381 %attr(755,root,root) %ghost %{_libdir}/libwraster.so.3
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_bindir}/get-wings-flags
387 %attr(755,root,root) %{_bindir}/get-wraster-flags
388 %attr(755,root,root) %{_bindir}/get-wutil-flags
389 %attr(755,root,root) %{_libdir}/lib*.so
391 %{_pkgconfigdir}/*.pc
394 %defattr(644,root,root,755)