%define major 0 %define libname %mklibname %{name} %{major} %define develname %mklibname -d %{name} Summary: Optimized MPEG Audio Layer 2 (MP2) encoder Name: twolame Version: 0.3.13 Release: %mkrel 3 License: LGPLv2+ Group: System/Libraries URL: http://www.twolame.org/ Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz BuildRequires: libsndfile-devel >= 1.0.0 BuildRequires: pkgconfig BuildRequires: dos2unix %description TwoLAME is an optimized MPEG Audio Layer 2 (MP2) encoder based on tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and portions of LAME. Features added to TwoLAME: - Fully thread-safe - Static and shared library (libtwolame) - API very similar to LAME's (for easy porting) - C99 compliant - Frontend supports wider range of input files (using libsndfile) %package -n %{libname} Summary: TwoLAME MP2 encoding library Group: System/Libraries %description -n %{libname} TwoLAME MP2 encoding library. %package -n %{develname} Summary: Header files for TwoLAME library Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version} Provides: lib%{name}-devel = %{version} %description -n %{develname} TwoLAME is an optimized MPEG Audio Layer 2 (MP2) encoder based on tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and portions of LAME. Features added to TwoLAME: - Fully thread-safe - Static and shared library (libtwolame) - API very similar to LAME's (for easy porting) - C99 compliant - Frontend supports wider range of input files (using libsndfile) This package contains the static development library and header files for the TwoLAME library. %prep %setup -q sed -i -e 's/-O3//' configure.ac # strip away annoying ^M find -type f | grep -v ".gif" | grep -v ".png" | grep -v ".jpg" | xargs dos2unix %build autoreconf -fi %configure2_5x %make %install rm -rf %{buildroot} %makeinstall_std rm -rf %{buildroot}%{_docdir}/twolame # don't ship .a, .la find %{buildroot} -name *.a | xargs rm -f find %{buildroot} -name *.la | xargs rm -f %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS ChangeLog README TODO %{_bindir}/twolame %{_mandir}/man1/twolame.1* %files -n %{libname} %defattr(-,root,root) %{_libdir}/*.so.%{major}* %files -n %{develname} %defattr(-,root,root) %doc doc/html/* %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/* %changelog * Mon Jan 14 2013 umeabot <umeabot> 0.3.13-3.mga3 + Revision: 384929 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Dec 07 2012 cjw <cjw> 0.3.13-2.mga3 + Revision: 327668 - fix build with current dos2unix * Mon Aug 01 2011 tv <tv> 0.3.13-1.mga2 + Revision: 131102 - drop patch (merged upstream) - new release * Tue Jan 25 2011 ahmad <ahmad> 0.3.12-7.mga1 + Revision: 39579 - drop old/unneeded scriptlets - don't ship .a, .la - imported package twolame