1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/twolame/twolame.spec Fri Mar 11 21:30:26 2011 +0100 1.3 @@ -0,0 +1,135 @@ 1.4 +Name: twolame 1.5 +Version: 0.3.12 1.6 +Release: 5.4 1.7 +Summary: TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME 1.8 +Group: Applications/Multimedia 1.9 +License: LGPLv2+ 1.10 +URL: http://www.twolame.org/ 1.11 +Source: http://downloads.sourceforge.net/twolame/%{name}-%{version}.tar.gz 1.12 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 1.13 +BuildRequires: libsndfile-devel 1.14 +#BuildRequires: libtool 1.15 + 1.16 +%description 1.17 +TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME, 1.18 +which in turn is based heavily on 1.19 +- the ISO dist10 code 1.20 +- improvement to algorithms as part of the LAME project (www.sulaco.org/mp3) 1.21 + 1.22 +This package contains the command line frontend. 1.23 + 1.24 +%package libs 1.25 +Summary: TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME 1.26 +Group: System Environment/Libraries 1.27 +Obsoletes: %{name} < 0.3.12-1 1.28 + 1.29 +%description libs 1.30 +TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME, 1.31 +which in turn is based heavily on 1.32 +- the ISO dist10 code 1.33 +- improvement to algorithms as part of the LAME project (www.sulaco.org/mp3) 1.34 + 1.35 +This package contains the shared library. 1.36 + 1.37 +%package devel 1.38 +Summary: Development tools for TwoLAME applications 1.39 +Group: Development/Libraries 1.40 +Requires: %{name}-libs = %{version}-%{release} 1.41 +Requires: pkgconfig 1.42 + 1.43 +%description devel 1.44 +This package contains the header files and documentation 1.45 +needed to develop applications with TwoLAME. 1.46 + 1.47 +%prep 1.48 +%setup -q 1.49 +# convert manpage to UTF8 1.50 +pushd doc 1.51 +iconv -f iso8859-1 -t utf8 %{name}.1 > %{name}.1.utf && mv %{name}.1.utf %{name}.1 1.52 +# fix HTML docs line endings 1.53 +for file in html/*.html ; do 1.54 + tr -d '\r' <$file >$file.unix && mv $file.unix $file 1.55 +done 1.56 +popd 1.57 + 1.58 +%build 1.59 +#autoreconf -f -i 1.60 +%configure --disable-static 1.61 + 1.62 +# remove rpath from libtool 1.63 +sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 1.64 +sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool 1.65 + 1.66 +%{__make} %{?_smp_mflags} 1.67 + 1.68 +%install 1.69 +rm -rf $RPM_BUILD_ROOT 1.70 +%{__make} DESTDIR=$RPM_BUILD_ROOT install 1.71 +rm $RPM_BUILD_ROOT%{_libdir}/*.la 1.72 +rm -rf $RPM_BUILD_ROOT%{_docdir} 1.73 + 1.74 +%clean 1.75 +rm -rf $RPM_BUILD_ROOT 1.76 + 1.77 +%post libs -p /sbin/ldconfig 1.78 + 1.79 +%postun libs -p /sbin/ldconfig 1.80 + 1.81 +%files 1.82 +%defattr(644,root,root,755) 1.83 +%doc AUTHORS COPYING ChangeLog README TODO 1.84 +%attr(755,root,root) %{_bindir}/%{name} 1.85 +%{_mandir}/man1/%{name}.1* 1.86 + 1.87 +%files libs 1.88 +%defattr(-,root,root,-) 1.89 +%attr(755,root,root) %{_libdir}/lib%{name}.so.* 1.90 + 1.91 +%files devel 1.92 +%defattr(644,root,root,755) 1.93 +%doc doc/api.txt doc/html doc/psycho.txt doc/vbr.txt 1.94 +%{_libdir}/pkgconfig/%{name}.pc 1.95 +%{_libdir}/lib%{name}.so 1.96 +%{_includedir}/%{name}.h 1.97 + 1.98 +%changelog 1.99 +* Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.3.12-5 1.100 +- Build for MeeGo 1.1 1.101 + 1.102 +* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.3.12-4 1.103 +- rebuild for new F11 features 1.104 + 1.105 +* Mon Aug 04 2008 kwizart < kwizart at gmail.com > - 0.3.12-3 1.106 +- Remove rpath with the "patch libtool" method instead of autoreconf 1.107 + 1.108 +* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.3.12-2 1.109 +- rebuild 1.110 + 1.111 +* Sun Jan 13 2008 Dominik Mierzejewski <rpm@greysector.net> 0.3.12-1 1.112 +- updated to 0.3.12 1.113 +- updated source URL 1.114 +- split off libs to avoid multilib conflicts 1.115 +- move docs processing to prep to avoid problems with shortcut builds 1.116 +- update license tag 1.117 + 1.118 +* Thu May 03 2007 Dominik Mierzejewski <rpm@greysector.net> 0.3.10-1 1.119 +- updated to 0.3.10 1.120 +- removed redundant BRs 1.121 + 1.122 +* Wed Nov 01 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.8-1 1.123 +- updated to 0.3.8 1.124 +- rebuild autofiles to get rid of rpath 1.125 +- disable static library build 1.126 +- fix manpage encoding 1.127 +- fix HTML docs line endings 1.128 + 1.129 +* Sun Mar 12 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.6-1 1.130 +- updated to 0.3.6 1.131 + 1.132 +* Tue Jan 24 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.5-1 1.133 +- updated to 0.3.5 1.134 +- simplified package layout 1.135 +- FE/livna compliance 1.136 + 1.137 +* Sun Aug 21 2005 Dominik Mierzejewski <rpm@greysector.net> 1.138 +- initial package