%define name AfterStep %define version 2.2.11 %define release %mkrel 3 %define major 0 %define libname %mklibname %{name} %{major} %define libname_devel %mklibname %{name} -d %define ltitle AfterStep Window Manager Summary: %{ltitle} Name: %{name} Version: %{version} Release: %{release} Epoch: 4 License: GPLv2+ Group: Graphical desktop/Other URL: http://www.afterstep.org/ Source: ftp://ftp.afterstep.org/stable/AfterStep-%version.tar.bz2 Source1: %{name}-mdkconf.tar.bz2 Source3: %{name}.png Source4: %{name}32.png Source5: %{name}48.png Patch2: %{name}-1.8.9-menuname.patch Patch3: %{name}.MenuKey.patch Patch4: afterstep-2.2.9-ldflags.patch BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Requires: desktop-common-data xli # Requires: %libname = %{epoch}:%{version}-%{release} BuildRequires: libx11-devel BuildRequires: libxext-devel BuildRequires: libxinerama-devel BuildRequires: dbus-devel BuildRequires: freetype2-devel BuildRequires: jpeg-devel BuildRequires: librsvg-devel BuildRequires: png-devel BuildRequires: tiff-devel BuildRequires: gtk2-devel %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 Obsoletes: %mklibname -d %name 0 %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 %patch4 -p0 -b .link %build rm -f config.status export CFLAGS="%optflags" export CCFLAGS="%optflags" %configure2_5x \ --enable-sharedlibs \ --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 \ --enable-script \ --with-xpm \ --with-jpeg \ --with-png \ --with-ttf \ --with-tiff # We're using make here instead of the built-in macro percent-make because the AfterStep # build-system lacks some dependencies which makes it fail sometimes with parallel # builds (-j). make if [ -x /usr/bin/sgml2html ]; then sgml2html doc/afterstep.sgml; fi %install rm -rf $RPM_BUILD_ROOT %makeinstall_std LDCONFIG=/bin/true # 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 Mageia 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 %make_session %postun %make_session %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/X11/wmsession.d/15%{name} %doc COPYRIGHT ChangeLog NEW README TEAM UPGRADE doc/languages doc/licences %{_iconsdir}/%{name}.png %{_miconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{_bindir}/* %{_mandir}/man1/* %{_mandir}/man3/* %dir %{_datadir}/afterstep %{_datadir}/afterstep/* %_datadir/xsessions/AfterStep.desktop %files -n %libname %defattr(-,root,root,-) %{_libdir}/*.so.%major %{_libdir}/*.so.%major.* %files -n %libname_devel %defattr(-,root,root,-) %{_libdir}/*.so %{_libdir}/*.a %_includedir/*