Sophie

Sophie

distrib > Mageia > cauldron > i586 > by-pkgid > 3e975a2e0067bfe211a1c27398afcae4 > files > 13

afterstep-2.2.12-12.mga7.src.rpm

%define	major		0
%define	libname		%mklibname %{name} %{major}
%define	libname_devel	%mklibname %{name} -d

%define casedname	AfterStep

Summary:	AfterStep Window Manager
Name:		afterstep
Epoch:		4
Version:	2.2.12
Release:	%mkrel 12
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
Patch9:		%{name}-2.2.12-gcc5.patch
Patch10:	afterstep-devel-2.2.12-debuginfo.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	desktop-common-data
Requires:	xli
Recommends:	asclock

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}
%autopatch -p1

# to recognize aarch64
for d in libAfterImage autoconf libAfterBase; do
  cp -af %{_usr}/lib/rpm/config.{guess,sub} $d/
done

%build
rm -f config.status
ln autoconf/configure.in
autoreconf -fi

%configure2_5x	\
%ifarch %{ix86}
		--disable-mmx-optimization \
%endif
		--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-virtual \
		--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 CCFLAGS="%{optflags} -fPIC"

if [ -x /usr/bin/sgml2html ]; then sgml2html doc/afterstep.sgml; fi


%install
%make_install LDCONFIG=/bin/true

%__install -D -m 644  AfterStep.desktop.final %{buildroot}%{_datadir}/xsessions/AfterStep.desktop

# 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/

%posttrans
if [ "$1" -eq 1 ]; then
	if [ -e %{_datadir}/xsessions/15AfterStep.desktop ]; then
		rm -rf %{_datadir}/xsessions/15AfterStep.desktop
	fi
	if [ -e %{_sysconfdir}/X11/dm/Sessions/15AfterStep.desktop ]; then
		rm -rf %{_sysconfdir}/X11/dm/Sessions/15AfterStep.desktop
	fi
fi

%files
%doc COPYRIGHT ChangeLog NEW README TEAM doc/languages doc/licences
%{_datadir}/xsessions/%{casedname}.desktop
%{_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/*


%changelog
* Sun Sep 23 2018 umeabot <umeabot> 4:2.2.12-12.mga7
  (not released yet)
+ Revision: 1297298
- Mageia 7 Mass Rebuild

* Mon Jun 04 2018 wally <wally> 4:2.2.12-11.mga7
+ Revision: 1234487
- fix build on aarch64

* Sun Oct 15 2017 cjw <cjw> 4:2.2.12-10.mga7
+ Revision: 1171943
- patch10: do not remove -g from cflags
+ daviddavid <daviddavid>
- honor user CCFLAGS thus fixing empty debugsourcefiles.list

* Fri Feb 24 2017 wally <wally> 4:2.2.12-8.mga6
+ Revision: 1087707
- drop obsolete wmsession.d files
- remove generated xsessions .desktop file leftovers on update

* Fri Sep 30 2016 eatdirt <eatdirt> 4:2.2.12-7.mga6
+ Revision: 1057775
- Installing desktop file for sddm

* Wed Feb 10 2016 umeabot <umeabot> 4:2.2.12-6.mga6
+ Revision: 953051
- Mageia 6 Mass Rebuild

* Mon Sep 07 2015 cjw <cjw> 4:2.2.12-5.mga6
+ Revision: 873868
- patch9: fix build with gcc 5

* Wed Oct 15 2014 umeabot <umeabot> 4:2.2.12-4.mga5
+ Revision: 741211
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 4:2.2.12-3.mga5
+ Revision: 686468
- Rebuild to fix library dependencies

* Tue Sep 16 2014 umeabot <umeabot> 4:2.2.12-2.mga5
+ Revision: 677716
- Mageia 5 Mass Rebuild
+ tv <tv>
- s/uggests:/Recommends:/

* Sun Aug 17 2014 remmy <remmy> 4:2.2.12-1.mga5
+ Revision: 664817
- New upstream version 2.2.12

* Sat Oct 19 2013 umeabot <umeabot> 4:2.2.11-11.mga4
+ Revision: 525930
- Mageia 4 Mass Rebuild

* Sun Jun 02 2013 fwang <fwang> 4:2.2.11-10.mga4
+ Revision: 434982
- rebuild for new libpng

* Fri Jan 11 2013 umeabot <umeabot> 4:2.2.11-9.mga3
+ Revision: 345324
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Mar 17 2012 wally <wally> 4:2.2.11-8.mga2
+ Revision: 223747
- correctly obsolete old AfterStep pkgs (mga#4971)
- clean .spec a bit

* Tue Jan 31 2012 remmy <remmy> 4:2.2.11-7.mga2
+ Revision: 203656
- Removed .xsession file, closing bug report mga#3650
- Removed xeyes from default Wharf configuration
- Added LibreOffice Writer and Clac as default Wharf options
- Added suggest on asclock

* Fri Dec 23 2011 fwang <fwang> 4:2.2.11-6.mga2
+ Revision: 186393
- rebuild for new libtiff

* Tue Sep 20 2011 fwang <fwang> 4:2.2.11-5.mga2
+ Revision: 145922
- fix build with latest libpng
- rebuild for new libpng
+ shlomif <shlomif>
- Removed the %%make_session calls - they are handled by file triggers and triggers an empty postun/post errors.
- Change %%make to make to avoid parallel builds which sometimes break
- Bumped the mkrel to change the name of the menu to Mageia
+ remmy <remmy>
- Change reference in menu from Mandriva Linux to Mageia

* Fri May 06 2011 nanardon <nanardon> 4:2.2.11-1.mga1
+ Revision: 95602
- Mdv cleanup
- imported package AfterStep


* Wed Jan 19 2011 Funda Wang <fwang@mandriva.org> 4:2.2.11-1mdv2011.0
+ Revision: 631658
- New version 2.2.11

* Mon Jan 03 2011 Funda Wang <fwang@mandriva.org> 4:2.2.9-4mdv2011.0
+ Revision: 627679
- fix linkage

* Sun Dec 05 2010 Oden Eriksson <oeriksson@mandriva.com> 4:2.2.9-3mdv2011.0
+ Revision: 609926
- rebuild

* Sun Aug 23 2009 Funda Wang <fwang@mandriva.org> 4:2.2.9-2mdv2010.0
+ Revision: 419754
- rebuild for new libjpeg v7

  + Frederik Himpe <fhimpe@mandriva.org>
    - Update to new version 2.2.9
    - Use %%configure2_5x macro instead of %%configure to fix build

* Thu Jun 12 2008 Pixel <pixel@mandriva.com> 4:2.2.4-2mdv2009.0
+ Revision: 218439
- rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
- do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

  + Thierry Vignaud <tv@mandriva.org>
    - drop old menu

* Mon Jan 07 2008 Funda Wang <fwang@mandriva.org> 4:2.2.4-2mdv2008.1
+ Revision: 146266
- New devel package policy
- fix requires on Mandriva_desk

* Thu Dec 20 2007 Olivier Blin <oblin@mandriva.com> 4:2.2.4-1mdv2008.1
+ Revision: 135819
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request
    - buildrequires X11-devel instead of XFree86-devel
    - s/Mandrake/Mandriva/


* Fri Dec 01 2006 Nicolas Lécureuil <neoclust@mandriva.org> 2.2.4-1mdv2007.0
+ Revision: 89500
- New version 2.2.4

* Thu Aug 03 2006 Olivier Thauvin <nanardon@mandriva.org> 4:2.2.2-1mdv2007.0
+ Revision: 43064
- remove menu (no longer supported, just hopping xdg menu are supported, else no menu)
- 2.2.2
- Import AfterStep

* Fri Jun 16 2006 Lenny Cartier <lenny@mandriva.com> 4:2.2.1-2mdv2007.0
- rebuild

* Tue Mar 07 2006 Olivier Thauvin <nanardon@mandriva.org> 2.2.1-1mdk
- 2.2.1

* Fri Oct 07 2005 Nicolas Lécureuil <neoclust@mandriva.org> 2.1.0-2mdk
- Fix BuildRequires
- Remove redundant buildrequire

* Fri May 27 2005 Nicolas Lécureuil <neoclust@mandriva.org> 2.1.0-1mdk
- 2.1.0

* Mon May 09 2005 Olivier Thauvin <nanardon@mandriva.org> 2.00.05-1mdk
- 2.00.05
- remove patch4, merge upstream

* Thu Jan 13 2005 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.00.01-2mdk
- Fix lib installation

* Wed Jan 12 2005 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.00.01-1mdk
- 2.00.01
- rediff patch3

* Sat Feb 28 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.8.11-5mdk
- Fix Dep (epoch)