Sync from SUSE:SLFO:Main lame revision 9a8840d595ec4d1563aba879f7733206
This commit is contained in:
commit
4ddf73888b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
baselibs.conf
Normal file
1
baselibs.conf
Normal file
@ -0,0 +1 @@
|
||||
libmp3lame0
|
BIN
lame-3.100.tar.gz
(Stored with Git LFS)
Normal file
BIN
lame-3.100.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
25
lame-field-width-fix.patch
Normal file
25
lame-field-width-fix.patch
Normal file
@ -0,0 +1,25 @@
|
||||
Description: Fix warning on 64 bit machines. Explicitely set variables as
|
||||
unsigned ints.
|
||||
Origin: http://git.debian.org/?p=pkg-multimedia/lame.git;a=blob;f=debian/patches/07-field-width-fix.patch
|
||||
Forwarded: commit:1.282
|
||||
Applied-Upstream: commit:1.282
|
||||
|
||||
--- a/frontend/parse.c
|
||||
+++ b/frontend/parse.c
|
||||
@@ -372,11 +372,11 @@
|
||||
const char *b = get_lame_os_bitness();
|
||||
const char *v = get_lame_version();
|
||||
const char *u = get_lame_url();
|
||||
- const size_t lenb = strlen(b);
|
||||
- const size_t lenv = strlen(v);
|
||||
- const size_t lenu = strlen(u);
|
||||
- const size_t lw = 80; /* line width of terminal in characters */
|
||||
- const size_t sw = 16; /* static width of text */
|
||||
+ const unsigned int lenb = strlen(b);
|
||||
+ const unsigned int lenv = strlen(v);
|
||||
+ const unsigned int lenu = strlen(u);
|
||||
+ const unsigned int lw = 80; /* line width of terminal in characters */
|
||||
+ const unsigned int sw = 16; /* static width of text */
|
||||
|
||||
if (lw >= lenb + lenv + lenu + sw || lw < lenu + 2)
|
||||
/* text fits in 80 chars per line, or line even too small for url */
|
2
lame-rpmlintrc
Normal file
2
lame-rpmlintrc
Normal file
@ -0,0 +1,2 @@
|
||||
addFilter("name-repeated-in-summary")
|
||||
addFilter("shared-lib-calls-exit")
|
270
lame.changes
Normal file
270
lame.changes
Normal file
@ -0,0 +1,270 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 11 08:20:04 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
|
||||
|
||||
- Build AVX2 enabled hwcaps library for x86_64-v3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 15 13:55:43 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
- Remove bad %defattr - not needed and causes SHLIB non-executable
|
||||
rpmlint error
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 8 20:03:47 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Escape the "$" character in spec file, so that the non-existing
|
||||
variable does not get replaced by empty string
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 28 13:58:25 UTC 2020 - Dave Plater <davejplater@gmail.com>
|
||||
|
||||
- Create pkgconfig file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 21 13:00:57 UTC 2017 - idonmez@suse.com
|
||||
|
||||
- Update to version 3.100
|
||||
* Improved detection of MPEG audio data in RIFF WAVE files.
|
||||
sf#3545112 Invalid sampling detection
|
||||
* New switch --gain <decibel>, range -20.0 to +12.0, a more
|
||||
convenient way to apply Gain adjustment in decibels,
|
||||
than the use of --scale <factor>.
|
||||
* Fix for sf#3558466 Bug in path handling
|
||||
* Fix for sf#3567844 problem with Tag genre
|
||||
* Fix for sf#3565659 no progress indication with pipe input
|
||||
* Fix for sf#3544957 scale (empty) silent encode without warning
|
||||
* Fix for sf#3580176 environment variable LAMEOPT doesn't
|
||||
work anymore
|
||||
* Fix for sf#3608583 input file name displayed with wrong
|
||||
character encoding (on windows console with CP_UTF8)
|
||||
* Fix dereference NULL and Buffer not NULL terminated issues.
|
||||
* Fix dereference of a null pointer possible in loop.
|
||||
* Make sure functions with SSE instructions maintain their own
|
||||
properly aligned stack. Thanks to Fabian Greffrath
|
||||
* Multiple Stack and Heap Corruptions from Malicious File.
|
||||
* Fix a division by zero vulnerability.
|
||||
* Fix CVE-2017-9410 fill_buffer_resample function in
|
||||
libmp3lame/util.c heap-based buffer over-read and ap
|
||||
* Fix CVE-2017-9411 fill_buffer_resample function in
|
||||
libmp3lame/util.c invalid memory read and application crash
|
||||
* Fix CVE-2017-9412 unpack_read_samples function in
|
||||
frontend/get_audio.c invalid memory read and application crash
|
||||
* Fix clip detect scale suggestion unaware of scale input value
|
||||
* HIP decoder bug fixed: decoding mixed blocks of lower sample
|
||||
frequency Layer3 data resulted in internal buffer overflow.
|
||||
* Add lame_encode_buffer_interleaved_int()
|
||||
- Drop upstream patches:
|
||||
* lame-Add-check-for-invalid-input-sample-rate.patch
|
||||
* lame-ansi2knr2.patch
|
||||
* lame-bits_per_sample.patch
|
||||
* lame-force_align_arg_pointer.patch
|
||||
* lame-gtk1.patch
|
||||
* lame-int_resample_ratio.patch
|
||||
* lame-msse.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 2 10:33:47 UTC 2017 - jengelh@inai.de
|
||||
|
||||
- Rename %soname to %sover to better reflect its use.
|
||||
- Replace goals with what the software really does.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 20 16:21:57 UTC 2015 - olaf@aepfle.de
|
||||
|
||||
- Add patch for SSE
|
||||
- Add check for invalid input sample rate
|
||||
- Avoid malformed wav causing floating point exception (integer divide by zero)
|
||||
- Fix warning on 64 bit machines. Explicitely set variables as unsigned ints.
|
||||
- Enable functions with SSE instructions to maintain their own properly aligned stack
|
||||
- Fix decision if sample rate ratio is an integer value or not
|
||||
- run autoreconf, set GTK_CFLAGS
|
||||
- Add patch to remove ansi2knr instead of using sed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 3 09:52:08 UTC 2015 - scarabeus@opensuse.org
|
||||
|
||||
- Redux the conditionals for not building gtk1 anywhere anymore
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 1 08:14:17 UTC 2013 - obs@botter.cc
|
||||
|
||||
- Fix logical issue in hvogel's fix
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 31 15:30:39 UTC 2013 - hvogel@opensuse.org
|
||||
|
||||
- Fix the conditional building of gtk1 binaries
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 15 09:36:16 UTC 2013 - obs@botter.cc
|
||||
|
||||
- Fix pkgconfig(gtk+-2.0) for >= 11.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 19 13:34:07 UTC 2012 - reddwarf@opensuse.org
|
||||
|
||||
- Fix bug reporting link
|
||||
- BuildRequires nasm only in x86-32 (there is no assembly available
|
||||
for other archs)
|
||||
- Stop BuildRequiring flac-devel, it's not used
|
||||
- Remove autoreconf call and related BuildRequires and patches
|
||||
- Remove old compatibility Provides
|
||||
- Run spec-cleaner
|
||||
- Removed all patches (unneeded)
|
||||
- Replace some documentation and let the build system install its
|
||||
own
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 17 10:47:48 UTC 2012 - pascal.bleser@opensuse.org
|
||||
|
||||
- update to 3.99.5: fixed build on 12.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 22 06:19:40 UTC 2011 - pascal.bleser@opensuse.org
|
||||
|
||||
- disable sndfile for IO, causes more issues than anything else (warnings and
|
||||
issues in several applications that use lame)
|
||||
- lame-tgetstr.patch: fix build on openSUSE > 12.1, tput and friends are now in
|
||||
libtinfo
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 7 01:28:48 UTC 2011 - pascal.bleser@opensuse.org
|
||||
|
||||
- add Gentoo patch that fixes reading from stdin
|
||||
- add rpmlintrc
|
||||
- split out documentation into subpackage
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 18 14:30:45 UTC 2010 - lnussel@suse.de
|
||||
|
||||
- disable use of gtk in 11.3, was dropped
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 27 02:05:44 UTC 2010 - pascal@links2linux.de
|
||||
|
||||
- update to 3.98.4:
|
||||
* fix for #2973877, a problem regarding the new drain code
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 28 00:59:08 UTC 2010 - pascal@links2linux.de
|
||||
|
||||
- update to 3.98.3:
|
||||
* a very important interaction with the FhG decoder was fixed
|
||||
* the hip audio decoding library is used to perform a better job
|
||||
when reencoding MP3 files to MP3 files
|
||||
* bugs were worked around to improve compatibility with ffmpeg
|
||||
* many fixes were made regarding ID3 tags, including correct
|
||||
specification of the length of the tracks
|
||||
|
||||
- dropped cvs patch, merged upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 21 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de
|
||||
|
||||
- cleanups cvs patch
|
||||
- removed static library
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 30 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de
|
||||
|
||||
- patch from cvs to fix buffer problems with ffmpeg
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 23 00:00:00 UTC 2008 - guru@unixtech.be
|
||||
|
||||
- added Authors: in description blocks
|
||||
- use libsndfile for fileio, as it seems to be the prefered default now
|
||||
- update to 3.98.2:
|
||||
* adds some quality improvements to the generated audio files
|
||||
* enables the user to choose fractional variable bitrate qualities
|
||||
* upgraded support for libsndfile1 (and, in turn, can use many file formats as input, including FLAC files)
|
||||
* includes many bugfixes, including peripheral tools for user convenience
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 13 00:00:00 UTC 2008 - guru@unixtech.be
|
||||
|
||||
- added ldconfig in post and postun
|
||||
- changed release to 0.pm.1 (instead of 1)
|
||||
- split off shared library and -devel packages (still Requires by lame for
|
||||
backwards compatibility, may change later)
|
||||
- fixed Group:
|
||||
- added BuildRequires
|
||||
- added debuginfo support
|
||||
- revamped spec file
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 20 00:00:00 UTC 2006 - henne@links2linux.de
|
||||
|
||||
- update to version 3.97
|
||||
- build against libm for k3b
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 28 00:00:00 UTC 2006 - henne@links2linux.de
|
||||
|
||||
- package missing include dir
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 27 00:00:00 UTC 2004 - henne@links2linux.de
|
||||
|
||||
- make spec file lib/lib64 clean
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 17 00:00:00 UTC 2004 - henne@links2linux.de
|
||||
|
||||
- updated to version 3.96.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 5 00:00:00 UTC 2004 - henne@links2linux.de
|
||||
|
||||
- updated to version 3.95.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 28 00:00:00 UTC 2003 - henne@links2linux.de
|
||||
|
||||
- updated to version 3.93.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 31 00:00:00 UTC 2003 - henne@links2linux.de
|
||||
|
||||
- remove buildarch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 23 00:00:00 UTC 2003 - henne@links2linux.de
|
||||
|
||||
- compiled for 8.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 15 00:00:00 UTC 2002 - henne@links2linux.de
|
||||
|
||||
- updated version to 3.92
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 28 00:00:00 UTC 2002 - waldemar@links2linux.de
|
||||
|
||||
- new release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 15 00:00:00 UTC 2001 - waldemar@links2linux.de
|
||||
|
||||
- new beta
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 23 00:00:00 UTC 2001 - waldemar@links2linux.de
|
||||
|
||||
- added mlame, script for multiple encoding with lame
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 11 00:00:00 UTC 2001 - waldemar@links2linux.de
|
||||
|
||||
- compiled without ogg/vorbis support, because to buggy
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 3 00:00:00 UTC 2001 - waldemar@links2linux.de
|
||||
|
||||
- first release
|
||||
|
||||
|
160
lame.spec
Normal file
160
lame.spec
Normal file
@ -0,0 +1,160 @@
|
||||
#
|
||||
# spec file for package lame
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define sover 0
|
||||
Name: lame
|
||||
Version: 3.100
|
||||
Release: 0
|
||||
Summary: The LAME MP3 encoder
|
||||
License: LGPL-2.0-or-later
|
||||
Group: Productivity/Multimedia/Sound/Editors and Convertors
|
||||
URL: https://lame.sourceforge.net/
|
||||
Source: http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz
|
||||
Source99: lame-rpmlintrc
|
||||
Source1000: baselibs.conf
|
||||
Patch1: lame-field-width-fix.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(gtk+-2.0)
|
||||
Requires: libmp3lame%{sover} >= %{version}
|
||||
%{?suse_build_hwcaps_libs}
|
||||
%ifarch %{ix86}
|
||||
BuildRequires: nasm
|
||||
%endif
|
||||
|
||||
%description
|
||||
LAME is an educational tool to be used for learning about MP3 encoding.
|
||||
The goal of the LAME project is to use the open source model to improve the
|
||||
psycho acoustics, noise shaping and speed of MP3.
|
||||
Another goal of the LAME project is to use these improvements for the basis of
|
||||
a patent free audio compression codec for the GNU project.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for the LAME MP3 encoder
|
||||
Group: Productivity/Multimedia/Sound/Editors and Convertors
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
LAME is an encoder that converts audio to the MP3 file format. It has
|
||||
an improved psychoacoustic model and performs well in codec listening
|
||||
tests.
|
||||
|
||||
%package -n libmp3lame%{sover}
|
||||
Summary: The LAME MP3 encoder library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libmp3lame%{sover}
|
||||
LAME is an encoder that converts audio to the MP3 file format. It has
|
||||
an improved psychoacoustic model and performs well in codec listening
|
||||
tests.
|
||||
|
||||
%package -n libmp3lame-devel
|
||||
Summary: Development files for the LAME MP3 encoder
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libmp3lame%{sover} = %{version}
|
||||
|
||||
%description -n libmp3lame-devel
|
||||
Contains the header files for use with LAME's encoding library.
|
||||
|
||||
%package mp3rtp
|
||||
Summary: MP3 Encoder for RTP Streaming
|
||||
Group: Productivity/Multimedia/Sound/Editors and Convertors
|
||||
Requires: libmp3lame%{sover} >= %{version}
|
||||
|
||||
%description mp3rtp
|
||||
LAME is an encoder that converts audio to the MP3 file format. It has
|
||||
an improved psychoacoustic model and performs well in codec listening
|
||||
tests.
|
||||
|
||||
This package includes "mp3rtp", an MP3 encoder with RTP streaming of the output.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
LIBS="-lm" \
|
||||
CFLAGS="%{optflags}" \
|
||||
%configure \
|
||||
--enable-nasm \
|
||||
--enable-decoder \
|
||||
--disable-debug \
|
||||
--enable-mp3rtp \
|
||||
--with-fileio=lame \
|
||||
--enable-dynamic-frontends \
|
||||
--disable-rpath \
|
||||
--disable-static
|
||||
|
||||
%make_build pkgdocdir=%{_defaultdocdir}/%{name}/
|
||||
|
||||
%check
|
||||
%make_build test
|
||||
|
||||
%install
|
||||
make install pkgdocdir=%{_defaultdocdir}/%{name}/ DESTDIR=%{buildroot}
|
||||
rm -f %{buildroot}%{_libdir}/libmp3lame.la
|
||||
|
||||
#make package config file
|
||||
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
||||
cat << EOF > %{buildroot}%{_libdir}/pkgconfig/lame.pc
|
||||
prefix=%{_prefix}
|
||||
libdir=%{_libdir}
|
||||
includedir=%{_includedir}/lame
|
||||
|
||||
Name: lame
|
||||
Description: encoder that converts audio to the MP3 file format.
|
||||
Version: %{version}
|
||||
Libs: -L\${libdir} -lmp3lame
|
||||
Cflags: -I\${includedir}
|
||||
EOF
|
||||
pushd %{buildroot}%{_libdir}/pkgconfig/
|
||||
ln -s lame.pc libmp3lame.pc
|
||||
popd
|
||||
|
||||
for f in ChangeLog README TODO USAGE; do
|
||||
install -m0644 "$f" "%{buildroot}%{_defaultdocdir}/%{name}/"
|
||||
done
|
||||
|
||||
%post -n libmp3lame%{sover} -p /sbin/ldconfig
|
||||
%postun -n libmp3lame%{sover} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%{_bindir}/lame
|
||||
%{_mandir}/man1/lame.1%{?ext_man}
|
||||
|
||||
%files doc
|
||||
%{_defaultdocdir}/%{name}
|
||||
|
||||
%files -n libmp3lame%{sover}
|
||||
%license COPYING LICENSE
|
||||
%{_libdir}/libmp3lame.so.%{sover}
|
||||
%{_libdir}/libmp3lame.so.%{sover}.*
|
||||
|
||||
%files -n libmp3lame-devel
|
||||
%doc API HACKING STYLEGUIDE
|
||||
%{_includedir}/lame/
|
||||
%{_libdir}/libmp3lame.so
|
||||
%{_libdir}/pkgconfig/*pc
|
||||
|
||||
%files mp3rtp
|
||||
%{_bindir}/mp3rtp
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user