lame/lame.spec

changeset 0
4f133201e207
child 1
4667f24fe848
equal deleted inserted replaced
-1:000000000000 0:5471e632fb4c
1 Name: lame
2 Version: 3.98.4
3 Release: 1.4
4 Summary: Free MP3 audio compressor
5
6 Group: Applications/Multimedia
7 License: GPLv2+
8 URL: http://lame.sourceforge.net/
9 Source0: http://downloads.sourceforge.net/sourceforge/lame/%{name}-%{version}.tar.gz
10 Patch1: %{name}-noexecstack.patch
11 Patch2: %{name}-pmake.patch
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildRequires: ncurses-devel
15 BuildRequires: gtk+-devel
16 # pkg-config should be pulled in by gtk+-devel but is not in EL-5
17 BuildRequires: pkgconfig
18 %ifarch %{ix86}
19 BuildRequires: nasm
20 %endif
21 Requires: %{name}-libs = %{version}-%{release}
22
23 %description
24 LAME is an open source MP3 encoder whose quality and speed matches
25 commercial encoders. LAME handles MPEG1,2 and 2.5 layer III encoding
26 with both constant and variable bitrates.
27
28 %package libs
29 Summary: LAME MP3 encoding library
30 Group: System Environment/Libraries
31
32 %description libs
33 LAME MP3 encoding library.
34
35 %package devel
36 Summary: Development files for %{name}
37 Group: Development/Libraries
38 Requires: %{name}-libs = %{version}-%{release}
39
40 %description devel
41 This package development files for %{name}.
42
43 %package mp3x
44 Summary: MP3 frame analyzer
45 Group: Applications/Multimedia
46 Requires: %{name} = %{version}-%{release}
47
48 %description mp3x
49 This package contains the mp3x frame analyzer.
50
51
52 %prep
53 %setup -q
54 %patch1 -p1 -b .noexec
55 %patch2 -p1 -b .pmake
56 iconv -f ISO-8859-1 -t UTF8 ChangeLog > ChangeLog.tmp && touch -r ChangeLog ChangeLog.tmp && mv ChangeLog.tmp ChangeLog
57
58
59 %build
60 #sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure
61 #export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
62 unset CFLAGS
63 unset CXXFLAGS
64 unset FFLAGS
65 unset LD_AS_NEEDED
66 %configure \
67 --disable-dependency-tracking \
68 --disable-static \
69 %ifarch %{ix86}
70 --enable-nasm \
71 %endif
72 --enable-mp3x \
73 --enable-mp3rtp \
74 --enable-decode-layer1
75
76 make
77 echo $CFLAGS
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT
82 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
83 # Some apps still expect to find <lame.h>
84 ln -sf lame/lame.h $RPM_BUILD_ROOT%{_includedir}/lame.h
85 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
86
87
88 %check
89 make test
90
91
92 %post libs -p /sbin/ldconfig
93
94 %postun libs -p /sbin/ldconfig
95
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100
101 %files
102 %defattr (-,root,root,-)
103 %doc README TODO USAGE doc/html/*.html doc/html/*.css
104 %{_bindir}/lame
105 %{_bindir}/mp3rtp
106 %{_mandir}/man1/lame.1*
107
108 %files libs
109 %defattr(-,root,root,-)
110 %doc ChangeLog COPYING LICENSE
111 %{_libdir}/libmp3lame.so.*
112
113 %files devel
114 %defattr (-,root,root,-)
115 %doc API HACKING STYLEGUIDE
116 %{_libdir}/libmp3lame.so
117 %{_includedir}/lame/
118 %{_includedir}/lame.h
119
120 %files mp3x
121 %defattr (-,root,root,-)
122 %{_bindir}/mp3x
123
124 %changelog
125 * Fri Oct 29 2010 Kozinov Ivan <kozinov@gmail.com> - 3.98.4-1
126 - Build for 1.1

mercurial