%define name AfterStep %define version 1.8.11 %define release 5mdk %define major 1 %define libname %mklibname %{name} %{major} %define libname_devel %mklibname %{name} %{major} -d %define ltitle AfterStep Window Manager Summary: %{ltitle} Name: %{name} Version: %{version} Release: %{release} Epoch: 4 License: GPL Group: Graphical desktop/Other URL: http://www.afterstep.org/ Source: ftp://ftp.afterstep.org/stable/AfterStep-%version.tar.bz2 Source1: %{name}-mdkconf.tar.bz2 Source2: %{name}.menu-method.bz2 Source3: %{name}.png.bz2 Source4: %{name}32.png.bz2 Source5: %{name}48.png.bz2 Patch2: %{name}-1.8.9-menuname.patch.bz2 Patch3: %{name}.MenuKey.patch.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Requires: mandrake_desk >= 7.2-1mdk xli # Requires: %libname = %{epoch}:%{version}-%{release} BuildRequires: XFree86-devel libxpm-devel libjpeg-devel libpng-devel zlib-devel %define __prefix /usr/X11R6 %define __bindir %{__prefix}/bin %define __mandir %{__prefix}/man %define __datadir %{__prefix}/share %define __libdir %{__prefix}/%{_lib} %description AfterStep is a Window Manager for X which started by emulating the NEXTSTEP look and feel, but which has been significantly altered according to the requests of various users. Many adepts will tell you that NEXTSTEP is not only the most visually pleasant interface, but also one of the most functional and intuitive out there. AfterStep aims to incorporate the advantages of the NEXTSTEP interface, and add additional useful features. The developers of AfterStep have also worked very hard to ensure stability and a small program footprint. Without giving up too many features, AfterStep still works nicely in environments where memory is at a premium. %package -n %libname Summary: Libraries needed by AfterStep Group: Graphical desktop/Other Provides: lib%name = %version-%release %description -n %libname AfterStep is a Window Manager for X which started by emulating the NEXTSTEP look and feel, but which has been significantly altered according to the requests of various users. Many adepts will tell you that NEXTSTEP is not only the most visually pleasant interface, but also one of the most functional and intuitive out there. AfterStep aims to incorporate the advantages of the NEXTSTEP interface, and add additional useful features. The developers of AfterStep have also worked very hard to ensure stability and a small program footprint. Without giving up too many features, AfterStep still works nicely in environments where memory is at a premium. This package contains libraries needed by AfterStep package. %package -n %libname_devel Summary: Devel files needed to build applications based on AfterStep Group: Development/C Provides: %name-devel lib%name-devel Requires: %libname = %{epoch}:%version-%release %description -n %libname_devel AfterStep is a Window Manager for X which started by emulating the NEXTSTEP look and feel, but which has been significantly altered according to the requests of various users. Many adepts will tell you that NEXTSTEP is not only the most visually pleasant interface, but also one of the most functional and intuitive out there. AfterStep aims to incorporate the advantages of the NEXTSTEP interface, and add additional useful features. The developers of AfterStep have also worked very hard to ensure stability and a small program footprint. Without giving up too many features, AfterStep still works nicely in environments where memory is at a premium. This package contains devel files needed to build applications based on AfterStep. %prep %setup -q # LMDK patches %patch2 -p1 %patch3 -p1 %build %configure --prefix=%{__prefix} \ --datadir=%{__datadir} \ --libdir=%{__libdir} \ --mandir=%{__mandir} \ --bindir=%{__bindir} \ --with-imageloader="xsetbg" \ --with-helpcommand="xterm -fn 9x15 -e man" \ --with-desktops=1 \ --with-deskgeometry=1x1 \ --enable-different-looknfeels \ --enable-i18n \ --enable-savewindows \ --enable-texture \ --enable-shade \ --enable-virtual \ --enable-saveunders \ --enable-windowlist \ --enable-availability \ --enable-shaping \ --enable-xinerama \ --disable-staticlibs \ --enable-script \ --with-xpm \ --with-jpeg \ --with-png %make if [ -x /usr/bin/sgml2html ]; then sgml2html doc/afterstep.sgml; fi %install rm -rf $RPM_BUILD_ROOT %makeinstall_std install -d $RPM_BUILD_ROOT/%{_sysconfdir}/menu-methods bzcat %SOURCE2 > $RPM_BUILD_ROOT/%{_sysconfdir}/menu-methods/%{name} chmod 755 $RPM_BUILD_ROOT/%{_sysconfdir}/menu-methods/%{name} install -d $RPM_BUILD_ROOT%{_menudir} cat << EOF >$RPM_BUILD_ROOT%{_menudir}/%{name} ?package(%{name}):needs=wm \ section="Session/Windowmanagers" \ icon="%{name}.png" \ title="%{name}" \ longtitle="%{ltitle}" \ command="afterstep" EOF # LMDK icons install -m644 %SOURCE4 -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png install -m644 %SOURCE3 -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png install -m644 %SOURCE5 -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png # Not needed with Linux-Mandrake menu rm -fr $RPM_BUILD_ROOT/%{__datadir}/afterstep/start/Applications/ install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmsession.d cat > $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmsession.d/15%{name} << EOF NAME=%{name} ICON=%{name}.png EXEC=%{__bindir}/afterstep DESC=A NeXt like Window-Manager SCRIPT: exec %{__bindir}/afterstep EOF %clean rm -rf $RPM_BUILD_ROOT %post %update_menus %make_session %post -n %libname -p /sbin/ldconfig %post -n %libname_devel -p /sbin/ldconfig %postun %clean_menus %make_session %postun -n %libname -p /sbin/ldconfig %postun -n %libname_devel -p /sbin/ldconfig %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/menu-methods/%{name} %config(noreplace) %{_sysconfdir}/X11/wmsession.d/15%{name} %doc COPYRIGHT ChangeLog NEW README TEAM UPGRADE doc/languages doc/licences %{_menudir}/* %{_iconsdir}/%{name}.png %{_miconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{__bindir}/* %{__mandir}/man1/* %dir %{__datadir}/afterstep %{__datadir}/afterstep/* %{__datadir}/afterstep/.workspace_state %files -n %libname %defattr(-,root,root,-) %{__libdir}/*.so.* %files -n %libname_devel %defattr(-,root,root,-) %{__libdir}/*.so %changelog * Sat Feb 28 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.8.11-5mdk - Fix Dep (epoch) * Thu Aug 14 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.8.11-4mdk - don't bzip2 icons - fix libpath (lib64 issues..) - corrected ICON in session file - enable xinerama * Wed Jul 09 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.8.11-3mdk - use %%mklibname for devel package - rebuild * Sat Mar 15 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.8.11-2mdk - cleanups, updates, bring this baby out of the stone age;) - remove non existing documentation to allow building - rm -rf buildroot in install - remove Packager tag, I doubt that Baudens really maintans this one anymore - use mklibname macro - added large icon - use menu-methods - require xli for xsetbg in stead of require on filename - Don't include Readme file in lib packages just for the sake of it, rpmlint is happy with no documentation in those nowadays * Mon Jun 17 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.8.11-1mdk - updated by Charles A Edwards <eslrahc@bellsouth.net> : - new version - remove require netscape - remove build requires sgml-tools * Fri Nov 2 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 1.8.10-1mdk - new version - specify --build/--host/--target manually * Tue Sep 11 2001 Civileme <civileme@mandrakesoft.com> 1.8.9-3mdk -Give the starting number of wmsession.d file unused number * Tue Sep 04 2001 David BAUDENS <baudens@mandrakesoft.com> 1.8.9-2mdk - Fix menu generation * Fri Aug 24 2001 David BAUDENS <baudens@mandrakesoft.com> 1.8.9-1mdk - 1.8.9 * Fri Jan 05 2001 David BAUDENS <baudens@mandrakesoft.com> 1.8.8-1mdk - 1.8.8 * Mon Dec 18 2000 David BAUDENS <baudens@mandrakesoft.com> 1.8.4-3mdk - mv %%_libdir/*.so in devel package * Wed Dec 13 2000 David BAUDENS <baudens@mandrakesoft.com> 1.8.4-2mdk - Libdification - Spec clean up and Q.A. stuff * Fri Nov 10 2000 David BAUDENS <baudens@mandrakesoft.com> 1.8.4-1mdk - 1.8.4 patch 2 - Build with glibc-2.2 & gcc-2.96 * Fri Sep 29 2000 Daouda Lo <daouda@mandrakesoft.com> 1.8.0.3-6mdk - add icons for menu. - macrozifications * Wed Sep 27 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.8.0.3-5mdk - entry in /etc/X11/wmsession.d - noreplace * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.8.0.3-4mdk - automatically added BuildRequires * Sun Jul 09 2000 David BAUDENS <baudens@mandrakesoft.com> 1.8.0.3-3mdk - Build with right options * Sat Jul 08 2000 David BAUDENS <baudens@mandrakesoft.com> 1.8.0.3-2mdk - Add serial to force update * Sat Jul 08 2000 David BAUDENS <baudens@mandrakesoft.com> 1.8.0.3-1mdk - 1.8.0 patch 3 * Wed Jul 05 2000 David BAUDENS <baudens@mandrakesoft.com> 1.8.0.2-1mdk - 1.8.0 patch 2 (sasha+contrib) - Fix version number * Fri Apr 28 2000 dam's <damien@mandrakesoft.com> 1.8.1-6mdk - Add fndSession call. * Mon Apr 10 2000 Dindinx <odin@mandrakesoft.com> 1.8.1-5mdk - Add menu key support * Thu Apr 6 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.8.1-4mdk - Make default background viewver xsetbg (no more xli). - Add menus. - Remove %pre (handle by %config). * Mon Mar 27 2000 DindinX <odin@mandrakesoft.com> 1.8.1-3mdk - Fix group, specs updates, removing .so files, etc. * Tue Mar 14 2000 David BAUDENS <baudens@mandrakesoft.com> 1.8.1-2mdk - Update Group * Tue Feb 29 2000 David BAUDENS <baudens@mandrakesoft.com> 1.8.1-1mdk - 1.8.1 - Merge with official AfterStep spec * Thu Jan 06 2000 - David BAUDENS <baudens@mandrakesoft.com> - 1.7.142-5mdk: Requires mandrake_desk >= 1.0.1-11 * Wed Jan 05 2000 - David BAUDENS <baudens@mandrakesoft.com> - Remove afsdrake for 7.0 - Back to old config files - Change default background for old config files * Sat Dec 25 1999 - David BAUDENS <baudens@mandrakesoft.com> - Change default background - Disable afsdrake by default * Tue Dec 21 1999 - David BAUDENS <baudens@mandkrasoft.com> - Add afsdrake * Sat Dec 04 1999 - David BAUDENS <baudens@mandrakesoft.com> - 1.7.142 * Tue Jul 20 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - New icons * Mon Jul 19 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Mandrake customisations (background, menus, icons). * Fri Jun 11 1999 Bernhard Rosenkränzer <bero@mandrakesoft.com> - 1.7.111 * Thu Jun 10 1999 Bernhard Rosenkränzer <bero@mandrakesoft.com> - 1.7.90 - Mandrake adaptions * Mon Feb 8 1999 Ryan Weaver <ryanw@infohwy.com> [AfterStep-1.6.10-1] - Upgraded to 1.6.10 * Mon Jan 4 1999 Ryan Weaver <ryanw@infohwy.com> [AfterStep-1.6.6-3] - Added a pre-install script to check to see if a previous versions share directory exists... If one does, it will copy it to afterstep_old. * Thu Dec 31 1998 Ryan Weaver <ryanw@infohwy.com> [AfterStep-1.6.6-2] - Configuring with no special settings and installing into default dirs as per David Mihm <davemann@ionet.net> * Wed Dec 30 1998 Michael K. Neylon <mneylon@engin.umich.edu> - Updated to 1.6.6 * Fri Dec 11 1998 Michael K. Neylon <mneylon@engin.umich.edu> - Updated to 1.6 (final) * Tue Nov 24 1998 Michael K. Neylon <mneylon@engin.umich.edu> - Updated to 1.5 beta 6 (ascp no longer part of package) * Tue Sep 22 1998 Michael K. Neylon <mneylon@engin.umich.edu> - Moved ascp to a subpackage * Thu Sep 21 1998 Michael K. Neylon <mneylon@engin.umich.edu> - Updated to 1.5beta4 - Huzzah! configure flags! * Thu Sep 3 1998 Michael K. Neylon <mneylon@engin.umich.edu> - Updated to 1.5beta3 - Tried to use some of RPM's internal variables for later ease. * Sun Aug 9 1998 Michael K. Neylon <mneylon@engin.umich.edu> - Updated to 1.5pre7 * Mon Jul 13 1998 Michael K. Neylon <mneylon@neylonpc.engin.umich.edu> - Updated to 1.5pre6 * Thu Jul 2 1998 Michael K. Neylon <mneylon@neylonpc.engin.umich.edu> - Updated to 1.5pre5 * Thu Jun 25 1998 Michael K. Neylon <mneylon@engin.umich.edu> 1.5pre3 - Updated to this version. - Borrows xiterm source for 1.4.5.55N6 (as per readme). * Tue Jun 2 1998 Michael K. Neylon <mneylon@engin.umich.edu> 1.4.5.55N6-2 - Enabled compiled-time option of saving windows. * Sat May 26 1998 Michael K. Neylon <mneylon@engin.umich.edu> 1.4.5.55N6-1 - N6 update - Removed requirement for sgml-tools. Do release that you will needs these to rebuild the .src.rpm (Available as contrib packages at Redhat) * Sat May 16 1998 Michael K. Neylon <mneylon@engin.umich.edu> 1.4.5.55N-1 - 1.4.5.55N update * Thu Apr 23 1998 Michael K. Neylon <mneylon@engin.umich.edu> 1.4.5.3-1 - 1.4.5.3 patch (applied to 1.4.5.1, odd, but...) * Sun Apr 19 1998 Michael K. Neylon <mneylon@engin.umich.edu> 1.4.5.2-1 - 1.4.5.2 patch * Thu Apr 16 1998 Michael K. Neylon <mneylon@engin.umich.edu> 1.4.5.1-1 - Included major documentation patch. * Tue Apr 14 1998 Michael K. Neylon <mneylon@engin.umich.edu> 1.4.5.0-1 - Update to new 1.4.5 * Wed Mar 11 1998 Michael K. Neylon <mneylon@engin.umich.edu> 1.4.4-1 - Update to new 1.4.4 beta, with necessary spec file adjustments - New changes no longer require OffiX-devel (as astrash isn't included) - put "afterstepdoc" and related files in the right place :-) * Tue Feb 17 1998 Michael K. Neylon <mneylon@engin.umich.edu> 1.4-2 - Fixed documentation problems * Thu Feb 11 1998 Michael K. Neylon <mneylon@engin.umich.edu> 1.4 - Updated to 1.4, using root install (including the startmenu worldwrite fix * Thu Jan 15 1998 Kjetil Wiekhorst Jørgensen <jorgens@zarhan.pvv.org> 1.0-7 - Fixed a minor bug in the code using mktemp(3). * Tue Jan 13 1998 Kjetil Wiekhorst Jørgensen <jorgens@zarhan.pvv.org> 1.0-6 - Added patch to allow the usage of m4 to configure afterstep. * Thu Nov 20 1997 Greg Boehnlein <damin@nacs.net> 1.0-5 - Modified Exist patch to look in /etc/X11/afterstep for system.steprc * Wed Nov 19 1997 Greg Boehnlein <damin@nacs.net> 1.0-4 - Rebuilt RPM under RedHat Mustang (glibc) * Tue Jul 17 1997 Ximenes Zalteca <ximenes@netset.com> 1.0-3 - Added Exist popup patch - Oh ya, and Malda's cool3.diff has been in since -2 :) * Wed Jul 03 1997 Ximenes Zalteca <ximenes@netset.com> 1.0-2 - Put sample.steprc in /etc/X11/afterstep * Sat Jun 28 1997 Ximenes Zalteca <ximenes@netset.com> 1.0-2 - Added patch to build properly on Linux/Alpha - Modified description - Modified BuildRoot - Updated URLs - Moved things from /usr/lib/X11 to /usr/X11R6/lib/X11