]> git.pld-linux.org Git - packages/WindowMaker.git/blob - WindowMaker.spec
- fixed build, added missing BR: libtool
[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:        4
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 URL:            http://www.windowmaker.org/
40 BuildRequires:  Hermes-devel
41 BuildRequires:  XFree86-devel
42 BuildRequires:  autoconf
43 BuildRequires:  automake
44 BuildRequires:  libtool
45 BuildRequires:  gettext-devel
46 BuildRequires:  libpng >= 1.0.8
47 BuildRequires:  libjpeg-devel >= 6b
48 BuildRequires:  libtiff-devel
49 BuildRequires:  libtool
50 BuildRequires:  libungif-devel
51 Requires:       %{name}-libs = %{version}
52 Requires:       cpp
53 Requires:       tk
54 Requires:       wmconfig >= 0.9.9-5
55 Requires:       xinitrc >= 3.0
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}
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}
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
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 %patch9 -p1
227 %patch10 -p1
228 %patch11 -p1
229 %patch12 -p1
230 %patch13 -p1
231
232 for f in WindowMaker/*menu*; do
233         sed s,/usr/local/GNUstep/,%{_libdir}/GNUstep/, $f >$f.new
234         mv -f $f.new $f
235 done
236
237 %build
238 %{__libtoolize}
239 %{__aclocal}
240 %{__autoconf}
241 %{__automake}
242 cd %{name}-extra-%{extraver}
243         %{__libtoolize}
244         %{__aclocal}
245         %{__autoconf}
246         %{__automake}
247 cd ..
248
249 perl -pi -e 's/defaultAppIcon.#extension#;SharedAppIcon = Yes;/defaultAppIcon.#extension#;/' \
250         WindowMaker/Defaults/WMWindowAttributes.in
251
252 LINGUAS="bg cs da de el es et fi fr gl hr hu it ja ko ms nl no pl pt ro ru \
253          sk sv tr zh_CN zh_TW.Big5" ; export LINGUAS
254 CPP_PATH="/lib/cpp" ; export CPP_PATH
255 %configure \
256         --disable-rpath \
257         --with-nlsdir=%{_datadir}/locale \
258         --with-appspath=%{_libdir}/GNUstep/Apps \
259         --enable-sound \
260         --enable-gnome \
261         --disable-debug \
262         --enable-kde \
263         --enable-shared \
264         --enable-static \
265         --enable-usermenu
266
267 touch WindowMaker/Defaults/W*.in
268
269 %{__make} \
270         LINGUAS="bg cs da de el es et fi fr gl hr hu it ja ko ms nl no pl pt ro ru \
271                 sk sv tr zh_CN zh_TW.Big5" \
272         CFLAGS="%{rpmcflags}" \
273         LDFLAGS="%{rpmldflags}"
274
275 %{__autoconf}
276 cd %{name}-extra-%{extraver}
277 %configure \
278         --with-nlsdir=%{_datadir}/locale \
279         --with-iconsdir=%{_datadir}/pixmaps
280
281 %install
282 rm -rf $RPM_BUILD_ROOT
283 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir},%{_wmpropsdir}} \
284         $RPM_BUILD_ROOT/etc/sysconfig/wmstyle
285
286 %{__make} install \
287         LINGUAS="cs de el es fi fr gl hr it ja ko nl no pl pt ro ru  \
288                 se sk tr zh_CN zh_TW.Big5" \
289         DESTDIR=$RPM_BUILD_ROOT
290
291 install util/bughint $RPM_BUILD_ROOT%{_bindir}
292
293 install contrib/dockit   $RPM_BUILD_ROOT%{_bindir}
294 install contrib/dockit.1 $RPM_BUILD_ROOT%{_mandir}/man1
295
296 install WindowMaker-data/pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
297 install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}
298
299 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/wmaker.sh
300 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/wmaker.names
301 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
302
303 cd %{name}-extra-%{extraver}
304 %{__make} install \
305         DESTDIR=$RPM_BUILD_ROOT
306 cd ..
307
308 %find_lang %{name} --all-name
309
310 %clean
311 rm -rf $RPM_BUILD_ROOT
312
313 %post   libs -p /sbin/ldconfig
314 %postun libs -p /sbin/ldconfig
315
316 %files -f %{name}.lang
317 %defattr(644,root,root,755)
318 %doc AUTHORS BUGFORM BUGS ChangeLog FAQ NEWS README
319
320 %dir %{_sysconfdir}/WindowMaker
321 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/WindowMaker/*
322
323 %attr(755,root,root) /etc/sysconfig/wmstyle/*.sh
324 /etc/sysconfig/wmstyle/*.names
325
326 %{_mandir}/man1/*
327 %lang(sk) %{_mandir}/sk/man1/*
328
329 %{_pixmapsdir}/*
330 %{_wmpropsdir}/WindowMaker.desktop
331
332 %attr(755,root,root) %{_bindir}/bughint
333 %attr(755,root,root) %{_bindir}/geticonset
334 %attr(755,root,root) %{_bindir}/getstyle
335 %attr(755,root,root) %{_bindir}/seticons
336 %attr(755,root,root) %{_bindir}/setstyle
337 %attr(755,root,root) %{_bindir}/wcopy
338 %attr(755,root,root) %{_bindir}/wdwrite
339 %attr(755,root,root) %{_bindir}/wdread
340 %attr(755,root,root) %{_bindir}/wkdemenu.pl
341 %attr(755,root,root) %{_bindir}/wm-oldmenu2new
342 %attr(755,root,root) %{_bindir}/wmagnify
343 %attr(755,root,root) %{_bindir}/wmaker
344 %attr(755,root,root) %{_bindir}/wmaker.inst
345 %attr(755,root,root) %{_bindir}/wmsetbg
346 %attr(755,root,root) %{_bindir}/wmsetup
347 %attr(755,root,root) %{_bindir}/wmchlocale
348 %attr(755,root,root) %{_bindir}/wpaste
349 %attr(755,root,root) %{_bindir}/wsetfont
350 %attr(755,root,root) %{_bindir}/wxcopy
351 %attr(755,root,root) %{_bindir}/wxpaste
352 %attr(755,root,root) %{_bindir}/dockit
353
354 %{_datadir}/WindowMaker
355 %{_datadir}/xsessions/WindowMaker.desktop
356
357 # the first one is shared with gnustep-make...
358 %dir %{_libdir}/GNUstep
359 %dir %{_libdir}/GNUstep/Apps
360 %dir %{_libdir}/GNUstep/Apps/WPrefs.app
361
362 %attr(755,root,root) %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs
363
364 %{_libdir}/GNUstep/Apps/WPrefs.app/tiff
365 %{_libdir}/GNUstep/Apps/WPrefs.app/xpm
366 %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs.tiff
367 %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs.xpm
368
369 %files libs
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/lib*.so.*.*
372 %{_datadir}/WINGs
373
374 %files devel
375 %defattr(644,root,root,755)
376 %attr(755,root,root) %{_libdir}/lib*.so
377 %{_libdir}/lib*.la
378 %attr(755,root,root) %{_bindir}/get-wings-flags
379 %attr(755,root,root) %{_bindir}/get-wraster-flags
380 %attr(755,root,root) %{_bindir}/get-wutil-flags
381 %{_includedir}/*
382
383 %files static
384 %defattr(644,root,root,755)
385 %{_libdir}/lib*.a
This page took 0.066801 seconds and 4 git commands to generate.