%define major 0 %define libname %mklibname %{name} %{major} %define libname_devel %mklibname %{name} -d %define casedname AfterStep Summary: AfterStep Window Manager Name: afterstep Version: 2.2.12 Release: %mkrel 3 Epoch: 4 License: GPLv2+ Group: Graphical desktop/Other URL: http://www.afterstep.org/ Source: ftp://ftp.afterstep.org/stable/%{casedname}-%version.tar.bz2 Source1: %{casedname}-mdkconf.tar.bz2 Source3: %{casedname}.png Source4: %{casedname}32.png Source5: %{casedname}48.png Patch2: %{casedname}-1.8.9-menuname.patch Patch3: %{casedname}.MenuKey.patch Patch6: %{name}-wharf.patch Patch7: %{name}-2.2.12-libAfterImage-makefile.patch Patch8: %{name}-2.2.12-winlist.patch 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 Requires: desktop-common-data Requires: xli Recommends: asclock # Requires: %libname = %{epoch}:%{version}-%{release} Obsoletes: AfterStep < 4:2.2.11-8 %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 Obsoletes: %{_lib}AfterStep0 < 4:2.2.11-8 %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 Provides: lib%name-devel Requires: %libname = %{epoch}:%version-%release Obsoletes: %{_lib}AfterStep0-devel Obsoletes: %{_lib}AfterStep-devel < 4:2.2.11-8 %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 -n %{name}-devel-%{version} # LMDK patches %patch2 -p1 %patch3 -p1 %patch6 -p0 %patch7 -p1 %patch8 -p1 %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 %makeinstall_std LDCONFIG=/bin/true # LMDK icons install -m644 %SOURCE4 -D %{buildroot}%{_iconsdir}/%{casedname}.png install -m644 %SOURCE3 -D %{buildroot}%{_miconsdir}/%{casedname}.png install -m644 %SOURCE5 -D %{buildroot}%{_liconsdir}/%{casedname}.png # Not needed with Mageia menu rm -rf %{buildroot}%{__datadir}/afterstep/start/Applications/ rm -rf %{buildroot}%{_datadir}/xsessions/AfterStep.desktop install -d %{buildroot}%{_sysconfdir}/X11/wmsession.d cat > %{buildroot}%{_sysconfdir}/X11/wmsession.d/15%{name} << EOF NAME=%{casedname} ICON=%{casedname}.png EXEC=%{_bindir}/%{name} DESC=A NeXt like Window-Manager SCRIPT: exec %{_bindir}/%{name} EOF %files %config(noreplace) %{_sysconfdir}/X11/wmsession.d/15%{name} %doc COPYRIGHT ChangeLog NEW README TEAM doc/languages doc/licences %{_iconsdir}/%{casedname}.png %{_miconsdir}/%{casedname}.png %{_liconsdir}/%{casedname}.png %{_bindir}/* %{_mandir}/man1/* %{_mandir}/man3/* %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %files -n %libname %{_libdir}/*.so.%major %{_libdir}/*.so.%major.* %files -n %libname_devel %{_libdir}/*.so %{_libdir}/*.a %_includedir/*