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