+# TODO: what are man3 pages?
+# if not API docs - shouldn't be in another section?
+# if API docs - no devel files are installed (well, except perl, but AFAICS perl is not installed at all)
+#
+# Conditional build:
+%bcond_with mmx # use MMX
+#
+%ifarch pentium3 pentium4 athlon %{x8664}
+%define with_mmx 1
+%endif
Summary: AfterStep Window Manager
+Summary(ja): AfterStep ¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã (NeXTÉ÷)
+Summary(pl): AfterStep - zarz±dca okien
Name: AfterStep
-Version: 1.7.126
-Release: 1
-Copyright: GPL
-Group: X11/Window Managers
-Group(pl): X11/Zarz±dcy okien
+Version: 2.2.3
+Release: 0.2
+License: GPL v2+
Vendor: The AfterStep Team (see TEAM in docdir)
-Source: ftp://ftp.afterstep.org/devel/snapshots/%{name}-%{version}.tar.bz2
-Patch: AfterStep-Wharf_maxsize.patch
+Group: X11/Window Managers
+Source0: ftp://ftp.afterstep.org/stable/%{name}-%{version}.tar.bz2
+# Source0-md5: c4dd1739a3e76599815d91f0212d1a43
+#Source1: %{name}.RunWM
+Source3: %{name}-xsession.desktop
+Patch0: %{name}-no_bash_fix.patch
+Patch1: %{name}-install_man.patch
+Patch2: %{name}-opt.patch
+Patch3: %{name}-link.patch
URL: http://www.afterstep.org/
-BuildRoot: /tmp/%{name}-%{version}-root
+BuildRequires: autoconf >= 2.59-9
+BuildRequires: automake
+BuildRequires: giflib-devel
+BuildRequires: gtk+2-devel >= 1:2.0.0
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+BuildRequires: pkgconfig
+BuildRequires: sgml-tools
+BuildRequires: xorg-lib-libXext-devel
+BuildRequires: xorg-lib-libXinerama-devel
+#Requires: wmconfig >= 0.9.9-5
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
-%define _mandir /usr/X11R6/man
+%define _wmpropsdir /usr/share/wm-properties
%description
AfterStep is a continuation of the BowMan window manager which was
-originally put together by Bo Yang. BowMan was based on the fvwm window
-manager, written by Robert Nation. Fvwm was based on code from twm. And so
-on... It was originally designed to emulate some of the look and feel of the
-NEXTSTEP user interface, but has since taken steps towards adding more
-useful, requested, and neat features especially in 1.4 version ! The changes
-which comprise AfterStep's personality were originally part of bowman
-development, but due to a desire to move past simple emulation and into a
-niche as its own valuable window manager, AfterStep designers decided to
-change the project name and move on.
+originally put together by Bo Yang. BowMan was based on the fvwm
+window manager, written by Robert Nation. Fvwm was based on code from
+twm. And so on... It was originally designed to emulate some of the
+look and feel of the NEXTSTEP user interface, but has since taken
+steps towards adding more useful, requested, and neat features
+especially in 1.4 version! The changes which comprise AfterStep's
+personality were originally part of BowMan development, but due to a
+desire to move past simple emulation and into a niche as its own
+valuable window manager, AfterStep designers decided to change the
+project name and move on.
Important features of AfterStep include:
+- 1. Wharf: a free-floating application loader which can "Swallow"
+ running programs and also can contain "Folders" of more
+ applications.
+- 2. Gradient filled TitleBars with 5 button: help/zap, action/tasks,
+ iconize/maximise, shade/stick & close/destroy buttons
+- 3. Gradient filled root window PopUp menus which can be configured
+ to accomodate different tastes and styles of management
+- 4. NEXTSTEP style icons which give a consistent look to the entire
+ desktop
+- 5. Pixmapped Pager with desktop pixmmaping
+- 6. Easy to use look files, to share you desktop appearance with your
+ friends
+- 7. Start menu entries in a hierarchy of directories
+- 8. WinList: a tasklist which can be horizontal or vertical
+- 9. Many modules & asapps to give a good look to your X window
+ station
-1. Wharf: a free-floating application loader which can "Swallow" running
- programs and also can contain "Folders" of more applications.
-2. Gradient filled TitleBars with 5 button : help/zap, action/tasks,
- iconize/maximise, shade/stick & close/destroy buttons
-3. Gradient filled root window PopUp menus which can be configured to
- accomodate different tastes and styles of management
-4. NEXTSTEP style icons which give a consistent look to the entire desktop
-5. Pixmapped Pager with desktop pixmmaping
-6. Easy to use look files, to share you desktop appearance with your friends
-7. Start menu entries in a hierarchy of directories
-8. WinList : a tasklist which can be horizontal or vertical
-9. Many modules & asapps to give a good look to your X window station
+%description -l pl
+AfterStep jest kontynuacj± zarz±dcy okienek o nazwie BowMan, który
+zosta³ opracowany przez Bo Yanga. BowMan bazowa³ na innym zarz±dcy
+okien o nazwie fvwm napisanym przez Roberta Nationa, a sam fvwm
+bazowa³ na kodzie ¼ród³owym zarz±dcy okien twm. I tak dalej...
+AfterStep pocz±tkowo mia³ imitowaæ czê¶æ zachowania interfejsu
+u¿ytkownika NEXTSTEP, ale potem rozwin±³ siê w kierunku dodawania
+bardziej przydatnych, po¿±danych i przyjemnych mo¿liwo¶ci, szczególnie
+w wersji 1.4. Zmiany obejmuj±ce osobowo¶æ AfterStepa by³y pocz±tkowo
+czê¶ci± rozwoju BowMana, ale ze wzglêdu na chêæ wykroczenia poza
+prost± imitacjê do niszy samodzielnego warto¶ciowego zarz±dcy okien,
+projektanci AfterStepa zdecydowali siê zmieniæ nazwê.
+
+Najwa¿niejsze cechy AfterStepa obejmuj±:
+- 1. Dok - obiekt do ³adowania aplikacji mog±cy "po³ykaæ" uruchomione
+ programy i zawieraæ "foldery" wiêkszej liczby aplikacji
+- 2. Wype³nione gradientem paski tytu³owe z 5 przyciskami:
+ pomoc/zabicie, akcja/zadania, ikona/maksymalizacja,
+ cieñ/przyklejenie oraz zamkniêcie/zniszczenie
+- 3. Wype³nione gradientem wyskakuj±ce menu w g³ównym oknie,
+ konfigurowalne aby sprostaæ ró¿nym smakom i stylom zarz±dzania
+- 4. Ikony w stylu NEXTSTEPA daj±ce spójny wygl±d ca³ego pulpitu
+- 5. Pager z pixmapami pulpitu
+- 6. £atwe w u¿yciu pliki wygl±du, dziêki którym mo¿na dzieliæ wygl±d
+ pulpitu z kolegami
+- 7. Wpisy menu Start o hierarchii katalogowej
+- 8. WinList - pozioma lub pionowa lista zadañ
+- 9. Wiele modu³ów i aplikacji AfterStepa (asapps) daj±cych dobry
+ wygl±d stacji X Window
%prep
%setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+cp -f autoconf/configure*.in .
%build
-LDFLAGS="-s"; export LDFLAGS
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+cd libAfterBase
+%{__autoconf}
+%{__autoheader}
+cd ../libAfterImage
+%{__autoconf}
+%{__autoheader}
+cd ..
%configure \
- --with-imageloader="xv -root -quit" \
+ %{!?with_mmx:--disable-mmx-optimization} \
+ --enable-i18n \
+ --enable-sharedlibs \
+ --with-gif \
--with-helpcommand="xterm -e man" \
- --disable-availability \
- --enable-makemenusonboot \
- --enable-different-looknfeels \
- --with-xpm
+ --with-jpeg \
+ --with-png \
+ --with-xpm
-make
+%{__make}
sgml2html doc/afterstep.sgml
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_wmpropsdir},%{_datadir}/xsessions,/etc/sysconfig/wmstyle}
-make install install.man DESTDIR=$RPM_BUILD_ROOT
+%{__make} install install.man \
+ DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT/%{_bindir}/{sessreg,xpmroot}
-rm -rf $RPM_BUILD_ROOT/%{_datadir}/afterstep/doc
+install AfterStep.desktop $RPM_BUILD_ROOT%{_wmpropsdir}
-gzip -9nf UPGRADE NEW README TEAM README.RedHat doc/languages/* \
- $RPM_BUILD_ROOT/%{_mandir}/man1/*
+#install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/afterstep.sh
+install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/xsessions/AfterStep.desktop
+
+rm -f $RPM_BUILD_ROOT%{_bindir}/{sessreg,xpmroot}
+rm -rf $RPM_BUILD_ROOT%{_datadir}/afterstep/doc
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%doc doc/code doc/languages TODO *.html
-%doc {UPGRADE,NEW,README,TEAM,README.RedHat}.gz
+%doc UPGRADE NEW README TEAM README.RedHat doc/languages/*
+#%attr(755,root,root) /etc/sysconfig/wmstyle/*.sh
%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/libAfter*.so.*.*
+%{_wmpropsdir}/AfterStep.desktop
%{_datadir}/afterstep
+%{_datadir}/xsessions/AfterStep.desktop
%{_mandir}/man1/*
-
-%changelog
+# ???
+%{_mandir}/man3/*