]> git.pld-linux.org Git - packages/WindowMaker.git/blob - WindowMaker.spec
- some finishing touches, STBR
[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}.1
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 Source4:        %{name}.RunWM
24 Source5:        %{name}.wm_style
25 Source6:        %{name}-xsession.desktop
26 Patch0:         %{name}-CFLAGS.patch
27 Patch1:         %{name}-wmconfig.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 Patch10:        %{name}-rxvt.patch
36 Patch11:        %{name}-pl.po-update.patch
37 Patch12:        %{name}-wmchlocale-fixes.patch
38 Patch13:        http://www.heily.com/mark/code_samples/appicon_captions_maxprotect.diff
39 Patch14:        %{name}-localenames.patch
40 Patch15:        %{name}-CVS-before-xft2.patch
41 URL:            http://www.windowmaker.org/
42 BuildRequires:  Hermes-devel
43 BuildRequires:  XFree86-devel
44 BuildRequires:  autoconf
45 BuildRequires:  automake
46 BuildRequires:  libtool
47 BuildRequires:  gettext-devel
48 BuildRequires:  libpng >= 1.0.8
49 BuildRequires:  libjpeg-devel >= 6b
50 BuildRequires:  libtiff-devel
51 BuildRequires:  libtool
52 BuildRequires:  libungif-devel
53 Requires:       %{name}-libs = %{version}
54 Requires:       cpp
55 Requires:       tk
56 Requires:       wmconfig >= 0.9.9-5
57 Requires:       xinitrc >= 3.0
58 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59
60 %define         _sysconfdir     /etc/X11
61 %define         _wmpropsdir     /usr/share/wm-properties
62
63 %description
64 Window Maker is an X11 window manager which emulates the look and feel
65 of the NeXTSTEP (TM) graphical user interface. It is relatively fast,
66 feature rich and easy to configure and use. Window Maker is part of
67 the official GNU project, which means that Window Maker can
68 interoperate with other GNU projects, such as GNOME.
69
70 Window Maker allows users to switch themes 'on the fly,' to place
71 favorite applications on either an application dock, similar to
72 AfterStep's Wharf or on a workspace dock, a 'clip' which extends the
73 application dock's usefulness.
74
75 You should install the WindowMaker package if you use Window Maker as
76 your window manager or if you'd like to try using it. If you do
77 install the WindowMaker package, you may also want to install the
78 AfterStep-APPS package, which includes applets that will work with
79 both AfterStep and Window Maker window managers.
80
81 %description -l es
82 WindowMaker es un administrador de ventanas proyectado para emular la
83 apariencia de parte de la interface de usuario del NEXTSTEP(tm). Se
84 hizo para ser rápido, relativamente pequeño, rico en características y
85 de configuración fácil, con una apariencia sencilla y elegante
86 prestada del NEXTSTEP(tm).
87
88 %description -l fr
89 Window Maker est un gestionnaire de fenêtres pour X11 qui cherche à
90 reproduire l'allure et l'ergonomie ("look & feel") de l'interface
91 graphique NeXTSTEP(tm) (aka OpenStep). Il est relativement rapide,
92 évolué, et facile à configurer et à utiliser. Window Maker fait
93 officiellement partie du projet GNU, ce qui signifie que Window Maker
94 peut coopérer avec d'autres projets GNU, comme par exemple GNOME.
95
96 Window Maker permet de changer de thèmes facilement, de placer ses
97 applications favorites soit sur un "dock" similaire au programme Wharf
98 de AfterStep, soit sur un dock intégré à l'espace de travail, appelé
99 "clip" (trombone), et qui permet d'étendre les possibilités du dock
100 principal.
101
102 Vous devriez installer ce package si votre gestionnaire de fenêtres
103 est Window Maker, ou si vous voulez l'essayer. Si vous installez le
104 package Window Maker, vous voudrez peut-être installer aussi le
105 package AfterStep-APPS, qui contient des "applets" (petites
106 applications) qui fonctionnent à la fois dans les gestionnaires de
107 fenêtres AfterStep et Window Maker.
108
109 %description -l pl
110 WindowMaker jest zarz±dc± okien przypominaj±cym wygl±dem i wygod±
111 obs³ugi interfejs systemu NeXTSTEP(tm). Jest szybki, stosunkowo ma³y,
112 o du¿ych mo¿liwo¶ciach i ³atwy w konfiguracji. Konfiguruje siê go
113 myszk±, za pomoc± programu WPrefs wchodz±cego w sk³ad tego pakietu.
114
115 %description -l pt_BR
116 WindowMaker é um gerente de janelas projetado para emular a aparência
117 de parte da interface de usuário do NEXTSTEP(tm). Feito para ser
118 rápido, relativamente pequeno, rico em características e de
119 configuração fácil, com uma aparência simples e elegante emprestada do
120 NEXTSTEP(tm).
121
122 %description -l ru
123 WindowMaker - ÜÔÏ ÏËÏÎÎÙÊ ÍÅÎÅÄÖÅÒ, ÜÍÕÌÉÒÕÀÝÉÊ ÞÁÓÔØ ÜËÒÁÎÎÏÊ ÓÒÅÄÙ
124 NEXTSTEP(tm). ðÏÄÒÁÚÕÍÅ×ÁÅÔÓÑ ÞÔÏ ÏΠÏÔÎÏÓÉÔÅÌØÎÏ ÎÅ×ÅÌÉË, ÂÙÓÔÒ,
125 ÂÏÇÁÔ ×ÏÚÍÏÖÎÏÓÔÑÍÉ, ÌÅÇËÏ ÎÁÓÔÒÁÉ×ÁÅÔÓÑ É ÉÍÅÅÔ ÐÒÏÓÔÕÀ É ÜÌÅÇÁÎÔÎÕÀ
126 ×ÎÅÛÎÏÓÔØ, ÐÏÚÁÉÍÓÔ×Ï×ÁÎÎÕÀ Õ NEXTSTEP(tm).
127
128 %description -l uk
129 WindowMaker - ÃŠצËÏÎÎÉÊ ÍÅÎÅÄÖÅÒ, ÝÏ ÅÍÕÌÀ¤ ¦ÎÔÅÒÆÅÊÓ ÅËÒÁÎÎÏÇÏ
130 ÓÅÒÅÄÏ×ÉÝÁ NEXTSTEP(tm). êÏÇÏ ××ÁÖÁÀÔؠצÄÎÏÓÎÏ ÎÅ×ÅÌÉËÉÍ, Û×ÉÄËÉÍ,
131 ÂÁÇÁÔÉÍ ÍÏÖÌÉ×ÏÓÔÑÍÉ, ÌÅÇËÉÍ ÄÌÑ ÎÁÌÁÇÏÄÖÅÎÎÑ; ×¦Î ÍÁ¤ ÐÒÏÓÔÕ ÔÁ
132 ÅÌÅÇÁÎÔÎÕ ÚÏ×ΦÛΦÓÔØ, ÚÁÐÏÚÉÞÅÎÕ × NEXTSTEP(tm).
133
134 %package libs
135 Summary:        WindowMaker shared libraries
136 Summary(pl):    Biblioteki wspó³dzielone WindowMakera
137 Group:          Libraries
138 Obsoletes:      libwraster2
139
140 %description libs
141 This package contains shared libraries for run WindowMaker.
142
143 %description libs -l pl
144 Ten pakiet zawiera biblioteki wspó³dzielone niezbêdne do pracy
145 zarz±dcy okien WindowMaker.
146
147 %package devel
148 Summary:        WindowMaker libraries - development part
149 Summary(es):    Bibliotecas, archivos de inclusión, e etc. para desarrollar aplicaciones WindowMaker
150 Summary(fr):    Librairies de WindowMaker
151 Summary(pl):    Biblioteki WindowMakera - czê¶æ dla programistów
152 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o WindowMaker
153 Summary(ru):    âÉÂÌÉÏÔÅËÉ ÐÏÄÄÅÒÖËÉ É .h ÆÁÊÌÙ ÄÌÑ WindowMaker
154 Summary(uk):    â¦Â̦ÏÔÅËɠЦÄÔÒÉÍËÉ ÔÁ .h ÆÁÊÌÉ ÄÌÑ WindowMaker
155 Group:          Development/Libraries
156 Requires:       %{name}-libs = %{version}
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}
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-%{_snap}
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 %patch10 -p1
229 %patch11 -p1
230 %patch12 -p1
231 %patch13 -p1
232 %patch14 -p1
233 %patch15 -p0
234
235 for f in WindowMaker/*menu*; do
236         sed s,/usr/local/GNUstep/,%{_libdir}/GNUstep/, $f >$f.new
237         mv -f $f.new $f
238 done
239
240 mv -f po/{no,nb}.po
241 mv -f po/{zh_TW.Big5,zh_TW}.po
242 mv -f WPrefs.app/po/{zh_TW.Big5,zh_TW}.po
243
244 %build
245 %{__libtoolize}
246 %{__aclocal}
247 %{__autoheader}
248 %{__automake}
249 %{__autoconf}
250 cd %{name}-extra-%{extraver}
251         %{__libtoolize}
252         %{__aclocal}
253         %{__autoconf}
254         %{__automake}
255 cd ..
256
257 perl -pi -e 's/defaultAppIcon.#extension#;SharedAppIcon = Yes;/defaultAppIcon.#extension#;/' \
258         WindowMaker/Defaults/WMWindowAttributes.in
259
260 %configure \
261         CPP_PATH="/lib/cpp" \
262         LINGUAS="bg cs da de el es et fi fr gl hr hu it ja ko ms nb nl pl pt ro ru \
263                  sk sv tr zh_CN zh_TW" \
264         --disable-rpath \
265         --with-nlsdir=%{_datadir}/locale \
266         --with-appspath=%{_libdir}/GNUstep/Apps \
267         --enable-sound \
268         --enable-gnome \
269         --disable-debug \
270         --enable-kde \
271         --enable-shared \
272         --enable-static \
273         --enable-usermenu
274
275 touch WindowMaker/Defaults/W*.in
276
277 %{__make} \
278         CFLAGS="%{rpmcflags}" \
279         LDFLAGS="%{rpmldflags}"
280
281 %{__autoconf}
282 cd %{name}-extra-%{extraver}
283 %configure \
284         --with-nlsdir=%{_datadir}/locale \
285         --with-iconsdir=%{_datadir}/pixmaps
286
287 %install
288 rm -rf $RPM_BUILD_ROOT
289 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir},%{_wmpropsdir}} \
290         $RPM_BUILD_ROOT/etc/sysconfig/wmstyle
291
292 %{__make} install \
293         DESTDIR=$RPM_BUILD_ROOT
294
295 install util/bughint $RPM_BUILD_ROOT%{_bindir}
296
297 install contrib/dockit   $RPM_BUILD_ROOT%{_bindir}
298 install contrib/dockit.1 $RPM_BUILD_ROOT%{_mandir}/man1
299
300 install WindowMaker-data/pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
301 install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}
302
303 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/wmaker.sh
304 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/wmaker.names
305 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
306
307 cd %{name}-extra-%{extraver}
308 %{__make} install \
309         DESTDIR=$RPM_BUILD_ROOT
310 cd ..
311
312 %find_lang %{name} --all-name
313
314 %clean
315 rm -rf $RPM_BUILD_ROOT
316
317 %post   libs -p /sbin/ldconfig
318 %postun libs -p /sbin/ldconfig
319
320 %files -f %{name}.lang
321 %defattr(644,root,root,755)
322 %doc AUTHORS BUGFORM BUGS ChangeLog FAQ NEWS README
323
324 %dir %{_sysconfdir}/WindowMaker
325 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/WindowMaker/*
326
327 %attr(755,root,root) /etc/sysconfig/wmstyle/*.sh
328 /etc/sysconfig/wmstyle/*.names
329
330 %{_mandir}/man1/*
331 %lang(sk) %{_mandir}/sk/man1/*
332
333 %{_pixmapsdir}/*
334 %{_wmpropsdir}/WindowMaker.desktop
335
336 %attr(755,root,root) %{_bindir}/bughint
337 %attr(755,root,root) %{_bindir}/geticonset
338 %attr(755,root,root) %{_bindir}/getstyle
339 %attr(755,root,root) %{_bindir}/seticons
340 %attr(755,root,root) %{_bindir}/setstyle
341 %attr(755,root,root) %{_bindir}/wcopy
342 %attr(755,root,root) %{_bindir}/wdwrite
343 %attr(755,root,root) %{_bindir}/wdread
344 %attr(755,root,root) %{_bindir}/wkdemenu.pl
345 %attr(755,root,root) %{_bindir}/wm-oldmenu2new
346 %attr(755,root,root) %{_bindir}/wmagnify
347 %attr(755,root,root) %{_bindir}/wmaker
348 %attr(755,root,root) %{_bindir}/wmaker.inst
349 %attr(755,root,root) %{_bindir}/wmsetbg
350 %attr(755,root,root) %{_bindir}/wmsetup
351 %attr(755,root,root) %{_bindir}/wmchlocale
352 %attr(755,root,root) %{_bindir}/wpaste
353 %attr(755,root,root) %{_bindir}/wsetfont
354 %attr(755,root,root) %{_bindir}/wxcopy
355 %attr(755,root,root) %{_bindir}/wxpaste
356 %attr(755,root,root) %{_bindir}/dockit
357
358 %{_datadir}/WindowMaker
359 %{_datadir}/xsessions/WindowMaker.desktop
360
361 # the first one is shared with gnustep-make...
362 %dir %{_libdir}/GNUstep
363 %dir %{_libdir}/GNUstep/Apps
364 %dir %{_libdir}/GNUstep/Apps/WPrefs.app
365
366 %attr(755,root,root) %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs
367
368 %{_libdir}/GNUstep/Apps/WPrefs.app/tiff
369 %{_libdir}/GNUstep/Apps/WPrefs.app/xpm
370 %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs.tiff
371 %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs.xpm
372
373 %files libs
374 %defattr(644,root,root,755)
375 %attr(755,root,root) %{_libdir}/lib*.so.*.*
376 %{_datadir}/WINGs
377
378 %files devel
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/lib*.so
381 %{_libdir}/lib*.la
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 %{_includedir}/*
386
387 %files static
388 %defattr(644,root,root,755)
389 %{_libdir}/lib*.a
This page took 0.059929 seconds and 4 git commands to generate.