]> git.pld-linux.org Git - packages/WindowMaker.git/blob - WindowMaker.spec
- xft bcond, but due to bug in code --disable-xft doesn't work. It seems
[packages/WindowMaker.git] / WindowMaker.spec
1 %define         extraver        0.1
2 %define         _snap           20040718
3
4 %bcond_without  xft     # disable xft support, doesn't work, bug in sources
5
6 Summary:        NeXT-alike window manager
7 Summary(es):    Administrador de Ventanas parecido con el NeXT
8 Summary(fr):    Gestionnaire de fenêtres avec le look NeXT
9 Summary(pl):    Zarz±dca okien w stylu NeXT
10 Summary(pt_BR): Gerente de Janelas parecido com o NeXT
11 Summary(ru):    WindowMaker - ÏËÏÎÎÙÊ ÍÅÎÅÄÖÅÒ ÄÌÑ X11
12 Summary(uk):    WindowMaker - ×¦ËÏÎÎÉÊ ÍÅÎÅÄÖÅÒ ÄÌÑ X11
13 Name:           WindowMaker
14 Version:        0.81.0
15 Release:        0.%{_snap}.1
16 License:        GPL
17 Group:          X11/Window Managers
18 Source0:        ftp://ftp.windowmaker.org/pub/source/snapshots/%{name}-CVS-%{_snap}.tar.gz
19 # Source0-md5:  dba7dc37031ecce4c6b71c627c784ece
20 Source1:        ftp://windowmaker.org/pub/%{name}-data.tar.gz
21 # Source1-md5:  6ea0c37314ea9e9ab27e8bdf45a31a82
22 Source2:        ftp://ftp.windowmaker.org/pub/source/release/%{name}-extra-%{extraver}.tar.gz
23 # Source2-md5:  07c7700daaaf232bc490f5abaabef085
24 Source3:        %{name}.desktop
25 Source6:        %{name}-xsession.desktop
26 Patch0:         %{name}-CFLAGS.patch
27 Patch1:         %{name}-vfmg.patch
28 Patch2:         %{name}-pixmaps.patch
29 Patch3:         %{name}-shared.patch
30 Patch4:         %{name}-areas.patch
31 Patch5:         %{name}-IconPosition.patch
32 Patch6:         %{name}-singleclick.patch
33 Patch7:         %{name}-plmenu.patch
34 Patch8:         %{name}-dockit.patch
35 Patch11:        %{name}-pl.po-update.patch
36 Patch12:        %{name}-wmchlocale-fixes.patch
37 Patch13:        http://www.heily.com/mark/code_samples/appicon_captions_maxprotect.diff
38 Patch14:        %{name}-localenames.patch
39 Patch15:        %{name}-enablexft.patch
40 URL:            http://www.windowmaker.org/
41 BuildRequires:  XFree86-devel
42 BuildRequires:  autoconf
43 BuildRequires:  automake
44 BuildRequires:  gettext-devel
45 BuildRequires:  libpng >= 1.0.8
46 BuildRequires:  libjpeg-devel >= 6b
47 BuildRequires:  libtiff-devel
48 BuildRequires:  libtool >= 1:1.4.2-9
49 BuildRequires:  libungif-devel
50 BuildRequires:  xft-devel
51 Requires:       %{name}-libs = %{version}-%{release}
52 Requires:       cpp
53 Requires:       tk
54 Requires:       vfmg
55 Requires:       xinitrc-ng
56 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58 %define         _sysconfdir     /etc/X11
59 %define         _wmpropsdir     /usr/share/wm-properties
60
61 %description
62 Window Maker is an X11 window manager which emulates the look and feel
63 of the NeXTSTEP (TM) graphical user interface. It is relatively fast,
64 feature rich and easy to configure and use. Window Maker is part of
65 the official GNU project, which means that Window Maker can
66 interoperate with other GNU projects, such as GNOME.
67
68 Window Maker allows users to switch themes 'on the fly,' to place
69 favorite applications on either an application dock, similar to
70 AfterStep's Wharf or on a workspace dock, a 'clip' which extends the
71 application dock's usefulness.
72
73 You should install the WindowMaker package if you use Window Maker as
74 your window manager or if you'd like to try using it. If you do
75 install the WindowMaker package, you may also want to install the
76 AfterStep-APPS package, which includes applets that will work with
77 both AfterStep and Window Maker window managers.
78
79 %description -l es
80 WindowMaker es un administrador de ventanas proyectado para emular la
81 apariencia de parte de la interface de usuario del NEXTSTEP(tm). Se
82 hizo para ser rápido, relativamente pequeño, rico en características y
83 de configuración fácil, con una apariencia sencilla y elegante
84 prestada del NEXTSTEP(tm).
85
86 %description -l fr
87 Window Maker est un gestionnaire de fenêtres pour X11 qui cherche à
88 reproduire l'allure et l'ergonomie ("look & feel") de l'interface
89 graphique NeXTSTEP(tm) (aka OpenStep). Il est relativement rapide,
90 évolué, et facile à configurer et à utiliser. Window Maker fait
91 officiellement partie du projet GNU, ce qui signifie que Window Maker
92 peut coopérer avec d'autres projets GNU, comme par exemple GNOME.
93
94 Window Maker permet de changer de thèmes facilement, de placer ses
95 applications favorites soit sur un "dock" similaire au programme Wharf
96 de AfterStep, soit sur un dock intégré à l'espace de travail, appelé
97 "clip" (trombone), et qui permet d'étendre les possibilités du dock
98 principal.
99
100 Vous devriez installer ce package si votre gestionnaire de fenêtres
101 est Window Maker, ou si vous voulez l'essayer. Si vous installez le
102 package Window Maker, vous voudrez peut-être installer aussi le
103 package AfterStep-APPS, qui contient des "applets" (petites
104 applications) qui fonctionnent à la fois dans les gestionnaires de
105 fenêtres AfterStep et Window Maker.
106
107 %description -l pl
108 WindowMaker jest zarz±dc± okien przypominaj±cym wygl±dem i wygod±
109 obs³ugi interfejs systemu NeXTSTEP(tm). Jest szybki, stosunkowo ma³y,
110 o du¿ych mo¿liwo¶ciach i ³atwy w konfiguracji. Konfiguruje siê go
111 myszk±, za pomoc± programu WPrefs wchodz±cego w sk³ad tego pakietu.
112
113 %description -l pt_BR
114 WindowMaker é um gerente de janelas projetado para emular a aparência
115 de parte da interface de usuário do NEXTSTEP(tm). Feito para ser
116 rápido, relativamente pequeno, rico em características e de
117 configuração fácil, com uma aparência simples e elegante emprestada do
118 NEXTSTEP(tm).
119
120 %description -l ru
121 WindowMaker - ÜÔÏ ÏËÏÎÎÙÊ ÍÅÎÅÄÖÅÒ, ÜÍÕÌÉÒÕÀÝÉÊ ÞÁÓÔØ ÜËÒÁÎÎÏÊ ÓÒÅÄÙ
122 NEXTSTEP(tm). ðÏÄÒÁÚÕÍÅ×ÁÅÔÓÑ ÞÔÏ ÏΠÏÔÎÏÓÉÔÅÌØÎÏ ÎÅ×ÅÌÉË, ÂÙÓÔÒ,
123 ÂÏÇÁÔ ×ÏÚÍÏÖÎÏÓÔÑÍÉ, ÌÅÇËÏ ÎÁÓÔÒÁÉ×ÁÅÔÓÑ É ÉÍÅÅÔ ÐÒÏÓÔÕÀ É ÜÌÅÇÁÎÔÎÕÀ
124 ×ÎÅÛÎÏÓÔØ, ÐÏÚÁÉÍÓÔ×Ï×ÁÎÎÕÀ Õ NEXTSTEP(tm).
125
126 %description -l uk
127 WindowMaker - ÃŠצËÏÎÎÉÊ ÍÅÎÅÄÖÅÒ, ÝÏ ÅÍÕÌÀ¤ ¦ÎÔÅÒÆÅÊÓ ÅËÒÁÎÎÏÇÏ
128 ÓÅÒÅÄÏ×ÉÝÁ NEXTSTEP(tm). êÏÇÏ ××ÁÖÁÀÔؠצÄÎÏÓÎÏ ÎÅ×ÅÌÉËÉÍ, Û×ÉÄËÉÍ,
129 ÂÁÇÁÔÉÍ ÍÏÖÌÉ×ÏÓÔÑÍÉ, ÌÅÇËÉÍ ÄÌÑ ÎÁÌÁÇÏÄÖÅÎÎÑ; ×¦Î ÍÁ¤ ÐÒÏÓÔÕ ÔÁ
130 ÅÌÅÇÁÎÔÎÕ ÚÏ×ΦÛΦÓÔØ, ÚÁÐÏÚÉÞÅÎÕ × NEXTSTEP(tm).
131
132 %package libs
133 Summary:        WindowMaker shared libraries
134 Summary(pl):    Biblioteki wspó³dzielone WindowMakera
135 Group:          Libraries
136 Obsoletes:      libwraster2
137
138 %description libs
139 This package contains shared libraries for run WindowMaker.
140
141 %description libs -l pl
142 Ten pakiet zawiera biblioteki wspó³dzielone niezbêdne do pracy
143 zarz±dcy okien WindowMaker.
144
145 %package devel
146 Summary:        WindowMaker libraries - development part
147 Summary(es):    Bibliotecas, archivos de inclusión, e etc. para desarrollar aplicaciones WindowMaker
148 Summary(fr):    Librairies de WindowMaker
149 Summary(pl):    Biblioteki WindowMakera - czê¶æ dla programistów
150 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o WindowMaker
151 Summary(ru):    âÉÂÌÉÏÔÅËÉ ÐÏÄÄÅÒÖËÉ É .h ÆÁÊÌÙ ÄÌÑ WindowMaker
152 Summary(uk):    â¦Â̦ÏÔÅËɠЦÄÔÒÉÍËÉ ÔÁ .h ÆÁÊÌÉ ÄÌÑ WindowMaker
153 Group:          Development/Libraries
154 Requires:       %{name}-libs = %{version}-%{release}
155 Requires:       XFree86-devel
156 Requires:       xft-devel
157 Obsoletes:      libwraster2-devel
158
159 %description devel
160 This package contains libraries for building WindowMaker-enhanced
161 applications.
162
163 %description devel -l es
164 Bibliotecas, archivos de inclusión, e etc. para desarrollar
165 aplicaciones WindowMaker
166
167 %description devel -l fr
168 Ce paquet contient des librairies pour faire des applications mise en
169 valeur par WindowMaker.
170
171 %description devel -l pl
172 Ten pakiet zawiera pliki nag³ówkowe i biblioteki niezbêdne do
173 tworzenia aplikacji wykorzystuj±cych mo¿liwo¶ci zarz±dcy okien
174 WindowMaker.
175
176 %description devel -l pt_BR
177 Arquivos de inclusão e bibliotecas para o desenvolvimento de programas
178 baseados no WindowMaker
179
180 %description devel -l ru
181 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ É .h ÆÁÊÌÙ, ÐÒÅÄÎÁÚÎÁÞÅÎÎÙÅ ÄÌÑ ÓÂÏÒËÉ
182 ÐÒÉÌÏÖÅÎÉÊ, ÉÓÐÏÌØÚÕÀÝÉÈ ×ÏÚÍÏÖÎÏÓÔÉ WindowMaker.
183
184 %description devel -l uk
185 ãÅÊ ÐÁËÅԠͦÓÔÉÔؠ¦Â̦ÏÔÅËÉ ÔÁ .h ÆÁÊÌÉ, ÐÒÉÚÎÁÞÅΦ ÄÌÑ ÐÒÉËÌÁÄÎÉÈ
186 ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÍÏÖÌÉ×ÏÓÔ¦ WindowMaker.
187
188 %package static
189 Summary:        WindowMaker static libraries
190 Summary(pl):    Biblioteki statyczne WindowMakera
191 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÐÏÄÄÅÒÖËÉ ÄÌÑ WindowMaker
192 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËɠЦÄÔÒÉÍËÉ ÄÌÑ WindowMaker
193 Group:          Development/Libraries
194 Summary(pt_BR): Componentes estáticos de desenvolvimento para o WindowMaker
195 Requires:       %{name}-devel = %{version}-%{release}
196
197 %description static
198 This package contains static libraries for building
199 WindowMaker-enhanced applications.
200
201 %description static -l pl
202 Ten pakiet zawiera statyczne biblioteki do tworzenia aplikacji
203 wykorzystuj±cych mo¿liwo¶ci zarz±dcy okien WindowMaker.
204
205 %description static -l pt_BR
206 Instale este pacote se você deseja desenvolver para o WindowMaker,
207 utilizando componentes estáticos (raramente necessário).
208
209 %description static -l ru
210 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÐÒÅÄÎÁÚÎÁÞÅÎÎÙÅ ÄÌÑ ÓÂÏÒËÉ
211 ÐÒÉÌÏÖÅÎÉÊ, ÉÓÐÏÌØÚÕÀÝÉÈ ×ÏÚÍÏÖÎÏÓÔÉ WindowMaker.
212
213 %description static -l uk
214 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ, ÐÒÉÚÎÁÞÅΦ ÄÌÑ ÐÒÉËÌÁÄÎÉÈ
215 ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÍÏÖÌÉ×ÏÓÔ¦ WindowMaker.
216
217 %prep
218 %setup -q -a 1 -a 2 -n %{name}-CVS-20040723
219 %patch0 -p1
220 %patch1 -p1
221 %patch2 -p1
222 %patch3 -p1
223 %patch4 -p1
224 %patch5 -p1
225 %patch6 -p1
226 %patch7 -p1
227 %patch8 -p1
228 %patch11 -p1
229 %patch12 -p1
230 %patch13 -p1
231 %patch14 -p1
232 #%patch15 -p0
233
234 for f in WindowMaker/*menu*; do
235         sed -i s,/usr/lib/GNUstep/,%{_libdir}/GNUstep/, $f
236         sed -i s,/usr/local/GNUstep/,%{_libdir}/GNUstep/, $f
237 done
238
239 mv -f po/{no,nb}.po
240 mv -f po/{zh_TW.Big5,zh_TW}.po
241 mv -f WPrefs.app/po/{zh_TW.Big5,zh_TW}.po
242
243 # don't use x86 asm, it's broken
244 # (wrlib/x86_specific.c contains far too many assumptions about function
245 #  frame used by gcc, so it can crash depending on gcc version and
246 #  optimizations - and did so in Ac i686 packages)
247 %{__perl} -pi -e 's/test \$x86 = 1/false/' configure.ac
248
249 %build
250 %{__libtoolize}
251 %{__aclocal}
252 %{__autoheader}
253 %{__automake}
254 %{__autoconf}
255 cd %{name}-extra-%{extraver}
256         %{__libtoolize}
257         %{__aclocal}
258         %{__autoconf}
259         %{__automake}
260 cd ..
261
262 perl -pi -e 's/defaultAppIcon.#extension#;SharedAppIcon = Yes;/defaultAppIcon.#extension#;/' \
263         WindowMaker/Defaults/WMWindowAttributes.in
264
265 %configure \
266         CPP_PATH="/lib/cpp" \
267         LINGUAS="bg cs da de el es et fi fr gl hr hu it ja ko ms nb nl pl pt ro ru \
268                  sk sv tr zh_CN zh_TW" \
269         --disable-rpath \
270         --with-nlsdir=%{_datadir}/locale \
271         --with-appspath=%{_libdir}/GNUstep/Apps \
272         --enable-sound \
273         --enable-gnome \
274         --disable-debug \
275         --enable-kde \
276         --enable-shared \
277         --enable-static \
278         --enable-usermenu \
279 %{!?with_xft:--disable-xft}
280
281 touch WindowMaker/Defaults/W*.in
282
283 %{__make} \
284         CFLAGS="%{rpmcflags}" \
285         LDFLAGS="%{rpmldflags}"
286
287 %{__autoconf}
288 cd %{name}-extra-%{extraver}
289 %configure \
290         --with-nlsdir=%{_datadir}/locale \
291         --with-iconsdir=%{_datadir}/pixmaps
292
293 %install
294 rm -rf $RPM_BUILD_ROOT
295 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir},%{_wmpropsdir}} \
296         $RPM_BUILD_ROOT/etc/sysconfig/wmstyle
297
298 %{__make} install \
299         DESTDIR=$RPM_BUILD_ROOT
300
301 install util/bughint $RPM_BUILD_ROOT%{_bindir}
302
303 install contrib/dockit   $RPM_BUILD_ROOT%{_bindir}
304 install contrib/dockit.1 $RPM_BUILD_ROOT%{_mandir}/man1
305
306 install WindowMaker-data/pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
307 install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}
308
309 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
310
311 cd %{name}-extra-%{extraver}
312 %{__make} install \
313         DESTDIR=$RPM_BUILD_ROOT
314 cd ..
315
316 %find_lang %{name} --all-name
317
318 %clean
319 rm -rf $RPM_BUILD_ROOT
320
321 %post   libs -p /sbin/ldconfig
322 %postun libs -p /sbin/ldconfig
323
324 %files -f %{name}.lang
325 %defattr(644,root,root,755)
326 %doc AUTHORS BUGFORM BUGS ChangeLog FAQ NEWS README
327
328 %dir %{_sysconfdir}/WindowMaker
329 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/WindowMaker/*
330
331
332 %{_mandir}/man1/*
333 %lang(sk) %{_mandir}/sk/man1/*
334
335 %{_pixmapsdir}/*
336 %{_wmpropsdir}/WindowMaker.desktop
337
338 %attr(755,root,root) %{_bindir}/bughint
339 %attr(755,root,root) %{_bindir}/geticonset
340 %attr(755,root,root) %{_bindir}/getstyle
341 %attr(755,root,root) %{_bindir}/seticons
342 %attr(755,root,root) %{_bindir}/setstyle
343 %attr(755,root,root) %{_bindir}/wcopy
344 %attr(755,root,root) %{_bindir}/wdwrite
345 %attr(755,root,root) %{_bindir}/wdread
346 %attr(755,root,root) %{_bindir}/wkdemenu.pl
347 %attr(755,root,root) %{_bindir}/wm-oldmenu2new
348 %attr(755,root,root) %{_bindir}/wmagnify
349 %attr(755,root,root) %{_bindir}/wmaker
350 %attr(755,root,root) %{_bindir}/wmaker.inst
351 %attr(755,root,root) %{_bindir}/wmsetbg
352 %attr(755,root,root) %{_bindir}/wmsetup
353 %attr(755,root,root) %{_bindir}/wmchlocale
354 %attr(755,root,root) %{_bindir}/wpaste
355 %attr(755,root,root) %{_bindir}/wsetfont
356 %attr(755,root,root) %{_bindir}/wxcopy
357 %attr(755,root,root) %{_bindir}/wxpaste
358 %attr(755,root,root) %{_bindir}/dockit
359
360 %{_datadir}/WindowMaker
361 %{_datadir}/xsessions/WindowMaker.desktop
362
363 # the first one is shared with gnustep-make...
364 %dir %{_libdir}/GNUstep
365 %dir %{_libdir}/GNUstep/Apps
366 %dir %{_libdir}/GNUstep/Apps/WPrefs.app
367
368 %attr(755,root,root) %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs
369
370 %{_libdir}/GNUstep/Apps/WPrefs.app/tiff
371 %{_libdir}/GNUstep/Apps/WPrefs.app/xpm
372 %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs.tiff
373 %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs.xpm
374
375 %files libs
376 %defattr(644,root,root,755)
377 %attr(755,root,root) %{_libdir}/lib*.so.*.*
378 %{_datadir}/WINGs
379
380 %files devel
381 %defattr(644,root,root,755)
382 %attr(755,root,root) %{_bindir}/get-wings-flags
383 %attr(755,root,root) %{_bindir}/get-wraster-flags
384 %attr(755,root,root) %{_bindir}/get-wutil-flags
385 %attr(755,root,root) %{_libdir}/lib*.so
386 %{_libdir}/lib*.la
387 %{_includedir}/*
388 %{_pkgconfigdir}/*.pc
389
390 %files static
391 %defattr(644,root,root,755)
392 %{_libdir}/lib*.a
This page took 0.078676 seconds and 4 git commands to generate.