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