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