source: projects/specs/trunk/nonfree/self-build-lame/lame-vl.spec @ 10524

Revision 10524, 4.9 KB checked in by Takemikaduchi, 8 years ago (diff)

glib: add patch
others: rebuild

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