3 %bcond_with mmx # use MMX
4 %bcond_with gnome2 # build with support for GNOME2 wm-properties
5 %bcond_without opengl # GLX support
7 %ifarch pentium3 pentium4 athlon %{x8664}
10 %define afterstep_ver 2.2.12
11 # versions from libAfter{Base,Image}/configure.in respectively
12 %define afterbase_ver 1.14
13 %define afterimage_ver 1.21
14 Summary: AfterStep Window Manager
15 Summary(ja.UTF-8): AfterStep ウィンドウマネージャ (NeXT風)
16 Summary(pl.UTF-8): AfterStep - zarządca okien
18 Version: %{afterstep_ver}
21 Group: X11/Window Managers
22 Source0: ftp://ftp.afterstep.org/stable/%{name}-%{version}.tar.bz2
23 # Source0-md5: a3ab1a878270998d420bb2a5ca15801b
24 #Source1: %{name}.RunWM
25 Source3: %{name}-xsession.desktop
26 Patch0: %{name}-no_bash_fix.patch
27 Patch1: %{name}-ldconfig.patch
28 Patch2: %{name}-opt.patch
29 Patch3: %{name}-link.patch
30 Patch4: %{name}-ac.patch
31 Patch5: %{name}-inline.patch
32 Patch6: %{name}-ar.patch
33 URL: http://www.afterstep.org/
34 %{?with_opengl:BuildRequires: OpenGL-devel}
35 BuildRequires: alsa-lib-devel >= 0.9
36 BuildRequires: autoconf >= 2.59-9
37 BuildRequires: automake
38 BuildRequires: dbus-devel >= 0.22
39 BuildRequires: fltk-devel
40 BuildRequires: freetype-devel >= 2.0
41 BuildRequires: gdk-pixbuf2-devel >= 2.0
42 BuildRequires: giflib-devel
43 BuildRequires: glib2-devel >= 2.0.0
44 BuildRequires: gtk+2-devel >= 1:2.0.0
45 BuildRequires: libjpeg-devel
46 BuildRequires: libpng-devel
47 BuildRequires: librsvg-devel >= 2.0.0
48 BuildRequires: libtiff-devel
49 BuildRequires: ncurses-devel
50 BuildRequires: pkgconfig
51 BuildRequires: readline-devel
52 BuildRequires: sgml-tools
53 BuildRequires: xorg-lib-libX11-devel
54 BuildRequires: xorg-lib-libXext-devel
55 BuildRequires: xorg-lib-libXinerama-devel
56 Requires: libAfterBase = %{afterbase_ver}-%{release}
57 Requires: libAfterImage = %{afterimage_ver}-%{release}
58 #Requires: wmconfig >= 0.9.9-5
59 Conflicts: filesystem < 3.0-20
60 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 %define _wmpropsdir /usr/share/gnome/wm-properties
65 AfterStep is a continuation of the BowMan window manager which was
66 originally put together by Bo Yang. BowMan was based on the fvwm
67 window manager, written by Robert Nation. Fvwm was based on code from
68 twm. And so on... It was originally designed to emulate some of the
69 look and feel of the NEXTSTEP user interface, but has since taken
70 steps towards adding more useful, requested, and neat features
71 especially in 1.4 version! The changes which comprise AfterStep's
72 personality were originally part of BowMan development, but due to a
73 desire to move past simple emulation and into a niche as its own
74 valuable window manager, AfterStep designers decided to change the
75 project name and move on.
77 Important features of AfterStep include:
78 - 1. Wharf: a free-floating application loader which can "Swallow"
79 running programs and also can contain "Folders" of more
81 - 2. Gradient filled TitleBars with 5 button: help/zap, action/tasks,
82 iconize/maximise, shade/stick & close/destroy buttons
83 - 3. Gradient filled root window PopUp menus which can be configured
84 to accomodate different tastes and styles of management
85 - 4. NEXTSTEP style icons which give a consistent look to the entire
87 - 5. Pixmapped Pager with desktop pixmmaping
88 - 6. Easy to use look files, to share you desktop appearance with your
90 - 7. Start menu entries in a hierarchy of directories
91 - 8. WinList: a tasklist which can be horizontal or vertical
92 - 9. Many modules & asapps to give a good look to your X window
95 %description -l pl.UTF-8
96 AfterStep jest kontynuacją zarządcy okienek o nazwie BowMan, który
97 został opracowany przez Bo Yanga. BowMan bazował na innym zarządcy
98 okien o nazwie fvwm napisanym przez Roberta Nationa, a sam fvwm
99 bazował na kodzie źródłowym zarządcy okien twm. I tak dalej...
100 AfterStep początkowo miał imitować część zachowania interfejsu
101 użytkownika NEXTSTEP, ale potem rozwinął się w kierunku dodawania
102 bardziej przydatnych, pożądanych i przyjemnych możliwości, szczególnie
103 w wersji 1.4. Zmiany obejmujące osobowość AfterStepa były początkowo
104 częścią rozwoju BowMana, ale ze względu na chęć wykroczenia poza
105 prostą imitację do niszy samodzielnego wartościowego zarządcy okien,
106 projektanci AfterStepa zdecydowali się zmienić nazwę.
108 Najważniejsze cechy AfterStepa obejmują:
109 - 1. Dok - obiekt do ładowania aplikacji mogący "połykać" uruchomione
110 programy i zawierać "foldery" większej liczby aplikacji
111 - 2. Wypełnione gradientem paski tytułowe z 5 przyciskami:
112 pomoc/zabicie, akcja/zadania, ikona/maksymalizacja,
113 cień/przyklejenie oraz zamknięcie/zniszczenie
114 - 3. Wypełnione gradientem wyskakujące menu w głównym oknie,
115 konfigurowalne aby sprostać różnym smakom i stylom zarządzania
116 - 4. Ikony w stylu NEXTSTEPA dające spójny wygląd całego pulpitu
117 - 5. Pager z pixmapami pulpitu
118 - 6. Łatwe w użyciu pliki wyglądu, dzięki którym można dzielić wygląd
120 - 7. Wpisy menu Start o hierarchii katalogowej
121 - 8. WinList - pozioma lub pionowa lista zadań
122 - 9. Wiele modułów i aplikacji AfterStepa (asapps) dających dobry
123 wygląd stacji X Window
126 Summary: Development files for AfterStep libraries
127 Summary(pl.UTF-8): Pliki programistyczne bibliotek AfterStepa
128 Group: Development/Libraries
129 Requires: libAfterBase-devel = %{afterbase_ver}-%{release}
130 Requires: libAfterImage-devel = %{afterimage_ver}-%{release}
131 # doesn't require main
134 Header files together with miscellaneous AfterStep static libraries:
135 libASGTK, libAfterConf, libAfterStep.
137 %description devel -l pl.UTF-8
138 Pliki nagłówkowe oraz różne statyczne biblioteki AfterStepa:
139 libASGTK, libAfterConf, libAfterStep.
141 %package -n libAfterBase
142 Summary: AfterStep base functions library
143 Summary(pl.UTF-8): Biblioteka podstawowych funkcji AfterStepa
144 Version: %{afterbase_ver}
146 Conflicts: AfterStep < 2.2.11-0.3
148 %description -n libAfterBase
149 AfterStep base functions library.
151 %description -n libAfterBase -l pl.UTF-8
152 Biblioteka podstawowych funkcji AfterStepa.
154 %package -n libAfterBase-devel
155 Summary: Header files for AfterBase library
156 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AfterBase
157 Version: %{afterbase_ver}
158 Group: Development/Libraries
159 Requires: libAfterBase = %{afterbase_ver}-%{release}
160 Requires: xorg-lib-libX11-devel
162 %description -n libAfterBase-devel
163 Header files for AfterBase library.
165 %description -n libAfterBase-devel -l pl.UTF-8
166 Pliki nagłówkowe biblioteki AfterBase.
168 %package -n libAfterBase-static
169 Summary: Static AfterBase library
170 Summary(pl.UTF-8): Statyczna biblioteka AfterBase
171 Version: %{afterbase_ver}
172 Group: Development/Libraries
173 Requires: libAfterBase-devel = %{afterbase_ver}-%{release}
175 %description -n libAfterBase-static
176 Static AfterBase library.
178 %description -n libAfterBase-static -l pl.UTF-8
179 Statyczna biblioteka AfterBase.
181 %package -n libAfterImage
182 Summary: AfterStep image functions library
183 Summary(pl.UTF-8): Biblioteka graficznych funkcji AfterStepa
184 Version: %{afterimage_ver}
186 Requires: libAfterBase = %{afterbase_ver}-%{release}
188 %description -n libAfterImage
189 AfterStep image functions library.
191 %description -n libAfterImage -l pl.UTF-8
192 Biblioteka graficznych funkcji AfterStepa.
194 %package -n libAfterImage-devel
195 Summary: Header files for AfterImage library
196 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AfterImage
197 Version: %{afterimage_ver}
198 Group: Development/Libraries
199 Requires: libAfterBase-devel = %{afterbase_ver}-%{release}
200 Requires: libAfterImage = %{afterimage_ver}-%{release}
201 Requires: freetype-devel >= 2.0
202 Requires: gdk-pixbuf2-devel >= 2.0
203 Requires: giflib-devel
204 Requires: libjpeg-devel
205 Requires: libpng-devel
206 Requires: librsvg-devel >= 2.0.0
207 Requires: libtiff-devel
208 Requires: xorg-lib-libXext-devel
210 %description -n libAfterImage-devel
211 Header files for AfterImage library.
213 %description -n libAfterImage-devel -l pl.UTF-8
214 Pliki nagłówkowe biblioteki AfterImage.
216 %package -n libAfterImage-static
217 Summary: Static AfterImage library
218 Summary(pl.UTF-8): Statyczna biblioteka AfterImage
219 Version: %{afterimage_ver}
220 Group: Development/Libraries
221 Requires: libAfterImage-devel = %{afterimage_ver}-%{release}
223 %description -n libAfterImage-static
224 Static AfterImage library.
226 %description -n libAfterImage-static -l pl.UTF-8
227 Statyczna biblioteka AfterImage.
230 %setup -q -n afterstep-devel-%{afterstep_ver}
239 #cp -f autoconf/configure*.in .
245 %{__autoconf} -I autoconf autoconf/configure.in > autoconf/configure
246 %{__autoconf} -I autoconf autoconf/configure.libs.in > autoconf/configure.libs
247 chmod 755 autoconf/configure autoconf/configure.libs
248 %{__mv} autoconf/configure autoconf/configure.libs .
249 %{__autoheader} autoconf/configure.in
258 %{!?with_mmx:--disable-mmx-optimization} \
259 %{?with_opengl:--enable-glx} \
261 --enable-sharedlibs \
263 --with-helpcommand="xterm -e man" \
270 sgml2html doc/afterstep.sgml
273 rm -rf $RPM_BUILD_ROOT
274 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,/etc/sysconfig/wmstyle}
276 # AfterStep.desktop is installed here if dir exists
277 install -d $RPM_BUILD_ROOT%{_wmpropsdir}
280 %{__make} -j1 install \
281 DESTDIR=$RPM_BUILD_ROOT
283 #cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/afterstep.sh
284 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/xsessions/AfterStep.desktop
286 # demo programs source and comments don't belong to man3 (and mans in general)
287 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{asflip,asgrad,asmerge,asscale,astext,astile,asview,common}.*
289 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/afterstep/doc
292 rm -rf $RPM_BUILD_ROOT
294 %post -n libAfterBase -p /sbin/ldconfig
295 %postun -n libAfterBase -p /sbin/ldconfig
297 %post -n libAfterImage -p /sbin/ldconfig
298 %postun -n libAfterImage -p /sbin/ldconfig
301 %defattr(644,root,root,755)
302 %doc COPYRIGHT COPYRIGHT.OLD ChangeLog NEW NEW.1.x README TEAM TODO afterstep*.html doc/languages/README.*
303 %attr(755,root,root) %{_bindir}/ASFileBrowser
304 %attr(755,root,root) %{_bindir}/ASMount
305 %attr(755,root,root) %{_bindir}/ASRun
306 %attr(755,root,root) %{_bindir}/ASWallpaper
307 %attr(755,root,root) %{_bindir}/Animate
308 %attr(755,root,root) %{_bindir}/Arrange
309 %attr(755,root,root) %{_bindir}/Banner
310 %attr(755,root,root) %{_bindir}/GWCommand
311 %attr(755,root,root) %{_bindir}/Ident
312 %attr(755,root,root) %{_bindir}/MonitorWharf
313 %attr(755,root,root) %{_bindir}/Pager
314 %attr(755,root,root) %{_bindir}/PrintDesktopEntries
315 %attr(755,root,root) %{_bindir}/Wharf
316 %attr(755,root,root) %{_bindir}/WinCommand
317 %attr(755,root,root) %{_bindir}/WinList
318 %attr(755,root,root) %{_bindir}/WinTabs
319 %attr(755,root,root) %{_bindir}/Xpm2Jpg
320 %attr(755,root,root) %{_bindir}/afterstep
321 %attr(755,root,root) %{_bindir}/afterstepdoc
322 %attr(755,root,root) %{_bindir}/ascolor
323 %attr(755,root,root) %{_bindir}/ascommand.pl
324 %attr(755,root,root) %{_bindir}/importasmenu
325 %attr(755,root,root) %{_bindir}/installastheme.pl
326 %attr(755,root,root) %{_bindir}/makeastheme.pl
327 %attr(755,root,root) %{_bindir}/postcard.sh
328 %{?with_gnome2:%{_wmpropsdir}/AfterStep.desktop}
329 #%attr(755,root,root) /etc/sysconfig/wmstyle/*.sh
330 %{_datadir}/afterstep
331 %{_datadir}/xsessions/AfterStep.desktop
332 %{_mandir}/man1/ASDatabase.1x*
333 %{_mandir}/man1/ASDatabaseEntry.1x*
334 %{_mandir}/man1/AfterStep.1x*
335 %{_mandir}/man1/Align.1x*
336 %{_mandir}/man1/Animate.1x*
337 %{_mandir}/man1/AnimateTypes.1x*
338 %{_mandir}/man1/Arrange.1x*
339 %{_mandir}/man1/AutoExec.1x*
340 %{_mandir}/man1/BalloonContents.1x*
341 %{_mandir}/man1/Base.1x*
342 %{_mandir}/man1/Bevel.1x*
343 %{_mandir}/man1/ColorScheme.1x*
344 %{_mandir}/man1/Feel.1x*
345 %{_mandir}/man1/FeelWindowBox.1x*
346 %{_mandir}/man1/Functions.1x*
347 %{_mandir}/man1/Gravity.1x*
348 %{_mandir}/man1/Look.1x*
349 %{_mandir}/man1/MyBackground.1x*
350 %{_mandir}/man1/MyFrame.1x*
351 %{_mandir}/man1/MyStyle.1x*
352 %{_mandir}/man1/Pager.1x*
353 %{_mandir}/man1/PagerDecorations.1x*
354 %{_mandir}/man1/Placement.1x*
355 %{_mandir}/man1/Sound.1x*
356 %{_mandir}/man1/SoundEvents.1x*
357 %{_mandir}/man1/SupportedHints.1x*
358 %{_mandir}/man1/TbarLayout.1x*
359 %{_mandir}/man1/Wharf.1x*
360 %{_mandir}/man1/WharfFolders.1x*
361 %{_mandir}/man1/WharfSounds.1x*
362 %{_mandir}/man1/WinCommand.1x*
363 %{_mandir}/man1/WinList.1x*
364 %{_mandir}/man1/WinTabs.1x*
365 %{_mandir}/man1/afterstep_faq.1x*
366 %{_mandir}/man1/asimagexml.1x*
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{_bindir}/afterstep-config
371 %attr(755,root,root) %{_bindir}/asgtk-config
372 %{_libdir}/libASGTK.a
373 %{_libdir}/libAfterConf.a
374 %{_libdir}/libAfterStep.a
375 %{_includedir}/libASGTK
376 %{_includedir}/libAfterConf
377 %{_includedir}/libAfterStep
379 %files -n libAfterBase
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_libdir}/libAfterBase.so.*.*
382 %attr(755,root,root) %ghost %{_libdir}/libAfterBase.so.0
384 %files -n libAfterBase-devel
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/libAfterBase.so
387 %{_includedir}/libAfterBase
389 %files -n libAfterBase-static
390 %defattr(644,root,root,755)
391 %{_libdir}/libAfterBase.a
393 %files -n libAfterImage
394 %defattr(644,root,root,755)
395 %attr(755,root,root) %{_bindir}/ascheckttf
396 %attr(755,root,root) %{_bindir}/ascompose
397 %attr(755,root,root) %{_bindir}/asflip
398 %attr(755,root,root) %{_bindir}/asgrad
399 %attr(755,root,root) %{_bindir}/asi18n
400 %attr(755,root,root) %{_bindir}/asmerge
401 %attr(755,root,root) %{_bindir}/asscale
402 %attr(755,root,root) %{_bindir}/astext
403 %attr(755,root,root) %{_bindir}/astile
404 %attr(755,root,root) %{_bindir}/asvector
405 %attr(755,root,root) %{_bindir}/asview
406 %attr(755,root,root) %{_libdir}/libAfterImage.so.*.*
407 %attr(755,root,root) %ghost %{_libdir}/libAfterImage.so.0
409 %files -n libAfterImage-devel
410 %defattr(644,root,root,755)
411 %attr(755,root,root) %{_bindir}/afterimage-config
412 %attr(755,root,root) %{_bindir}/afterimage-libs
413 %attr(755,root,root) %{_libdir}/libAfterImage.so
414 %{_includedir}/libAfterImage
415 %{_mandir}/man3/afterimage.3x*
416 %{_mandir}/man3/ascmap.3x*
417 %{_mandir}/man3/ascompose.3x*
418 %{_mandir}/man3/asfont.3x*
419 %{_mandir}/man3/asimage.3x*
420 %{_mandir}/man3/asimagexml.3x*
421 %{_mandir}/man3/asvisual.3x*
422 %{_mandir}/man3/blender.3x*
423 %{_mandir}/man3/char2uni.3x*
424 %{_mandir}/man3/export.3x*
425 %{_mandir}/man3/imencdec.3x*
426 %{_mandir}/man3/import.3x*
427 %{_mandir}/man3/transform.3x*
428 %{_mandir}/man3/ximage.3x*
430 %files -n libAfterImage-static
431 %defattr(644,root,root,755)
432 %{_libdir}/libAfterImage.a