lame/lame.spec

changeset 1
4667f24fe848
parent 0
4f133201e207
equal deleted inserted replaced
0:5471e632fb4c 1:e8fe8da9ecec
1 Name: lame 1 Name: lame
2 Version: 3.98.4 2 Version: 3.98.4
3 Release: 1.4 3 Release: 20101201
4 Summary: Free MP3 audio compressor 4 Summary: Free MP3 audio compressor
5 5 Vendor: Europalab Software
6 Packager: Michael Schloh von Bennewitz
7 Distribution: MeeGo Thirdparty
6 Group: Applications/Multimedia 8 Group: Applications/Multimedia
7 License: GPLv2+ 9 License: GPLv2+
8 URL: http://lame.sourceforge.net/ 10 URL: http://lame.sourceforge.net/
9 Source0: http://downloads.sourceforge.net/sourceforge/lame/%{name}-%{version}.tar.gz 11 Source0: http://downloads.sourceforge.net/sourceforge/lame/%{name}-%{version}.tar.gz
10 Patch1: %{name}-noexecstack.patch 12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
11 Patch2: %{name}-pmake.patch
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildRequires: ncurses-devel 13 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 14 BuildRequires: pkgconfig
18 %ifarch %{ix86} 15 %ifarch %{ix86}
19 BuildRequires: nasm 16 BuildRequires: nasm
20 %endif 17 %endif
21 Requires: %{name}-libs = %{version}-%{release} 18 Requires: %{name}-libs = %{version}-%{release}
25 commercial encoders. LAME handles MPEG1,2 and 2.5 layer III encoding 22 commercial encoders. LAME handles MPEG1,2 and 2.5 layer III encoding
26 with both constant and variable bitrates. 23 with both constant and variable bitrates.
27 24
28 %package libs 25 %package libs
29 Summary: LAME MP3 encoding library 26 Summary: LAME MP3 encoding library
27 Vendor: Europalab Software
28 Packager: Michael Schloh von Bennewitz
29 Distribution: MeeGo Thirdparty
30 Group: System Environment/Libraries 30 Group: System Environment/Libraries
31 31
32 %description libs 32 %description libs
33 LAME is an open source MP3 encoder whose quality and speed matches
34 commercial encoders. LAME handles MPEG1,2 and 2.5 layer III encoding
35 with both constant and variable bitrates. This package provides the
33 LAME MP3 encoding library. 36 LAME MP3 encoding library.
34 37
35 %package devel 38 %package devel
36 Summary: Development files for %{name} 39 Summary: Development files for %{name}
40 Vendor: Europalab Software
41 Packager: Michael Schloh von Bennewitz
42 Distribution: MeeGo Thirdparty
37 Group: Development/Libraries 43 Group: Development/Libraries
38 Requires: %{name}-libs = %{version}-%{release} 44 Requires: %{name}-libs = %{version}-%{release}
39 45
40 %description devel 46 %description devel
41 This package development files for %{name}. 47 LAME is an open source MP3 encoder whose quality and speed matches
42 48 commercial encoders. LAME handles MPEG1,2 and 2.5 layer III encoding
43 %package mp3x 49 with both constant and variable bitrates. This package provides
44 Summary: MP3 frame analyzer 50 development files for %{name}.
45 Group: Applications/Multimedia
46 Requires: %{name} = %{version}-%{release}
47
48 %description mp3x
49 This package contains the mp3x frame analyzer.
50
51 51
52 %prep 52 %prep
53 %setup -q 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 54 iconv -f ISO-8859-1 -t UTF8 ChangeLog > ChangeLog.tmp && touch -r ChangeLog ChangeLog.tmp && mv ChangeLog.tmp ChangeLog
57 55
58
59 %build 56 %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 \ 57 %configure \
67 --disable-dependency-tracking \
68 --disable-static \
69 %ifarch %{ix86} 58 %ifarch %{ix86}
70 --enable-nasm \ 59 --enable-nasm \
71 %endif 60 %endif
72 --enable-mp3x \
73 --enable-mp3rtp \ 61 --enable-mp3rtp \
74 --enable-decode-layer1 62 --enable-decode-layer1
75 63
76 make 64 %{__make}
77 echo $CFLAGS
78 65
79 %install 66 %install
80 rm -rf $RPM_BUILD_ROOT 67 rm -rf $RPM_BUILD_ROOT
81 make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT 68 %{__make} install DESTDIR=$RPM_BUILD_ROOT
82 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 69 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} 70 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
86 71
87
88 %check 72 %check
89 make test 73 %{__make} test
90
91 74
92 %post libs -p /sbin/ldconfig 75 %post libs -p /sbin/ldconfig
93 76
94 %postun libs -p /sbin/ldconfig 77 %postun libs -p /sbin/ldconfig
95 78
96
97 %clean 79 %clean
98 rm -rf $RPM_BUILD_ROOT 80 rm -rf $RPM_BUILD_ROOT
99
100 81
101 %files 82 %files
102 %defattr (-,root,root,-) 83 %defattr (-,root,root,-)
103 %doc README TODO USAGE doc/html/*.html doc/html/*.css 84 %doc README TODO USAGE doc/html/*.html doc/html/*.css
104 %{_bindir}/lame 85 %{_bindir}/lame
111 %{_libdir}/libmp3lame.so.* 92 %{_libdir}/libmp3lame.so.*
112 93
113 %files devel 94 %files devel
114 %defattr (-,root,root,-) 95 %defattr (-,root,root,-)
115 %doc API HACKING STYLEGUIDE 96 %doc API HACKING STYLEGUIDE
97 %{_libdir}/libmp3lame.a
116 %{_libdir}/libmp3lame.so 98 %{_libdir}/libmp3lame.so
117 %{_includedir}/lame/ 99 %{_includedir}/lame
118 %{_includedir}/lame.h
119
120 %files mp3x
121 %defattr (-,root,root,-)
122 %{_bindir}/mp3x
123 100
124 %changelog 101 %changelog
102 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 3.98.4-20101201
103 - Adjust packaging
104
125 * Fri Oct 29 2010 Kozinov Ivan <kozinov@gmail.com> - 3.98.4-1 105 * Fri Oct 29 2010 Kozinov Ivan <kozinov@gmail.com> - 3.98.4-1
126 - Build for 1.1 106 - Package for MeeGo 1.1

mercurial