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