]> git.pld-linux.org Git - packages/WindowMaker.git/blob - WindowMaker.spec
- tabs in preamble
[packages/WindowMaker.git] / WindowMaker.spec
1 %define         extraver        0.1
2
3 Summary:        NeXT-alike window manager
4 Summary(es.UTF-8):      Administrador de Ventanas parecido con el NeXT
5 Summary(fr.UTF-8):      Gestionnaire de fenêtres avec le look NeXT
6 Summary(pl.UTF-8):      Zarządca okien w stylu NeXT
7 Summary(pt_BR.UTF-8):   Gerente de Janelas parecido com o NeXT
8 Summary(ru.UTF-8):      WindowMaker - оконный менеджер для X11
9 Summary(uk.UTF-8):      WindowMaker - віконний менеджер для X11
10 Name:           WindowMaker
11 Version:        0.92.0
12 Release:        1
13 License:        GPL
14 Group:          X11/Window Managers
15 Source0:        ftp://windowmaker.info/pub/source/release/%{name}-%{version}.tar.gz
16 # Source0-md5:  678cb4a9b22a557cfb524dc3cb457c08
17 Source1:        %{name}-data.tar.gz
18 # Source1-md5:  6ea0c37314ea9e9ab27e8bdf45a31a82
19 Source2:        ftp://windowmaker.info/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.info/
37 BuildRequires:  autoconf
38 BuildRequires:  automake
39 BuildRequires:  gettext-devel
40 BuildRequires:  libjpeg-devel >= 6b
41 BuildRequires:  libpng-devel >= 1.0.8
42 BuildRequires:  libtiff-devel
43 BuildRequires:  libtool >= 1:1.4.2-9
44 BuildRequires:  libungif-devel
45 BuildRequires:  perl-base
46 BuildRequires:  xorg-lib-libXext-devel
47 BuildRequires:  xorg-lib-libXft-devel
48 BuildRequires:  xorg-lib-libXpm-devel
49 Requires:       %{name}-libs = %{version}-%{release}
50 Requires:       cpp
51 Requires:       gnustep-dirs
52 Requires:       tk
53 Requires:       vfmg >= 0.9.95
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.UTF-8
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.UTF-8
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.UTF-8
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.UTF-8
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.UTF-8
119 WindowMaker - это оконный менеджер, эмулирующий часть экранной среды
120 NEXTSTEP(tm). Подразумевается что он относительно невелик, быстр,
121 богат возможностями, легко настраивается и имеет простую и элегантную
122 внешность, позаимствованную у NEXTSTEP(tm).
123
124 %description -l uk.UTF-8
125 WindowMaker - це віконний менеджер, що емулює інтерфейс екранного
126 середовища NEXTSTEP(tm). Його вважають відносно невеликим, швидким,
127 багатим можливостями, легким для налагодження; він має просту та
128 елегантну зовнішність, запозичену в NEXTSTEP(tm).
129
130 %package libs
131 Summary:        WindowMaker shared libraries
132 Summary(pl.UTF-8):      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.UTF-8
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.UTF-8):      Bibliotecas y archivos de inclusión para WindowMaker
146 Summary(fr.UTF-8):      Librairies de WindowMaker
147 Summary(pl.UTF-8):      Biblioteki WindowMakera - część dla programistów
148 Summary(pt_BR.UTF-8):   Arquivos de inclusão e bibliotecas para o WindowMaker
149 Summary(ru.UTF-8):      Библиотеки поддержки и .h файлы для WindowMaker
150 Summary(uk.UTF-8):      Бібліотеки підтримки та .h файли для WindowMaker
151 Group:          Development/Libraries
152 Requires:       %{name}-libs = %{version}-%{release}
153 Requires:       xorg-lib-libXext-devel
154 Requires:       xorg-lib-libXft-devel
155 Requires:       xorg-lib-libXpm-devel
156 Obsoletes:      libwraster2-devel
157
158 %description devel
159 This package contains libraries for building WindowMaker-enhanced
160 applications.
161
162 %description devel -l es.UTF-8
163 Bibliotecas, archivos de inclusión, e etc. para desarrollar
164 aplicaciones WindowMaker
165
166 %description devel -l fr.UTF-8
167 Ce paquet contient des librairies pour faire des applications mise en
168 valeur par WindowMaker.
169
170 %description devel -l pl.UTF-8
171 Ten pakiet zawiera pliki nagłówkowe i biblioteki niezbędne do
172 tworzenia aplikacji wykorzystujących możliwości zarządcy okien
173 WindowMaker.
174
175 %description devel -l pt_BR.UTF-8
176 Arquivos de inclusão e bibliotecas para o desenvolvimento de programas
177 baseados no WindowMaker
178
179 %description devel -l ru.UTF-8
180 Этот пакет содержит библиотеки и .h файлы, предназначенные для сборки
181 приложений, использующих возможности WindowMaker.
182
183 %description devel -l uk.UTF-8
184 Цей пакет містить бібліотеки та .h файли, призначені для прикладних
185 програм, що використовують можливості WindowMaker.
186
187 %package static
188 Summary:        WindowMaker static libraries
189 Summary(pl.UTF-8):      Biblioteki statyczne WindowMakera
190 Summary(ru.UTF-8):      Статические библиотеки поддержки для WindowMaker
191 Summary(uk.UTF-8):      Статичні бібліотеки підтримки для WindowMaker
192 Group:          Development/Libraries
193 Summary(pt_BR.UTF-8):   Componentes estáticos de desenvolvimento para o WindowMaker
194 Requires:       %{name}-devel = %{version}-%{release}
195
196 %description static
197 This package contains static libraries for building
198 WindowMaker-enhanced applications.
199
200 %description static -l pl.UTF-8
201 Ten pakiet zawiera statyczne biblioteki do tworzenia aplikacji
202 wykorzystujących możliwości zarządcy okien WindowMaker.
203
204 %description static -l pt_BR.UTF-8
205 Instale este pacote se você deseja desenvolver para o WindowMaker,
206 utilizando componentes estáticos (raramente necessário).
207
208 %description static -l ru.UTF-8
209 Этот пакет содержит статические библиотеки предназначенные для сборки
210 приложений, использующих возможности WindowMaker.
211
212 %description static -l uk.UTF-8
213 Цей пакет містить статичні бібліотеки, призначені для прикладних
214 програм, що використовують можливості WindowMaker.
215
216 %prep
217 %setup -q -a 1 -a 2
218 %patch0 -p1
219 %patch1 -p1
220 %patch2 -p1
221 %patch3 -p1
222 %patch4 -p1
223 %patch5 -p1
224 %patch6 -p1
225 %patch7 -p1
226 %patch8 -p1
227 %patch9 -p1
228 %patch10 -p1
229 %patch11 -p1
230 %patch12 -p0
231
232 for f in WindowMaker/*menu*; do
233         sed -i s,/usr/lib/GNUstep/,%{_libdir}/GNUstep/, $f
234         sed -i s,/usr/local/GNUstep/,%{_libdir}/GNUstep/, $f
235 done
236
237 mv -f po/{no,nb}.po
238
239 %build
240 #%ifarch %{x8664}
241 # hack, should be obsolete - needs check
242 #export ac_cv_c_inline_asm=no
243 #%endif
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         --with-gnustepdir=%{_libdir}/GNUstep \
271         --enable-sound \
272         --enable-gnome \
273         --enable-kde
274
275 touch WindowMaker/Defaults/W*.in
276
277 %{__make} \
278         CFLAGS="%{rpmcflags}" \
279         LDFLAGS="%{rpmldflags}"
280
281 %{__autoconf}
282 cd %{name}-extra-%{extraver}
283 %configure \
284         --with-nlsdir=%{_datadir}/locale \
285         --with-iconsdir=%{_datadir}/pixmaps
286
287 %install
288 rm -rf $RPM_BUILD_ROOT
289 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_pixmapsdir},%{_wmpropsdir}} \
290         $RPM_BUILD_ROOT/etc/sysconfig/wmstyle \
291         $RPM_BUILD_ROOT%{_datadir}/WindowMaker/{Sounds,SoundSets}
292
293 %{__make} install \
294         DESTDIR=$RPM_BUILD_ROOT
295
296 install util/bughint $RPM_BUILD_ROOT%{_bindir}
297
298 install contrib/dockit   $RPM_BUILD_ROOT%{_bindir}
299 install contrib/dockit.1 $RPM_BUILD_ROOT%{_mandir}/man1
300
301 install WindowMaker-data/pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
302 install %{SOURCE3} $RPM_BUILD_ROOT%{_wmpropsdir}
303
304 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/xsessions/WindowMaker.desktop
305
306 %{__make} -C %{name}-extra-%{extraver} install \
307         DESTDIR=$RPM_BUILD_ROOT
308
309 %find_lang %{name} --all-name
310
311 %clean
312 rm -rf $RPM_BUILD_ROOT
313
314 %post   libs -p /sbin/ldconfig
315 %postun libs -p /sbin/ldconfig
316
317 %files -f %{name}.lang
318 %defattr(644,root,root,755)
319 %doc AUTHORS BUGFORM BUGS ChangeLog FAQ NEWS README
320
321 %dir %{_sysconfdir}/WindowMaker
322 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/WindowMaker/*
323
324 %{_mandir}/man1/*
325 %lang(sk) %{_mandir}/sk/man1/*
326
327 %{_pixmapsdir}/*
328 %{_wmpropsdir}/WindowMaker.desktop
329
330 %attr(755,root,root) %{_bindir}/convertfonts
331 %attr(755,root,root) %{_bindir}/bughint
332 %attr(755,root,root) %{_bindir}/geticonset
333 %attr(755,root,root) %{_bindir}/getstyle
334 %attr(755,root,root) %{_bindir}/seticons
335 %attr(755,root,root) %{_bindir}/setstyle
336 %attr(755,root,root) %{_bindir}/wdwrite
337 %attr(755,root,root) %{_bindir}/wdread
338 %attr(755,root,root) %{_bindir}/wkdemenu.pl
339 %attr(755,root,root) %{_bindir}/wm-oldmenu2new
340 %attr(755,root,root) %{_bindir}/wmagnify
341 %attr(755,root,root) %{_bindir}/wmaker
342 %attr(755,root,root) %{_bindir}/wmaker.inst
343 %attr(755,root,root) %{_bindir}/wmsetbg
344 %attr(755,root,root) %{_bindir}/wmsetup
345 %attr(755,root,root) %{_bindir}/wxcopy
346 %attr(755,root,root) %{_bindir}/wxpaste
347 %attr(755,root,root) %{_bindir}/dockit
348
349 %{_datadir}/WindowMaker
350 %{_datadir}/xsessions/WindowMaker.desktop
351
352 # the first one is shared with gnustep-make...
353 %dir %{_libdir}/GNUstep/Applications
354 %dir %{_libdir}/GNUstep/Applications/WPrefs.app
355
356 %attr(755,root,root) %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs
357
358 %{_libdir}/GNUstep/Applications/WPrefs.app/tiff
359 %{_libdir}/GNUstep/Applications/WPrefs.app/xpm
360 %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs.tiff
361 %{_libdir}/GNUstep/Applications/WPrefs.app/WPrefs.xpm
362
363 %files libs
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %{_libdir}/lib*.so.*.*
366 %{_datadir}/WINGs
367
368 %files devel
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{_bindir}/get-wings-flags
371 %attr(755,root,root) %{_bindir}/get-wraster-flags
372 %attr(755,root,root) %{_bindir}/get-wutil-flags
373 %attr(755,root,root) %{_libdir}/lib*.so
374 %{_libdir}/lib*.la
375 %{_includedir}/*
376 %{_pkgconfigdir}/*.pc
377
378 %files static
379 %defattr(644,root,root,755)
380 %{_libdir}/lib*.a
This page took 0.054326 seconds and 4 git commands to generate.