liblame/liblame.spec

112 lines
3.1 KiB
RPMSpec

%define pkgver1 %(echo %version | cut -d. -f1)
%define pkgver2 %(echo %version | cut -d. -f2)
%define pkgver3 %(echo %version | cut -d. -f3)
Name: liblame
Version: 3.100
Release: 1mamba
Summary: LAME Ain't an MP3 Encoder
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://lame.sourceforge.net/
Source: http://downloads.sourceforge.net/sourceforge/lame/lame-%{version}.tar.gz
#Source: http://downloads.sourceforge.net/sourceforge/lame/lame-%{pkgver1}%{pkgver2}-%{pkgver3}.tar.gz
Patch0: %{name}-3.98-shared-frontend.patch
Patch1: %{name}-3.98-gtk-path.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libncurses-devel
## AUTOBUILDREQ-END
BuildRequires: libsndfile-devel >= 1.0.11
BuildRequires: nasm
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
The lame package contains a MP3 encoder.
This is useful for creating compressed audio files.
%package devel
Summary: Development files for cdrdao
Group: Development/Libraries
%description devel
The lame package contains a MP3 encoder.
This is useful for creating compressed audio files.
This package contains static libraries and header files need for development.
%prep
%setup -q -n lame-%{version}
#%patch0 -p1
%patch1 -p0
%build
%configure \
--enable-decode-layer1 \
--enable-decode-layer2 \
--disable-mp3x \
--enable-mp3rtp \
--enable-shared \
--enable-nasm
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/lame
%{_bindir}/mp3rtp
%{_libdir}/libmp3lame.so.*
%{_libdir}/libmp3lame.so
%{_mandir}/man1/*
%doc ChangeLog COPYING LICENSE README USAGE
%files devel
%defattr(-,root,root)
%dir %{_includedir}/lame
%{_includedir}/lame/*.h
%{_datadir}/doc/lame/html
%{_libdir}/*.a
%{_libdir}/*.la
%doc API HACKING STYLEGUIDE DEFINES TODO
%changelog
* Sun Oct 22 2017 Automatic Build System <autodist@mambasoft.it> 3.100-1mamba
- automatic version update by autodist
* Sun Dec 02 2012 Automatic Build System <autodist@mambasoft.it> 3.99.5-1mamba
- automatic version update by autodist
* Tue Feb 01 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.98.4-2mamba
- disable mp3x build to remove dependency on gtk1
* Thu Jun 03 2010 Automatic Build System <autodist@mambasoft.it> 3.98.4-1mamba
- update to 3.98.4
* Wed May 20 2009 Automatic Build System <autodist@mambasoft.it> 3.98.2-2mamba
- automatic rebuild by autodist
* Wed Jan 21 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.98.2-1mamba
- update to 3.98.2
* Wed Feb 13 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 3.97-1mamba
- update to 3.97
- moved libmp3lame.so to main package as required by audacity
* Fri Jun 10 2005 Davide Madrisan <davide.madrisan@qilinux.it> 3.96.1-1qilnx
- update to version 3.96.1 by autospec
- specfile updates/fixes
* Fri Jul 11 2003 Silvan Calarco <silvan.calarco@qinet.it> 3.93.1-1qilnx
- first build for liblame