%define api 0.9.3 %define libname %mklibname %{name} %{api} %define devname %mklibname %{name} -d Summary: Dynamic Universal Music Bibliotheque Name: dumb Version: 0.9.3 Release: %mkrel 11 Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Source1: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}-autotools.tar.gz Patch0: dumb-0.9.3-fix-linking.patch Patch1: dumb-0.9.3-CVE-2006-3668.patch License: BSD-like Group: Sound/Players Url: http://dumb.sf.net/ BuildRequires: liballegro-devel %description DUMB is an IT, XM, S3M and MOD player library. This package includes a player based on Allegro. %package -n %{libname} Group: System/Libraries Summary: Shared libraries for %{name} %description -n %{libname} DUMB is an IT, XM, S3M and MOD player library. %package -n %{devname} Group: Development/C Summary: Development files and headers for %{name} Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Obsoletes: %{name}-devel < 0.9.3-9 %description -n %{devname} This package contains the development files and headers for %{name}. %prep %setup -q -b 01 %patch0 -p0 -b .linking %patch1 -p1 -b .CVE %build %configure2_5x \ --disable-static make %install rm -rf %{buildroot} %makeinstall_std #we don't want these find %{buildroot} -name "*.la" -delete %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc readme.txt licence.txt release.txt %{_bindir}/* %files -n %{libname} %defattr(-,root,root) %{_libdir}/lib%{name}-%{api}.so %{_libdir}/libaldmb-%{api}.so %files -n %{devname} %defattr(-,root,root) %doc docs/* %{_libdir}/lib%{name}.so %{_libdir}/libaldmb.so %{_includedir}/*.h %changelog * Fri Jan 11 2013 umeabot <umeabot> 0.9.3-11.mga3 + Revision: 349165 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Nov 29 2012 malo <malo> 0.9.3-10.mga3 + Revision: 322783 - update RPM group * Wed Nov 30 2011 wally <wally> 0.9.3-9.mga2 + Revision: 174504 - disable parallel build - enable shared libs - fix CVE-2006-3668, patch from debian - redo P0 and .spec * Fri Mar 04 2011 ennael <ennael> 0.9.3-8.mga1 + Revision: 64080 - imported package dumb