[620] | 1 | Summary: LAME Ain't an MP3 Encoder... but it's the best. |
---|
| 2 | Name: lame |
---|
[6241] | 3 | Version: 3.99.5 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | License: GPLv2+ |
---|
[620] | 6 | Group: Applications/Multimedia |
---|
| 7 | URL: http://lame.sourceforge.net/ |
---|
| 8 | #Source: http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz |
---|
| 9 | Source: http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz |
---|
| 10 | Patch1: %{name}-noexecstack.patch |
---|
| 11 | |
---|
[6241] | 12 | Patch10: lame-3.99-libs-termcap.patch |
---|
| 13 | |
---|
[620] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | |
---|
[4754] | 16 | %{?enable_brhist:BuildRequires: ncurses-devel} |
---|
[620] | 17 | BuildRequires: gtk+-devel |
---|
| 18 | BuildRequires: nasm |
---|
[4754] | 19 | %{?enable_brhist:Requires: ncurses} |
---|
[620] | 20 | |
---|
| 21 | Requires(post): ldconfig |
---|
| 22 | Requires(postun): ldconfig |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | LAME is an educational tool to be used for learning about MP3 encoding. |
---|
| 26 | The goal of the LAME project is to use the open source model to improve |
---|
| 27 | the psycho acoustics, noise shaping and speed of MP3. |
---|
| 28 | |
---|
| 29 | %package mp3x |
---|
| 30 | Summary: GTK frame analyzer for lame |
---|
| 31 | Group: Applications/Multimedia |
---|
| 32 | Requires: %{name} = %{version}-%{release} |
---|
| 33 | Requires: gtk+ |
---|
| 34 | |
---|
| 35 | %description mp3x |
---|
| 36 | LAME is an educational tool to be used for learning about MP3 encoding. |
---|
| 37 | The goal of the LAME project is to use the open source model to improve |
---|
| 38 | the psycho acoustics, noise shaping and speed of MP3. |
---|
| 39 | |
---|
| 40 | This package contains the GTK frame analyzer. |
---|
| 41 | |
---|
| 42 | %package devel |
---|
| 43 | Summary: Shared and static libraries for LAME. |
---|
| 44 | Group: Development/Libraries |
---|
| 45 | Requires: %{name} = %{version}-%{release} |
---|
| 46 | |
---|
| 47 | %description devel |
---|
| 48 | LAME is an educational tool to be used for learning about MP3 encoding. |
---|
| 49 | The goal of the LAME project is to use the open source model to improve |
---|
| 50 | the psycho acoustics, noise shaping and speed of MP3. |
---|
| 51 | |
---|
| 52 | This package contains the libraries and includes files needed to develop |
---|
| 53 | applications with lame. |
---|
| 54 | |
---|
| 55 | %prep |
---|
| 56 | %setup -q |
---|
| 57 | |
---|
| 58 | %patch1 -p1 -b .noexec |
---|
[6241] | 59 | %patch10 -p1 -b .termcap |
---|
[620] | 60 | |
---|
| 61 | %build |
---|
| 62 | %__sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure |
---|
| 63 | %ifarch %{ix86} x86_64 |
---|
| 64 | export CFLAGS="$RPM_OPT_FLAGS -ffast-math" |
---|
| 65 | %endif |
---|
| 66 | %configure \ |
---|
| 67 | --disable-dependency-tracking \ |
---|
| 68 | --disable-static \ |
---|
| 69 | %ifarch %{ix86} x86_64 |
---|
| 70 | --enable-nasm \ |
---|
| 71 | %else |
---|
| 72 | --disable-nasm \ |
---|
| 73 | %endif |
---|
| 74 | --enable-decoder \ |
---|
| 75 | --without-vorbis \ |
---|
| 76 | --enable-mp3x \ |
---|
| 77 | --enable-mp3rtp \ |
---|
| 78 | --enable-decode-layer1 \ |
---|
[4754] | 79 | %{?enable_brhist:--enable-brhist}%{!?enable_brhist:--disable-brhist} \ |
---|
| 80 | --disable-debug \ |
---|
| 81 | ; |
---|
[620] | 82 | |
---|
| 83 | %__make %{?_smp_mflags} |
---|
| 84 | |
---|
| 85 | %check |
---|
| 86 | %__make test |
---|
| 87 | |
---|
| 88 | %install |
---|
| 89 | %__rm -rf %{buildroot} |
---|
| 90 | %makeinstall |
---|
| 91 | |
---|
| 92 | %__rm -rf installed-docs |
---|
| 93 | %__mv -f %{buildroot}%{_datadir}/doc/%{name} installed-docs |
---|
| 94 | |
---|
| 95 | # some apps still expect to find <lame.h> |
---|
| 96 | %__ln_s -f lame/lame.h %{buildroot}%{_includedir}/lame.h |
---|
| 97 | |
---|
| 98 | # remove unpackaged files |
---|
| 99 | %__rm -f $RPM_BUILD_ROOT%{_libdir}/*.{la,a} |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | %post -p /sbin/ldconfig |
---|
| 103 | |
---|
| 104 | %postun -p /sbin/ldconfig |
---|
| 105 | |
---|
| 106 | %clean |
---|
| 107 | %__rm -rf %{buildroot} |
---|
| 108 | |
---|
| 109 | %files |
---|
| 110 | %defattr (-,root,root) |
---|
| 111 | %doc COPYING ChangeLog LICENSE README TODO USAGE |
---|
| 112 | %doc installed-docs/* |
---|
| 113 | %{_bindir}/lame |
---|
| 114 | %{_bindir}/mp3rtp |
---|
| 115 | %{_libdir}/lib*.so.* |
---|
| 116 | %{_mandir}/man1/lame.1* |
---|
| 117 | |
---|
| 118 | %files mp3x |
---|
| 119 | %defattr (-,root,root) |
---|
| 120 | %{_bindir}/mp3x |
---|
| 121 | |
---|
| 122 | %files devel |
---|
| 123 | %defattr (-,root,root) |
---|
| 124 | %doc API HACKING STYLEGUIDE |
---|
| 125 | %{_libdir}/lib*.so |
---|
| 126 | %{_includedir}/lame |
---|
| 127 | %{_includedir}/lame.h |
---|
| 128 | |
---|
| 129 | %changelog |
---|
[6241] | 130 | * Sat May 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.99.5 |
---|
| 131 | - new upstream release |
---|
| 132 | |
---|
| 133 | * Wed Oct 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.99-1 |
---|
| 134 | - new upstream release |
---|
| 135 | - applied lame-3.99-libs-termcap.patch |
---|
| 136 | |
---|
[4754] | 137 | * Sun Sep 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-2 |
---|
| 138 | - change release to sync with self-build-lame |
---|
| 139 | |
---|
[692] | 140 | * Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-1 |
---|
| 141 | - new upstream release |
---|
| 142 | |
---|
[620] | 143 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.3-1 |
---|
| 144 | - new upstream release |
---|
| 145 | |
---|
| 146 | * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-2 |
---|
| 147 | - change release to sync with self-build-lame |
---|
| 148 | |
---|
| 149 | * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-1 |
---|
| 150 | - new upstream release |
---|
| 151 | - applied some patches from RPM Fusion development |
---|
| 152 | - added in %%configure: |
---|
| 153 | --enable-decode-layer1 |
---|
| 154 | --disable-dependency-tracking |
---|
| 155 | --disable-static |
---|
| 156 | |
---|
| 157 | * Fri Jun 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-5 |
---|
| 158 | - change release to sync with self-build-lame |
---|
| 159 | |
---|
| 160 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-4 |
---|
| 161 | - change release to sync with self-build-lame |
---|
| 162 | |
---|
| 163 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-3 |
---|
| 164 | - spec in utf8 |
---|
| 165 | - remove *.la |
---|
| 166 | |
---|
| 167 | * Wed May 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-2 |
---|
| 168 | - change %%{__make} option to -j1 <BTS:VineLinux:611> |
---|
| 169 | |
---|
| 170 | * Sat May 03 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-1 |
---|
| 171 | - apply new versioning policy |
---|
| 172 | |
---|
| 173 | * Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl3 |
---|
| 174 | - fix typo |
---|
| 175 | |
---|
| 176 | * Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl2 |
---|
| 177 | - link libmp3lame with libm (patch1) |
---|
| 178 | |
---|
| 179 | * Sat Nov 11 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl1 |
---|
| 180 | - initial build |
---|