%define oname mowgli %define major 2 %define libname %mklibname %{oname} %{major} %define devname %mklibname -d %{oname} Summary: Development framework with high performance algorithms Name: libmowgli Version: 1.0.0 Release: %mkrel 2 Source0: http://distfiles.atheme.org/%{name}-%{version}.tar.bz2 License: BSD Group: System/Libraries Url: http://www.atheme-project.org/projects/mowgli.shtml %description mowgli is a development framework for C (like GLib), which provides high performance and highly flexible algorithms. It can be used as a suppliment to GLib (to add additional functions (dictionaries, hashes), or replace some of the slow GLib list manipulation functions), or stand alone. It also provides a powerful hook system and convenient logging for your code, as well as a high performance block allocator. %package -n %{libname} Group: System/Libraries Summary: Development framework library %description -n %{libname} mowgli is a development framework for C (like GLib), which provides high performance and highly flexible algorithms. It can be used as a suppliment to GLib (to add additional functions (dictionaries, hashes), or replace some of the slow GLib list manipulation functions), or stand alone. It also provides a powerful hook system and convenient logging for your code, as well as a high performance block allocator. %package -n %{devname} Group: Development/C Summary: Development framework header files Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: %{oname}-devel = %{version}-%{release} %description -n %{devname} mowgli is a development framework for C (like GLib), which provides high performance and highly flexible algorithms. It can be used as a suppliment to GLib (to add additional functions (dictionaries, hashes), or replace some of the slow GLib list manipulation functions), or stand alone. It also provides a powerful hook system and convenient logging for your code, as well as a high performance block allocator. %prep %setup -q %build %configure2_5x %make %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %{_libdir}/lib%{oname}.so.%{major}* %files -n %{devname} %defattr(-,root,root) %doc AUTHORS %{_libdir}/lib%{oname}.so %{_libdir}/pkgconfig/lib%{oname}.pc %{_includedir}/lib%{oname}/ %changelog * Sat Jan 12 2013 umeabot <umeabot> 1.0.0-2.mga3 + Revision: 357789 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Nov 28 2011 wally <wally> 1.0.0-1.mga2 + Revision: 173876 - new version 1.0.0 - clean .spec a bit * Tue Jun 07 2011 dmorgan <dmorgan> 0.9.50-1.mga2 + Revision: 101543 - New version 0.9.50 * Fri Mar 04 2011 ennael <ennael> 0.7.1-1.mga1 + Revision: 63966 - clean spec file - imported package libmowgli