# 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: 2.2.3
+Version: 2.2.4
Release: 0.1
License: GPL v2+
Vendor: The AfterStep Team (see TEAM in docdir)
Group: X11/Window Managers
Source0: ftp://ftp.afterstep.org/stable/%{name}-%{version}.tar.bz2
-# Source0-md5: c4dd1739a3e76599815d91f0212d1a43
+# Source0-md5: a382ad2fd2947d26010d1ec5f6a80392
#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/
-BuildRequires: XFree86-devel
-BuildRequires: autoconf
+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)
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+cp -f autoconf/configure*.in .
%build
-cp -f autoconf/* .
%{__aclocal}
%{__autoconf}
+%{__autoheader}
+cd libAfterBase
+%{__autoconf}
+%{__autoheader}
+cd ../libAfterImage
+%{__autoconf}
+%{__autoheader}
+cd ..
%configure \
+ %{!?with_mmx:--disable-mmx-optimization} \
+ --enable-i18n \
+ --enable-sharedlibs \
+ --with-gif \
--with-helpcommand="xterm -e man" \
- --with-xpm \
- --with-png \
--with-jpeg \
- --enable-i18n
+ --with-png \
+ --with-xpm
%{__make}
sgml2html doc/afterstep.sgml
%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 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/*
# ???
-%{_mandir}/man3/*
+#%%{_mandir}/man3/*