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