From 8140f828811f413683f9a8785da40845f7af5b6b Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:00:21 +0100 Subject: [PATCH] update to 0.16.2 [release 0.16.2-1mamba;Sat Jul 23 2022] --- libmad.spec | 43 ++++++++++++++++--------------------------- 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/libmad.spec b/libmad.spec index 129478e..65fe1ae 100644 --- a/libmad.spec +++ b/libmad.spec @@ -1,19 +1,18 @@ Name: libmad -Version: 0.15.1b -Release: 5mamba +Version: 0.16.2 +Release: 1mamba Summary: A library for high-quality mpeg audio decoding Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.underbit.com/products/mad/ -Source: ftp://ftp.mars.org/pub/mpeg/%{name}-%{version}.tar.gz +Source: https://github.com/tenacityteam/libmad.git/%{version}/libmad-%{version}.tar.bz2 Patch0: %{name}-0.15.1b-gcc-4.3.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description LibMad is a library for high-quality mpeg audio decoding. @@ -34,32 +33,19 @@ This is the devel package. %prep %setup -q -sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub -%patch0 -p1 - -# create an additional pkgconfig file -cat << _EOF > mad.pc -prefix=%{_prefix} -exec_prefix=%{_prefix} -libdir=%{_libdir} -includedir=%{_includedir} - -Name: mad -Description: High-quality MPEG audio decoder -Requires: -Version: 0.15.1b -Libs: -L%{_libdir} -lmad -lm -Cflags: -I%{_includedir} -_EOF +#sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub +#%patch0 -p1 %build -%configure +%cmake -d build + %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall -install -p -D -m0644 mad.pc %{buildroot}%{_libdir}/pkgconfig/mad.pc +%makeinstall -C build + +#install -p -D -m0644 mad.pc %{buildroot}%{_libdir}/pkgconfig/mad.pc %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -74,14 +60,17 @@ install -p -D -m0644 mad.pc %{buildroot}%{_libdir}/pkgconfig/mad.pc %files devel %defattr(-, root, root) -%{_libdir}/libmad.a -%{_libdir}/libmad.la %{_libdir}/libmad.so -%{_libdir}/pkgconfig/mad.pc %{_includedir}/*.h +%dir %{_libdir}/cmake/mad +%{_libdir}/cmake/mad/mad*.cmake +%{_libdir}/pkgconfig/libmad.pc %doc CHANGES README TODO %changelog +* Sat Jul 23 2022 Silvan Calarco 0.16.2-1mamba +- update to 0.16.2 + * Sat Dec 12 2020 Silvan Calarco 0.15.1b-5mamba - rebuilt with debug package