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