]> git.pld-linux.org Git - packages/WindowMaker.git/blob - WindowMaker.spec
- added translucency patch stolen from LFS
[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.91.0
12 Release:        7
13 License:        GPL
14 Group:          X11/Window Managers
15 Source0:        ftp://ftp.windowmaker.org/pub/source/release/%{name}-%{version}.tar.gz
16 # Source0-md5:  be07953e905d1e42fe7a65ac2193a5f9
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}-updateIconImage.patch
35 Patch12:        %{name}-0.91.0-translucency-1.patch
36 URL:            http://www.windowmaker.org/
37 BuildRequires:  XFree86-devel
38 BuildRequires:  autoconf
39 BuildRequires:  automake
40 BuildRequires:  gettext-devel
41 BuildRequires:  libpng-devel >= 1.0.8
42 BuildRequires:  libjpeg-devel >= 6b
43 BuildRequires:  libtiff-devel
44 BuildRequires:  libtool >= 1:1.4.2-9
45 BuildRequires:  libungif-devel
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 %patch12 -p1
229
230 for f in WindowMaker/*menu*; do
231         sed -i s,/usr/lib/GNUstep/,%{_libdir}/GNUstep/, $f
232         sed -i s,/usr/local/GNUstep/,%{_libdir}/GNUstep/, $f
233 done
234
235 mv -f po/{no,nb}.po
236
237 # don't use x86 asm, it's broken
238 # (wrlib/x86_specific.c contains far too many assumptions about function
239 #  frame used by gcc, so it can crash depending on gcc version and
240 #  optimizations - and did so in Ac i686 packages)
241 %{__perl} -pi -e 's/test \$x86 = 1/false/' configure.ac
242
243 %build
244 %{__libtoolize}
245 %{__aclocal}
246 %{__autoheader}
247 %{__automake}
248 %{__autoconf}
249 cd %{name}-extra-%{extraver}
250         %{__libtoolize}
251         %{__aclocal}
252         %{__autoconf}
253         %{__automake}
254 cd ..
255
256 perl -pi -e 's/defaultAppIcon.#extension#;SharedAppIcon = Yes;/defaultAppIcon.#extension#;/' \
257         WindowMaker/Defaults/WMWindowAttributes.in
258
259 %configure \
260         CPP_PATH="/lib/cpp" \
261         LINGUAS="bg cs da de el es et fi fr gl hr hu it ja ko ms nb nl pl pt ro ru \
262                  sk sv tr zh_CN zh_TW" \
263         --disable-debug \
264         --disable-rpath \
265         --enable-shared \
266         --enable-static \
267         --enable-usermenu \
268         --with-appspath=%{_libdir}/GNUstep/Apps \
269         --with-nlsdir=%{_datadir}/locale
270
271 touch WindowMaker/Defaults/W*.in
272
273 %{__make} \
274         CFLAGS="%{rpmcflags}" \
275         LDFLAGS="%{rpmldflags}"
276
277 %{__autoconf}
278 cd %{name}-extra-%{extraver}
279 %configure \
280         --with-nlsdir=%{_datadir}/locale \
281         --with-iconsdir=%{_datadir}/pixmaps
282
283 %install
284 rm -rf $RPM_BUILD_ROOT
285 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir},%{_wmpropsdir}} \
286         $RPM_BUILD_ROOT/etc/sysconfig/wmstyle \
287         $RPM_BUILD_ROOT%{_datadir}/WindowMaker/{Sounds,SoundSets}
288
289 %{__make} install \
290         DESTDIR=$RPM_BUILD_ROOT
291
292 install util/bughint $RPM_BUILD_ROOT%{_bindir}
293
294 install contrib/dockit   $RPM_BUILD_ROOT%{_bindir}
295 install contrib/dockit.1 $RPM_BUILD_ROOT%{_mandir}/man1
296
297 install WindowMaker-data/pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
298 install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}
299
300 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
301
302 cd %{name}-extra-%{extraver}
303 %{__make} install \
304         DESTDIR=$RPM_BUILD_ROOT
305 cd ..
306
307 %find_lang %{name} --all-name
308
309 %clean
310 rm -rf $RPM_BUILD_ROOT
311
312 %post   libs -p /sbin/ldconfig
313 %postun libs -p /sbin/ldconfig
314
315 %files -f %{name}.lang
316 %defattr(644,root,root,755)
317 %doc AUTHORS BUGFORM BUGS ChangeLog FAQ NEWS README
318
319 %dir %{_sysconfdir}/WindowMaker
320 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/WindowMaker/*
321
322 %{_mandir}/man1/*
323 %lang(sk) %{_mandir}/sk/man1/*
324
325 %{_pixmapsdir}/*
326 %{_wmpropsdir}/WindowMaker.desktop
327
328 %attr(755,root,root) %{_bindir}/convertfonts
329 %attr(755,root,root) %{_bindir}/bughint
330 %attr(755,root,root) %{_bindir}/geticonset
331 %attr(755,root,root) %{_bindir}/getstyle
332 %attr(755,root,root) %{_bindir}/seticons
333 %attr(755,root,root) %{_bindir}/setstyle
334 %attr(755,root,root) %{_bindir}/wdwrite
335 %attr(755,root,root) %{_bindir}/wdread
336 %attr(755,root,root) %{_bindir}/wkdemenu.pl
337 %attr(755,root,root) %{_bindir}/wm-oldmenu2new
338 %attr(755,root,root) %{_bindir}/wmagnify
339 %attr(755,root,root) %{_bindir}/wmaker
340 %attr(755,root,root) %{_bindir}/wmaker.inst
341 %attr(755,root,root) %{_bindir}/wmsetbg
342 %attr(755,root,root) %{_bindir}/wmsetup
343 %attr(755,root,root) %{_bindir}/wxcopy
344 %attr(755,root,root) %{_bindir}/wxpaste
345 %attr(755,root,root) %{_bindir}/dockit
346
347 %{_datadir}/WindowMaker
348 %{_datadir}/xsessions/WindowMaker.desktop
349
350 # the first one is shared with gnustep-make...
351 %dir %{_libdir}/GNUstep/Apps
352 %dir %{_libdir}/GNUstep/Apps/WPrefs.app
353
354 %attr(755,root,root) %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs
355
356 %{_libdir}/GNUstep/Apps/WPrefs.app/tiff
357 %{_libdir}/GNUstep/Apps/WPrefs.app/xpm
358 %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs.tiff
359 %{_libdir}/GNUstep/Apps/WPrefs.app/WPrefs.xpm
360
361 %files libs
362 %defattr(644,root,root,755)
363 %attr(755,root,root) %{_libdir}/lib*.so.*.*
364 %{_datadir}/WINGs
365
366 %files devel
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_bindir}/get-wings-flags
369 %attr(755,root,root) %{_bindir}/get-wraster-flags
370 %attr(755,root,root) %{_bindir}/get-wutil-flags
371 %attr(755,root,root) %{_libdir}/lib*.so
372 %{_libdir}/lib*.la
373 %{_includedir}/*
374 %{_pkgconfigdir}/*.pc
375
376 %files static
377 %defattr(644,root,root,755)
378 %{_libdir}/lib*.a
This page took 0.124956 seconds and 4 git commands to generate.