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