From 7a162a2968d6a144f331104b2fcbc48dbe089baf Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 03:43:58 +0100 Subject: [PATCH] rebuilt [release 2.0.2-2mamba;Sat Nov 27 2021] --- libaacplus-2.0.2-au.patch | 34 ++++++++++++++++++++++++++++++++++ libaacplus.spec | 22 ++++++++++++++-------- 2 files changed, 48 insertions(+), 8 deletions(-) create mode 100644 libaacplus-2.0.2-au.patch diff --git a/libaacplus-2.0.2-au.patch b/libaacplus-2.0.2-au.patch new file mode 100644 index 0000000..602c775 --- /dev/null +++ b/libaacplus-2.0.2-au.patch @@ -0,0 +1,34 @@ +diff -ura package.orig/frontend/au_channel.h package.new/frontend/au_channel.h +--- package.orig/frontend/au_channel.h 2017-06-12 16:45:07.801636703 -0500 ++++ package.new/frontend/au_channel.h 2017-06-12 18:34:47.922727878 -0500 +@@ -12,7 +12,7 @@ + int aFmt; + } WavInfo; + +-inline FILE* AuChannelOpen (const char* filename, WavInfo* info) ++static inline FILE* AuChannelOpen (const char* filename, WavInfo* info) + { + unsigned char header[12]; + unsigned char data[WAV_HEADER_SIZE]; +@@ -48,18 +48,18 @@ + return handle; + } + +-inline void AuChannelClose (FILE *audioChannel) ++static inline void AuChannelClose (FILE *audioChannel) + { + fclose(audioChannel); + } + +-inline size_t AuChannelReadShort(FILE *audioChannel, short *samples, int nSamples, int *readed) ++static inline size_t AuChannelReadShort(FILE *audioChannel, short *samples, int nSamples, int *readed) + { + *readed = fread(samples, 2, nSamples, audioChannel); + return *readed <= 0; + } + +-inline size_t AuChannelReadFloat(FILE *audioChannel, float *samples, int nSamples, int *readed) ++static inline size_t AuChannelReadFloat(FILE *audioChannel, float *samples, int nSamples, int *readed) + { + *readed = fread(samples, 4, nSamples, audioChannel); + return *readed <= 0; diff --git a/libaacplus.spec b/libaacplus.spec index 2a84ed2..5576ef1 100644 --- a/libaacplus.spec +++ b/libaacplus.spec @@ -1,19 +1,20 @@ Name: libaacplus Version: 2.0.2 -Release: 1mamba +Release: 2mamba Summary: AAC+ encoding library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://tipok.org.ua/node/17 -Source: http://217.20.164.161/~tipok/aacplus/libaacplus-%{version}.tar.gz +URL: https://tipok.org.ua/node/17 +Source: http://tipok.org.ua/downloads/media/aac+/libaacplus/libaacplus-%{version}.tar.gz +Source1: https://www.3gpp.org/ftp/Specs/archive/26_series/26.410/26410-800.zip +Patch0: libaacplus-2.0.2-au.patch License: LGPL, 3GPP ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libfftw-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description AAC+ encoding library. @@ -22,8 +23,7 @@ AAC+ encoding library. Group: Development/Libraries Summary: Development files for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} -## note: you can add this requirement if .pc files are provided by this package -#Requires: pkg-config +Requires: pkg-config %description devel This package contains libraries and header files for developing applications that use %{name}. @@ -40,11 +40,14 @@ This package contains utility applications for %{name}. %prep %setup -q +%patch0 -p1 -b .au +cp %{SOURCE1} src sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" configure.ac +./autogen.sh %build -./autogen.sh %configure + make %install @@ -74,8 +77,11 @@ make %files tools %defattr(-,root,root) %{_bindir}/aacplusenc -%{_mandir}/man1/aacplusenc.1.gz +%{_mandir}/man1/aacplusenc.1* %changelog +* Sat Nov 27 2021 Silvan Calarco 2.0.2-2mamba +- rebuilt + * Fri Jan 11 2013 Silvan Calarco 2.0.2-1mamba - package created by silvan using the webbuild interface