michael@0: Name: twolame michael@0: Version: 0.3.12 michael@0: Release: 5.4 michael@0: Summary: TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME michael@0: Group: Applications/Multimedia michael@0: License: LGPLv2+ michael@0: URL: http://www.twolame.org/ michael@0: Source: http://downloads.sourceforge.net/twolame/%{name}-%{version}.tar.gz michael@0: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) michael@0: BuildRequires: libsndfile-devel michael@0: #BuildRequires: libtool michael@0: michael@0: %description michael@0: TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME, michael@0: which in turn is based heavily on michael@0: - the ISO dist10 code michael@0: - improvement to algorithms as part of the LAME project (www.sulaco.org/mp3) michael@0: michael@0: This package contains the command line frontend. michael@0: michael@0: %package libs michael@0: Summary: TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME michael@0: Group: System Environment/Libraries michael@0: Obsoletes: %{name} < 0.3.12-1 michael@0: michael@0: %description libs michael@0: TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME, michael@0: which in turn is based heavily on michael@0: - the ISO dist10 code michael@0: - improvement to algorithms as part of the LAME project (www.sulaco.org/mp3) michael@0: michael@0: This package contains the shared library. michael@0: michael@0: %package devel michael@0: Summary: Development tools for TwoLAME applications michael@0: Group: Development/Libraries michael@0: Requires: %{name}-libs = %{version}-%{release} michael@0: Requires: pkgconfig michael@0: michael@0: %description devel michael@0: This package contains the header files and documentation michael@0: needed to develop applications with TwoLAME. michael@0: michael@0: %prep michael@0: %setup -q michael@0: # convert manpage to UTF8 michael@0: pushd doc michael@0: iconv -f iso8859-1 -t utf8 %{name}.1 > %{name}.1.utf && mv %{name}.1.utf %{name}.1 michael@0: # fix HTML docs line endings michael@0: for file in html/*.html ; do michael@0: tr -d '\r' <$file >$file.unix && mv $file.unix $file michael@0: done michael@0: popd michael@0: michael@0: %build michael@0: #autoreconf -f -i michael@0: %configure --disable-static michael@0: michael@0: # remove rpath from libtool michael@0: sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool michael@0: sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool michael@0: michael@0: %{__make} %{?_smp_mflags} michael@0: michael@0: %install michael@0: rm -rf $RPM_BUILD_ROOT michael@0: %{__make} DESTDIR=$RPM_BUILD_ROOT install michael@0: rm $RPM_BUILD_ROOT%{_libdir}/*.la michael@0: rm -rf $RPM_BUILD_ROOT%{_docdir} michael@0: michael@0: %clean michael@0: rm -rf $RPM_BUILD_ROOT michael@0: michael@0: %post libs -p /sbin/ldconfig michael@0: michael@0: %postun libs -p /sbin/ldconfig michael@0: michael@0: %files michael@0: %defattr(644,root,root,755) michael@0: %doc AUTHORS COPYING ChangeLog README TODO michael@0: %attr(755,root,root) %{_bindir}/%{name} michael@0: %{_mandir}/man1/%{name}.1* michael@0: michael@0: %files libs michael@0: %defattr(-,root,root,-) michael@0: %attr(755,root,root) %{_libdir}/lib%{name}.so.* michael@0: michael@0: %files devel michael@0: %defattr(644,root,root,755) michael@0: %doc doc/api.txt doc/html doc/psycho.txt doc/vbr.txt michael@0: %{_libdir}/pkgconfig/%{name}.pc michael@0: %{_libdir}/lib%{name}.so michael@0: %{_includedir}/%{name}.h michael@0: michael@0: %changelog michael@0: * Mon Nov 1 2010 Kozinov Ivan - 0.3.12-5 michael@0: - Build for MeeGo 1.1 michael@0: michael@0: * Sun Mar 29 2009 Thorsten Leemhuis - 0.3.12-4 michael@0: - rebuild for new F11 features michael@0: michael@0: * Mon Aug 04 2008 kwizart < kwizart at gmail.com > - 0.3.12-3 michael@0: - Remove rpath with the "patch libtool" method instead of autoreconf michael@0: michael@0: * Sun Aug 03 2008 Thorsten Leemhuis 0.3.12-1 michael@0: - updated to 0.3.12 michael@0: - updated source URL michael@0: - split off libs to avoid multilib conflicts michael@0: - move docs processing to prep to avoid problems with shortcut builds michael@0: - update license tag michael@0: michael@0: * Thu May 03 2007 Dominik Mierzejewski 0.3.10-1 michael@0: - updated to 0.3.10 michael@0: - removed redundant BRs michael@0: michael@0: * Wed Nov 01 2006 Dominik Mierzejewski 0.3.8-1 michael@0: - updated to 0.3.8 michael@0: - rebuild autofiles to get rid of rpath michael@0: - disable static library build michael@0: - fix manpage encoding michael@0: - fix HTML docs line endings michael@0: michael@0: * Sun Mar 12 2006 Dominik Mierzejewski 0.3.6-1 michael@0: - updated to 0.3.6 michael@0: michael@0: * Tue Jan 24 2006 Dominik Mierzejewski 0.3.5-1 michael@0: - updated to 0.3.5 michael@0: - simplified package layout michael@0: - FE/livna compliance michael@0: michael@0: * Sun Aug 21 2005 Dominik Mierzejewski michael@0: - initial package