]> git.pld-linux.org Git - packages/WindowMaker.git/blob - WindowMaker.spec
- dropped pixmaps patch (Ra-specific paths)
[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.3
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}-cvs.patch
24 Patch1:         %{name}-pl.po-update.patch
25 Patch2:         %{name}-CFLAGS.patch
26 Patch3:         %{name}-vfmg.patch
27 Patch4:         %{name}-shared.patch
28 Patch5:         %{name}-IconPosition.patch
29 Patch6:         %{name}-singleclick.patch
30 Patch7:         %{name}-plmenu.patch
31 Patch8:         %{name}-dockit.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 Patch12:        %{name}-gnustep.patch
36 URL:            http://www.windowmaker.org/
37 BuildRequires:  XFree86-devel
38 BuildRequires:  autoconf
39 BuildRequires:  automake
40 BuildRequires:  gettext-devel
41 BuildRequires:  libjpeg-devel >= 6b
42 BuildRequires:  libpng-devel >= 1.0.8
43 BuildRequires:  libtiff-devel
44 BuildRequires:  libtool >= 1:1.4.2-9
45 BuildRequires:  libungif-devel
46 BuildRequires:  perl-base
47 BuildRequires:  xft-devel
48 Requires:       %{name}-libs = %{version}-%{release}
49 Requires:       cpp
50 Requires:       gnustep-dirs
51 Requires:       tk
52 Requires:       vfmg
53 Requires:       xinitrc-ng
54 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56 %define         _sysconfdir     /etc/X11
57 %define         _wmpropsdir     /usr/share/wm-properties
58
59 %description
60 Window Maker is an X11 window manager which emulates the look and feel
61 of the NeXTSTEP (TM) graphical user interface. It is relatively fast,
62 feature rich and easy to configure and use. Window Maker is part of
63 the official GNU project, which means that Window Maker can
64 interoperate with other GNU projects, such as GNOME.
65
66 Window Maker allows users to switch themes 'on the fly,' to place
67 favorite applications on either an application dock, similar to
68 AfterStep's Wharf or on a workspace dock, a 'clip' which extends the
69 application dock's usefulness.
70
71 You should install the WindowMaker package if you use Window Maker as
72 your window manager or if you'd like to try using it. If you do
73 install the WindowMaker package, you may also want to install the
74 AfterStep-APPS package, which includes applets that will work with
75 both AfterStep and Window Maker window managers.
76
77 %description -l es
78 WindowMaker es un administrador de ventanas proyectado para emular la
79 apariencia de parte de la interface de usuario del NEXTSTEP(tm). Se
80 hizo para ser rápido, relativamente pequeño, rico en características y
81 de configuración fácil, con una apariencia sencilla y elegante
82 prestada del NEXTSTEP(tm).
83
84 %description -l fr
85 Window Maker est un gestionnaire de fenêtres pour X11 qui cherche à
86 reproduire l'allure et l'ergonomie ("look & feel") de l'interface
87 graphique NeXTSTEP(tm) (aka OpenStep). Il est relativement rapide,
88 évolué, et facile à configurer et à utiliser. Window Maker fait
89 officiellement partie du projet GNU, ce qui signifie que Window Maker
90 peut coopérer avec d'autres projets GNU, comme par exemple GNOME.
91
92 Window Maker permet de changer de thèmes facilement, de placer ses
93 applications favorites soit sur un "dock" similaire au programme Wharf
94 de AfterStep, soit sur un dock intégré à l'espace de travail, appelé
95 "clip" (trombone), et qui permet d'étendre les possibilités du dock
96 principal.
97
98 Vous devriez installer ce package si votre gestionnaire de fenêtres
99 est Window Maker, ou si vous voulez l'essayer. Si vous installez le
100 package Window Maker, vous voudrez peut-être installer aussi le
101 package AfterStep-APPS, qui contient des "applets" (petites
102 applications) qui fonctionnent à la fois dans les gestionnaires de
103 fenêtres AfterStep et Window Maker.
104
105 %description -l pl
106 WindowMaker jest zarz±dc± okien przypominaj±cym wygl±dem i wygod±
107 obs³ugi interfejs systemu NeXTSTEP(tm). Jest szybki, stosunkowo ma³y,
108 o du¿ych mo¿liwo¶ciach i ³atwy w konfiguracji. Konfiguruje siê go
109 myszk±, za pomoc± programu WPrefs wchodz±cego w sk³ad tego pakietu.
110
111 %description -l pt_BR
112 WindowMaker é um gerente de janelas projetado para emular a aparência
113 de parte da interface de usuário do NEXTSTEP(tm). Feito para ser
114 rápido, relativamente pequeno, rico em características e de
115 configuração fácil, com uma aparência simples e elegante emprestada do
116 NEXTSTEP(tm).
117
118 %description -l ru
119 WindowMaker - ÜÔÏ ÏËÏÎÎÙÊ ÍÅÎÅÄÖÅÒ, ÜÍÕÌÉÒÕÀÝÉÊ ÞÁÓÔØ ÜËÒÁÎÎÏÊ ÓÒÅÄÙ
120 NEXTSTEP(tm). ðÏÄÒÁÚÕÍÅ×ÁÅÔÓÑ ÞÔÏ ÏΠÏÔÎÏÓÉÔÅÌØÎÏ ÎÅ×ÅÌÉË, ÂÙÓÔÒ,
121 ÂÏÇÁÔ ×ÏÚÍÏÖÎÏÓÔÑÍÉ, ÌÅÇËÏ ÎÁÓÔÒÁÉ×ÁÅÔÓÑ É ÉÍÅÅÔ ÐÒÏÓÔÕÀ É ÜÌÅÇÁÎÔÎÕÀ
122 ×ÎÅÛÎÏÓÔØ, ÐÏÚÁÉÍÓÔ×Ï×ÁÎÎÕÀ Õ NEXTSTEP(tm).
123
124 %description -l uk
125 WindowMaker - ÃŠצËÏÎÎÉÊ ÍÅÎÅÄÖÅÒ, ÝÏ ÅÍÕÌÀ¤ ¦ÎÔÅÒÆÅÊÓ ÅËÒÁÎÎÏÇÏ
126 ÓÅÒÅÄÏ×ÉÝÁ NEXTSTEP(tm). êÏÇÏ ××ÁÖÁÀÔؠצÄÎÏÓÎÏ ÎÅ×ÅÌÉËÉÍ, Û×ÉÄËÉÍ,
127 ÂÁÇÁÔÉÍ ÍÏÖÌÉ×ÏÓÔÑÍÉ, ÌÅÇËÉÍ ÄÌÑ ÎÁÌÁÇÏÄÖÅÎÎÑ; ×¦Î ÍÁ¤ ÐÒÏÓÔÕ ÔÁ
128 ÅÌÅÇÁÎÔÎÕ ÚÏ×ΦÛΦÓÔØ, ÚÁÐÏÚÉÞÅÎÕ × NEXTSTEP(tm).
129
130 %package libs
131 Summary:        WindowMaker shared libraries
132 Summary(pl):    Biblioteki wspó³dzielone WindowMakera
133 Group:          Libraries
134 Obsoletes:      libwraster2
135
136 %description libs
137 This package contains shared libraries for run WindowMaker.
138
139 %description libs -l pl
140 Ten pakiet zawiera biblioteki wspó³dzielone niezbêdne do pracy
141 zarz±dcy okien WindowMaker.
142
143 %package devel
144 Summary:        WindowMaker libraries - development part
145 Summary(es):    Bibliotecas y archivos de inclusión para WindowMaker
146 Summary(fr):    Librairies de WindowMaker
147 Summary(pl):    Biblioteki WindowMakera - czê¶æ dla programistów
148 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o WindowMaker
149 Summary(ru):    âÉÂÌÉÏÔÅËÉ ÐÏÄÄÅÒÖËÉ É .h ÆÁÊÌÙ ÄÌÑ WindowMaker
150 Summary(uk):    â¦Â̦ÏÔÅËɠЦÄÔÒÉÍËÉ ÔÁ .h ÆÁÊÌÉ ÄÌÑ WindowMaker
151 Group:          Development/Libraries
152 Requires:       %{name}-libs = %{version}-%{release}
153 Requires:       XFree86-devel
154 Requires:       xft-devel
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}-%{release}
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 -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
238 %build
239 #%ifarch %{x8664}
240 # hack, should be obsolete - needs check
241 #export ac_cv_c_inline_asm=no
242 #%endif
243 %{__libtoolize}
244 %{__aclocal}
245 %{__autoheader}
246 %{__automake}
247 %{__autoconf}
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-debug \
263         --disable-rpath \
264         --enable-shared \
265         --enable-static \
266         --enable-usermenu \
267         --with-appspath=%{_libdir}/GNUstep/Apps \
268         --with-nlsdir=%{_datadir}/locale \
269         --with-gnustepdir=%{_libdir}/GNUstep \
270         --enable-sound \
271         --enable-gnome \
272         --enable-kde
273
274 touch WindowMaker/Defaults/W*.in
275
276 %{__make} \
277         CFLAGS="%{rpmcflags}" \
278         LDFLAGS="%{rpmldflags}"
279
280 %{__autoconf}
281 cd %{name}-extra-%{extraver}
282 %configure \
283         --with-nlsdir=%{_datadir}/locale \
284         --with-iconsdir=%{_datadir}/pixmaps
285
286 %install
287 rm -rf $RPM_BUILD_ROOT
288 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir},%{_wmpropsdir}} \
289         $RPM_BUILD_ROOT/etc/sysconfig/wmstyle \
290         $RPM_BUILD_ROOT%{_datadir}/WindowMaker/{Sounds,SoundSets}
291
292 %{__make} install \
293         DESTDIR=$RPM_BUILD_ROOT
294
295 install util/bughint $RPM_BUILD_ROOT%{_bindir}
296
297 install contrib/dockit   $RPM_BUILD_ROOT%{_bindir}
298 install contrib/dockit.1 $RPM_BUILD_ROOT%{_mandir}/man1
299
300 install WindowMaker-data/pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
301 install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}
302
303 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
304
305 %{__make} -C %{name}-extra-%{extraver} install \
306         DESTDIR=$RPM_BUILD_ROOT
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 md5 mtime size) %{_sysconfdir}/WindowMaker/*
322
323 %{_mandir}/man1/*
324 %lang(sk) %{_mandir}/sk/man1/*
325
326 %{_pixmapsdir}/*
327 %{_wmpropsdir}/WindowMaker.desktop
328
329 %attr(755,root,root) %{_bindir}/convertfonts
330 %attr(755,root,root) %{_bindir}/bughint
331 %attr(755,root,root) %{_bindir}/geticonset
332 %attr(755,root,root) %{_bindir}/getstyle
333 %attr(755,root,root) %{_bindir}/seticons
334 %attr(755,root,root) %{_bindir}/setstyle
335 %attr(755,root,root) %{_bindir}/wdwrite
336 %attr(755,root,root) %{_bindir}/wdread
337 %attr(755,root,root) %{_bindir}/wkdemenu.pl
338 %attr(755,root,root) %{_bindir}/wm-oldmenu2new
339 %attr(755,root,root) %{_bindir}/wmagnify
340 %attr(755,root,root) %{_bindir}/wmaker
341 %attr(755,root,root) %{_bindir}/wmaker.inst
342 %attr(755,root,root) %{_bindir}/wmsetbg
343 %attr(755,root,root) %{_bindir}/wmsetup
344 %attr(755,root,root) %{_bindir}/wxcopy
345 %attr(755,root,root) %{_bindir}/wxpaste
346 %attr(755,root,root) %{_bindir}/dockit
347
348 %{_datadir}/WindowMaker
349 %{_datadir}/xsessions/WindowMaker.desktop
350
351 # the first one is shared with gnustep-make...
352 %dir %{_libdir}/GNUstep/Applications
353 %dir %{_libdir}/GNUstep/Applications/WPrefs.app
354
355 %attr(755,root,root) %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs
356
357 %{_libdir}/GNUstep/Applications/WPrefs.app/tiff
358 %{_libdir}/GNUstep/Applications/WPrefs.app/xpm
359 %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs.tiff
360 %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs.xpm
361
362 %files libs
363 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_libdir}/lib*.so.*.*
365 %{_datadir}/WINGs
366
367 %files devel
368 %defattr(644,root,root,755)
369 %attr(755,root,root) %{_bindir}/get-wings-flags
370 %attr(755,root,root) %{_bindir}/get-wraster-flags
371 %attr(755,root,root) %{_bindir}/get-wutil-flags
372 %attr(755,root,root) %{_libdir}/lib*.so
373 %{_libdir}/lib*.la
374 %{_includedir}/*
375 %{_pkgconfigdir}/*.pc
376
377 %files static
378 %defattr(644,root,root,755)
379 %{_libdir}/lib*.a
This page took 0.069111 seconds and 4 git commands to generate.