%define name aalib %define version 1.4.0 %define major 1 %define fname %{name}-1.4rc5 %define libname %mklibname aa %major %define develname %mklibname -d aa %define staticname %mklibname -s -d aa %define release %mkrel 0.rc5.17 Summary: AA (Ascii Art) library Name: %{name} Version: %{version} Release: %{release} License: LGPLv2+ Group: System/Libraries BuildRequires: X11-devel BuildRequires: ncurses-devel BuildRequires: slang-devel BuildRequires: texinfo BuildRequires: automake1.7 Source0: http://prdownloads.sourceforge.net/aa-project/%{fname}.tar.bz2 Patch0: %{name}-info.patch Patch1: aalib-rpath.patch Patch2: aalib-1.4-automake18.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Url: http://aa-project.sourceforge.net/aalib/ %description AA-lib is a low level gfx library just as many other libraries are. The main difference is that AA-lib does not require graphics device. In fact, there is no graphical output possible. AA-lib replaces those old-fashioned output methods with powerful ascii-art renderer. Now my linux boots with a nice penguin logo at secondary display (yes! Like Win95 does:) AA-lib API is designed to be similar to other graphics libraries. Learning a new API would be a piece of cake! The AA library is needed for GIMP %package -n %{libname} Summary: AA (Ascii Art) library Group: System/Libraries Provides: %{name} Obsoletes: %{name} %description -n %{libname} AA-lib is a low level gfx library just as many other libraries are. The main difference is that AA-lib does not require graphics device. In fact, there is no graphical output possible. AA-lib replaces those old-fashioned output methods with powerful ascii-art renderer. Now my linux boots with a nice penguin logo at secondary display (yes! Like Win95 does:) AA-lib API is designed to be similar to other graphics libraries. Learning a new API would be a piece of cake! The AA library is needed for GIMP %package -n %develname Summary: Header files and libraries for developing apps which will use %{name} Group: Development/C Requires: %{libname} = %{version} Provides: libaa-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{name}-devel Obsoletes: %mklibname -d aa 1 %description -n %develname AA-lib is a low level gfx library just as many other libraries are. The main difference is that AA-lib does not require graphics device. In fact, there is no graphical output possible. AA-lib replaces those old-fashioned output methods with powerful ascii-art renderer. Now my linux boots with a nice penguin logo at secondary display (yes! Like Win95 does:) AA-lib API is designed to be similar to other graphics libraries. Learning a new API would be a piece of cake! The AA library is needed for GIMP Install this package if you want to develop applications that will use the %{name} library. %package -n %staticname Summary: Static library for developing apps which will use %{name} Group: Development/C Requires: %develname = %{version} Provides: libaa-static-devel = %{version}-%{release} Provides: %{name}-static-devel = %{version}-%{release} Obsoletes: %mklibname -d -s aa 1 %description -n %staticname Static library for %{name} %package progs Summary: Tools to %{name} Group: Development/C Requires: %{libname} = %{version} %description progs AA-lib tools. %prep %setup -q %patch0 -p1 -b .info %patch1 -p0 -b .rpath %patch2 -p1 -b .automake18 %__libtoolize --copy --force ACLOCAL=aclocal-1.7 AUTOMAKE=automake-1.7 FORCE_AUTOCONF_2_5=1 autoreconf --force --install %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std #multiarch %multiarch_binaries $RPM_BUILD_ROOT%{_bindir}/aalib-config %clean rm -rf %buildroot %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %post -n %develname %_install_info %{name}.info %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %preun -n %develname %_remove_install_info %{name}.info %files -n %{libname} %defattr(-,root,root) %doc NEWS README %{_libdir}/libaa.so.%{major}* %files -n %develname %defattr(-,root,root) %doc README ChangeLog %attr(755,root,root) %{_bindir}/aalib-config %multiarch %{multiarch_bindir}/aalib-config %{_libdir}/*.so %{_libdir}/*.la %{_infodir}/*.* %{_includedir}/* %{_datadir}/aclocal/* %{_mandir}/man3/* %files -n %staticname %defattr(-,root,root) %doc README %{_libdir}/*.a %files progs %defattr(-,root,root,755) %doc README %{_bindir}/aafire %{_bindir}/aainfo %{_bindir}/aasavefont %{_bindir}/aatest %{_mandir}/man1/* %changelog * Mon Jun 09 2008 Pixel <pixel@mandriva.com> 1.4.0-0.rc5.17mdv2009.0 + Revision: 217182 - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request - buildrequires X11-devel instead of XFree86-devel * Wed Oct 24 2007 Götz Waschk <waschk@mandriva.org> 1.4.0-0.rc5.17mdv2008.1 + Revision: 101718 - new devel name - update license tag * Fri Jun 01 2007 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1.4.0-0.rc5.17mdv2008.0 + Revision: 34287 - Rebuild with libslang2. * Mon Aug 21 2006 Emmanuel Andry <eandry@mandriva.org> 1.4.0-0.rc5.16mdv2007.0 - %%mkrel * Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 1.4.0-0.rc5.15mdk - Rebuild * Wed Feb 09 2005 Abel Cheung <deaddog@mandrake.org> 1.4.0-0.rc5.14mdk - Use automake 1.9 - P2: compatibility with automake >= 1.8 * Tue Feb 01 2005 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 1.4.0-0.rc5.13mdk - multiarch - fix summary-ended-with-dot * Fri Jul 23 2004 Marcel Pol <mpol@mandrake.org> 1.4.0-0.rc5.12mdk - ouch, need coffee * Fri Jul 23 2004 Marcel Pol <mpol@mandrake.org> 1.4.0-0.rc5.11mdk - again build against new slang * Wed Jul 21 2004 Marcel Pol <mpol@mandrake.org> 1.4.0-0.rc5.10mdk - build against new slang * Mon Jun 07 2004 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 1.4.0-0.rc5.9mdk - force use of automake1.7 and autoconf2.5 - wipe out buildroot before installing - cosmetics