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