]> git.pld-linux.org Git - packages/WindowMaker.git/blob - WindowMaker.spec
- As of 0.90.0, libXft2 is a required library.
[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.90.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:  38b7b146fb866269f3541b87c170f529
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 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}-areas.patch
28 Patch5:         %{name}-IconPosition.patch
29 Patch6:         %{name}-singleclick.patch
30 Patch7:         %{name}-plmenu.patch
31 Patch8:         %{name}-dockit.patch
32 Patch11:        %{name}-pl.po-update.patch
33 Patch12:        %{name}-wmchlocale-fixes.patch
34 Patch13:        http://www.heily.com/mark/code_samples/appicon_captions_maxprotect.diff
35 Patch14:        %{name}-localenames.patch
36 Patch15:        %{name}-enablexft.patch
37 URL:            http://www.windowmaker.org/
38 BuildRequires:  XFree86-devel
39 BuildRequires:  autoconf
40 BuildRequires:  automake
41 BuildRequires:  gettext-devel
42 BuildRequires:  libpng >= 1.0.8
43 BuildRequires:  libjpeg-devel >= 6b
44 BuildRequires:  libtiff-devel
45 BuildRequires:  libtool >= 1:1.4.2-9
46 BuildRequires:  libungif-devel
47 BuildRequires:  xft-devel
48 Requires:       %{name}-libs = %{version}-%{release}
49 Requires:       cpp
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, archivos de inclusión, e etc. para desarrollar aplicaciones 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 %patch11 -p1
226 %patch12 -p1
227 %patch13 -p1
228 %patch14 -p1
229 #%patch15 -p0
230
231 for f in WindowMaker/*menu*; do
232         sed -i s,/usr/lib/GNUstep/,%{_libdir}/GNUstep/, $f
233         sed -i s,/usr/local/GNUstep/,%{_libdir}/GNUstep/, $f
234 done
235
236 mv -f po/{no,nb}.po
237 mv -f po/{zh_TW.Big5,zh_TW}.po
238 mv -f WPrefs.app/po/{zh_TW.Big5,zh_TW}.po
239
240 # don't use x86 asm, it's broken
241 # (wrlib/x86_specific.c contains far too many assumptions about function
242 #  frame used by gcc, so it can crash depending on gcc version and
243 #  optimizations - and did so in Ac i686 packages)
244 %{__perl} -pi -e 's/test \$x86 = 1/false/' configure.ac
245
246 %build
247 %{__libtoolize}
248 %{__aclocal}
249 %{__autoheader}
250 %{__automake}
251 %{__autoconf}
252 cd %{name}-extra-%{extraver}
253         %{__libtoolize}
254         %{__aclocal}
255         %{__autoconf}
256         %{__automake}
257 cd ..
258
259 perl -pi -e 's/defaultAppIcon.#extension#;SharedAppIcon = Yes;/defaultAppIcon.#extension#;/' \
260         WindowMaker/Defaults/WMWindowAttributes.in
261
262 %configure \
263         CPP_PATH="/lib/cpp" \
264         LINGUAS="bg cs da de el es et fi fr gl hr hu it ja ko ms nb nl pl pt ro ru \
265                  sk sv tr zh_CN zh_TW" \
266         --disable-rpath \
267         --with-nlsdir=%{_datadir}/locale \
268         --with-appspath=%{_libdir}/GNUstep/Apps \
269         --enable-sound \
270         --enable-gnome \
271         --disable-debug \
272         --enable-kde \
273         --enable-shared \
274         --enable-static \
275         --enable-usermenu \
276
277 touch WindowMaker/Defaults/W*.in
278
279 %{__make} \
280         CFLAGS="%{rpmcflags}" \
281         LDFLAGS="%{rpmldflags}"
282
283 %{__autoconf}
284 cd %{name}-extra-%{extraver}
285 %configure \
286         --with-nlsdir=%{_datadir}/locale \
287         --with-iconsdir=%{_datadir}/pixmaps
288
289 %install
290 rm -rf $RPM_BUILD_ROOT
291 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir},%{_wmpropsdir}} \
292         $RPM_BUILD_ROOT/etc/sysconfig/wmstyle
293
294 %{__make} install \
295         DESTDIR=$RPM_BUILD_ROOT
296
297 install util/bughint $RPM_BUILD_ROOT%{_bindir}
298
299 install contrib/dockit   $RPM_BUILD_ROOT%{_bindir}
300 install contrib/dockit.1 $RPM_BUILD_ROOT%{_mandir}/man1
301
302 install WindowMaker-data/pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
303 install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}
304
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
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) %{_bindir}/get-wings-flags
379 %attr(755,root,root) %{_bindir}/get-wraster-flags
380 %attr(755,root,root) %{_bindir}/get-wutil-flags
381 %attr(755,root,root) %{_libdir}/lib*.so
382 %{_libdir}/lib*.la
383 %{_includedir}/*
384 %{_pkgconfigdir}/*.pc
385
386 %files static
387 %defattr(644,root,root,755)
388 %{_libdir}/lib*.a
This page took 0.070143 seconds and 4 git commands to generate.