Logoj0ke.net Open Build Service > Projects > multimedia:SL12 > lame > Changes
Sign Up | Log In

Changes of Revision 2

[-] Changed lame.spec
x
 
1
@@ -1,35 +1,45 @@
2
 # vim: set ts=4 sw=4 et:
3
 
4
+# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
5
+#
6
+# All modifications and additions to the file contributed by third parties
7
+# remain the property of their copyright owners, unless otherwise agreed
8
+# upon. The license for this file, and modifications and additions to the
9
+# file, is the same license as for the pristine package itself (unless the
10
+# license for the pristine package is not an Open Source License, in which
11
+# case the license is the MIT License). An "Open Source License" is a
12
+# license that conforms to the Open Source Definition (Version 1.9)
13
+# published by the Open Source Initiative.
14
+
15
+# Please submit bugfixes or comments via http://bugs.links2linux.org/
16
+
17
 %define soname 0
18
 
19
-%if %{suse_version} > 1120
20
+%if 0%{?suse_version} > 1120
21
 %bcond_with gtk1
22
 %else
23
 %bcond_without gtk1
24
 %endif
25
 
26
-Summary:        LAME Ain't an MP3 Encoder
27
 Name:           lame
28
-Version:        3.98.4
29
-Release:        7.1
30
-License:        GNU Library General Public License version 2 (LGPL v2)
31
+Version:        3.99.5
32
+Release:        1002.4
33
+License:        LGPL-2.0+
34
 URL:            http://lame.sourceforge.net/
35
+Summary:        LAME Ain't an MP3 Encoder
36
 Group:          Productivity/Multimedia/Sound/Editors and Convertors
37
-# http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz
38
-Source:         lame-%{version}.tar.bz2
39
-Patch2:         http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-sound/lame/files/lame-3.98-shared-frontend.patch
40
-Patch4:         http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-sound/lame/files/lame-3.98.2-get_audio.patch
41
-Patch5:         lame-tgetstr.patch
42
+Source:         http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz
43
 Source99:       lame-rpmlintrc
44
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
45
-BuildRequires:  gcc glibc-devel make pkgconfig ncurses-devel nasm
46
-BuildRequires:  flac-devel
47
-# BuildRequires:  libsndfile-devel
48
+%ifarch %{ix86}
49
+BuildRequires:  nasm
50
+%endif
51
+BuildRequires:  ncurses-devel
52
+BuildRequires:  pkgconfig
53
 %if %{with gtk1}
54
 BuildRequires:  gtk-devel
55
 %endif
56
-BuildRequires:  autoconf automake libtool
57
-Requires:       libmp3lame%{soname} = %{version}
58
+Requires:       libmp3lame%{soname} >= %{version}
59
 
60
 %description
61
 LAME is an educational tool to be used for learning about MP3 encoding.
62
@@ -51,13 +61,11 @@
63
 a patent free audio compression codec for the GNU project.
64
 
65
 This package contains additional documentation files in
66
-  %{_docdir}/%{name}/
67
+  %{_defaultdocdir}/%{name}/
68
 
69
 %package -n libmp3lame%{soname}
70
 Summary:        LAME Ain't an MP3 Encoder
71
 Group:          System/Libraries
72
-Provides:       liblame = %{version}-%{release}
73
-Provides:       libmp3lame = %{version}-%{release}
74
 
75
 %description -n libmp3lame%{soname}
76
 LAME is an educational tool to be used for learning about MP3 encoding.
77
@@ -70,7 +78,6 @@
78
 Summary:        LAME Ain't an MP3 Encoder
79
 Group:          Development/Libraries/C and C++
80
 Requires:       libmp3lame%{soname} = %{version}
81
-Provides:       liblame-devel = %{version}
82
 
83
 %description -n libmp3lame-devel
84
 LAME is an educational tool to be used for learning about MP3 encoding.
85
@@ -82,8 +89,7 @@
86
 %package -n lame-mp3rtp
87
 Summary:        MP3 Encoder for RTP Streaming
88
 Group:          Productivity/Multimedia/Sound/Editors and Convertors
89
-Requires:       libmp3lame%{soname} = %{version}
90
-Provides:       mp3rtp = %{version}
91
+Requires:       libmp3lame%{soname} >= %{version}
92
 
93
 %description -n lame-mp3rtp
94
 LAME is an educational tool to be used for learning about MP3 encoding.
95
@@ -98,8 +104,7 @@
96
 %package -n lame-mp3x
97
 Summary:        MP3 Frame Analyzer
98
 Group:          Productivity/Multimedia/Sound/Visualization
99
-Requires:       libmp3lame%{soname} = %{version}
100
-Provides:       mp3x = %{version}
101
+Requires:       libmp3lame%{soname} >= %{version}
102
 
103
 %description -n lame-mp3x
104
 LAME is an educational tool to be used for learning about MP3 encoding.
105
@@ -114,9 +119,12 @@
106
 
107
 %prep
108
 %setup -q
109
-%patch2 -p1
110
-%patch4
111
-%patch5
112
+%if 0%{?suse_version} > 1210
113
+find . -type f \( -name configure.in -o -name Makefile.am \) | while read f; do
114
+    perl -n -i.orig -e 's/\s+\S*ansi2knr// if /^AUTOMAKE_OPTIONS/ ; print unless /^AM_C_PROTOTYPES/' "$f"
115
+done
116
+%endif
117
+
118
 %if !%{with gtk1}
119
 # dirty
120
 sed -i -e 's/AM_PATH_GTK.*/HAVE_GTK=no/' configure.in
121
@@ -124,8 +132,6 @@
122
 %endif
123
 
124
 %build
125
-autoreconf -fiv
126
-
127
 LIBS="-lm" \
128
 CFLAGS="%{optflags}" \
129
 %configure \
130
@@ -140,53 +146,42 @@
131
     --enable-mp3x \
132
 %endif
133
     --with-fileio=lame \
134
+    --enable-dynamic-frontends \
135
+    --disable-rpath \
136
     --disable-static
137
  
138
-%__make %{?_smp_flags}
139
+%__make %{?_smp_flags} pkgdocdir=%{_defaultdocdir}/%{name}/
140
 
141
 %install
142
-%makeinstall
143
-rm -rf "%{buildroot}%{_datadir}/doc"
144
+%__make install pkgdocdir=%{_defaultdocdir}/%{name}/ DESTDIR="%{buildroot}"
145
 rm -f %{buildroot}%{_libdir}/libmp3lame.la
146
 
147
-%__install -d "%{buildroot}%{_docdir}/%{name}"
148
-DOC_MAIN="$PWD/lame.main.doc.lst"
149
-DOC_DOC="$PWD/lame.doc.doc.lst"
150
-echo -n >"$DOC_MAIN"
151
-echo -n >"$DOC_DOC"
152
-for f in LICENSE COPYING; do
153
-    echo "%doc %{_docdir}/%{name}/$f" >>"$DOC_MAIN"
154
-    %__install -m0644 "$f" "%{buildroot}%{_docdir}/%{name}/"
155
-done
156
-for f in USAGE API TODO README* HACKING ChangeLog; do
157
-    echo "%doc %{_docdir}/%{name}/$f" >>"$DOC_DOC"
158
-    %__install -m0644 "$f" "%{buildroot}%{_docdir}/%{name}/"
159
+for f in ChangeLog README TODO USAGE; do
160
+    install -m0644 "$f" "%{buildroot}%{_defaultdocdir}/%{name}/"
161
 done
162
 
163
 %post   -n libmp3lame%{soname} -p /sbin/ldconfig
164
 %postun -n libmp3lame%{soname} -p /sbin/ldconfig
165
 
166
-%clean
167
-%{?buildroot:%__rm -rf "%{buildroot}"}
168
-
169
-%files -f lame.main.doc.lst
170
+%files
171
 %defattr(-,root,root)
172
-%doc %dir %{_docdir}/%{name}
173
 %{_bindir}/lame
174
-%doc %{_mandir}/man1/lame.1%{ext_man}
175
+%{_mandir}/man1/lame.1*
176
 
177
-%files doc -f lame.doc.doc.lst
178
+%files doc
179
 %defattr(-,root,root)
180
-%doc %dir %{_docdir}/%{name}
181
+%{_defaultdocdir}/%{name}
182
 
183
 %files -n libmp3lame%{soname}
184
-%defattr(-,root,root)
185
+%defattr(0644,root,root,0755)
186
+%doc COPYING LICENSE
187
 %{_libdir}/libmp3lame.so.%{soname}
188
 %{_libdir}/libmp3lame.so.%{soname}.*
189
 
190
 %files -n libmp3lame-devel
191
 %defattr(-,root,root)
192
-%{_includedir}/lame
193
+%doc API HACKING STYLEGUIDE
194
+%{_includedir}/lame/
195
 %{_libdir}/libmp3lame.so
196
 
197
 %files -n lame-mp3rtp
198
@@ -200,77 +195,3 @@
199
 %endif
200
 
201
[+] Deleted lame-3.98-shared-frontend.patch ^
[+] Deleted lame-3.98.2-get_audio.patch ^
[+] Deleted lame-tgetstr.patch ^
Changed lame-3.99.5.tar.gz ^