source: projects/specs/trunk/l/lame/lame-vl.spec @ 12243

Revision 12243, 5.3 KB checked in by tomop, 5 years ago (diff)

updated 3 packages

a52dec-0.7.4-7

lame-3.100-3

libmpeg2-0.5.1-6

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