| 1 |
Name: twolame
|
| 2 |
Version: 0.3.12
|
| 3 |
Release: 3%{?dist}
|
| 4 |
Summary: TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME
|
| 5 |
Group: Applications/Multimedia
|
| 6 |
License: LGPLv2+
|
| 7 |
URL: http://www.twolame.org/
|
| 8 |
Source: http://downloads.sourceforge.net/twolame/%{name}-%{version}.tar.gz
|
| 9 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 10 |
BuildRequires: libsndfile-devel
|
| 11 |
#BuildRequires: libtool
|
| 12 |
|
| 13 |
%description
|
| 14 |
TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME,
|
| 15 |
which in turn is based heavily on
|
| 16 |
- the ISO dist10 code
|
| 17 |
- improvement to algorithms as part of the LAME project (www.sulaco.org/mp3)
|
| 18 |
|
| 19 |
This package contains the command line frontend.
|
| 20 |
|
| 21 |
%package libs
|
| 22 |
Summary: TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME
|
| 23 |
Group: System Environment/Libraries
|
| 24 |
Obsoletes: %{name} < 0.3.12-1
|
| 25 |
|
| 26 |
%description libs
|
| 27 |
TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME,
|
| 28 |
which in turn is based heavily on
|
| 29 |
- the ISO dist10 code
|
| 30 |
- improvement to algorithms as part of the LAME project (www.sulaco.org/mp3)
|
| 31 |
|
| 32 |
This package contains the shared library.
|
| 33 |
|
| 34 |
%package devel
|
| 35 |
Summary: Development tools for TwoLAME applications
|
| 36 |
Group: Development/Libraries
|
| 37 |
Requires: %{name}-libs = %{version}-%{release}
|
| 38 |
Requires: pkgconfig
|
| 39 |
|
| 40 |
%description devel
|
| 41 |
This package contains the header files and documentation
|
| 42 |
needed to develop applications with TwoLAME.
|
| 43 |
|
| 44 |
%prep
|
| 45 |
%setup -q
|
| 46 |
# convert manpage to UTF8
|
| 47 |
pushd doc
|
| 48 |
iconv -f iso8859-1 -t utf8 %{name}.1 > %{name}.1.utf && mv %{name}.1.utf %{name}.1
|
| 49 |
# fix HTML docs line endings
|
| 50 |
for file in html/*.html ; do
|
| 51 |
tr -d '\r' <$file >$file.unix && mv $file.unix $file
|
| 52 |
done
|
| 53 |
popd
|
| 54 |
|
| 55 |
%build
|
| 56 |
#autoreconf -f -i
|
| 57 |
%configure --disable-static
|
| 58 |
|
| 59 |
# remove rpath from libtool
|
| 60 |
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
| 61 |
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
| 62 |
|
| 63 |
%{__make} %{?_smp_mflags}
|
| 64 |
|
| 65 |
%install
|
| 66 |
rm -rf $RPM_BUILD_ROOT
|
| 67 |
%{__make} DESTDIR=$RPM_BUILD_ROOT install
|
| 68 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
| 69 |
rm -rf $RPM_BUILD_ROOT%{_docdir}
|
| 70 |
|
| 71 |
%clean
|
| 72 |
rm -rf $RPM_BUILD_ROOT
|
| 73 |
|
| 74 |
%post libs -p /sbin/ldconfig
|
| 75 |
|
| 76 |
%postun libs -p /sbin/ldconfig
|
| 77 |
|
| 78 |
%files
|
| 79 |
%defattr(644,root,root,755)
|
| 80 |
%doc AUTHORS COPYING ChangeLog README TODO
|
| 81 |
%attr(755,root,root) %{_bindir}/%{name}
|
| 82 |
%{_mandir}/man1/%{name}.1*
|
| 83 |
|
| 84 |
%files libs
|
| 85 |
%defattr(-,root,root,-)
|
| 86 |
%attr(755,root,root) %{_libdir}/lib%{name}.so.*
|
| 87 |
|
| 88 |
%files devel
|
| 89 |
%defattr(644,root,root,755)
|
| 90 |
%doc doc/api.txt doc/html doc/psycho.txt doc/vbr.txt
|
| 91 |
%{_libdir}/pkgconfig/%{name}.pc
|
| 92 |
%{_libdir}/lib%{name}.so
|
| 93 |
%{_includedir}/%{name}.h
|
| 94 |
|
| 95 |
%changelog
|
| 96 |
* Mon Aug 04 2008 kwizart < kwizart at gmail.com > - 0.3.12-3
|
| 97 |
- Remove rpath with the "patch libtool" method instead of autoreconf
|
| 98 |
|
| 99 |
* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.3.12-2
|
| 100 |
- rebuild
|
| 101 |
|
| 102 |
* Sun Jan 13 2008 Dominik Mierzejewski <rpm@greysector.net> 0.3.12-1
|
| 103 |
- updated to 0.3.12
|
| 104 |
- updated source URL
|
| 105 |
- split off libs to avoid multilib conflicts
|
| 106 |
- move docs processing to prep to avoid problems with shortcut builds
|
| 107 |
- update license tag
|
| 108 |
|
| 109 |
* Thu May 03 2007 Dominik Mierzejewski <rpm@greysector.net> 0.3.10-1
|
| 110 |
- updated to 0.3.10
|
| 111 |
- removed redundant BRs
|
| 112 |
|
| 113 |
* Wed Nov 01 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.8-1
|
| 114 |
- updated to 0.3.8
|
| 115 |
- rebuild autofiles to get rid of rpath
|
| 116 |
- disable static library build
|
| 117 |
- fix manpage encoding
|
| 118 |
- fix HTML docs line endings
|
| 119 |
|
| 120 |
* Sun Mar 12 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.6-1
|
| 121 |
- updated to 0.3.6
|
| 122 |
|
| 123 |
* Tue Jan 24 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.5-1
|
| 124 |
- updated to 0.3.5
|
| 125 |
- simplified package layout
|
| 126 |
- FE/livna compliance
|
| 127 |
|
| 128 |
* Sun Aug 21 2005 Dominik Mierzejewski <rpm@greysector.net>
|
| 129 |
- initial package
|