diff --git a/pa_stable_v19_20140130.tgz b/pa_stable_v19_20140130.tgz new file mode 100644 index 0000000..04ba9d0 Binary files /dev/null and b/pa_stable_v19_20140130.tgz differ diff --git a/portaudio-doxynodate.patch b/portaudio-doxynodate.patch new file mode 100644 index 0000000..adebd24 --- /dev/null +++ b/portaudio-doxynodate.patch @@ -0,0 +1,21 @@ +diff -Naupr portaudio.orig/Doxyfile portaudio/Doxyfile +--- portaudio.orig/Doxyfile 2006-08-23 10:15:11.000000000 +0200 ++++ portaudio/Doxyfile 2008-12-22 14:11:16.558309299 +0100 +@@ -124,7 +124,7 @@ GENERATE_HTML = YES + HTML_OUTPUT = html + HTML_FILE_EXTENSION = .html + HTML_HEADER = +-HTML_FOOTER = ++HTML_FOOTER = no_date_footer.html + HTML_STYLESHEET = + HTML_ALIGN_MEMBERS = YES + GENERATE_HTMLHELP = NO +diff -Naupr portaudio.orig/no_date_footer.html portaudio/no_date_footer.html +--- portaudio.orig/no_date_footer.html 1970-01-01 01:00:00.000000000 +0100 ++++ portaudio/no_date_footer.html 2008-12-22 14:11:01.144246196 +0100 +@@ -0,0 +1,5 @@ ++
Generated for $projectname by  ++ ++doxygen$doxygenversion
++ ++ diff --git a/portaudio-pkgconfig-alsa.patch b/portaudio-pkgconfig-alsa.patch new file mode 100644 index 0000000..53b6702 --- /dev/null +++ b/portaudio-pkgconfig-alsa.patch @@ -0,0 +1,12 @@ +diff -up portaudio/portaudio-2.0.pc.in.alsa portaudio/portaudio-2.0.pc.in +--- portaudio/portaudio-2.0.pc.in.alsa 2011-05-05 11:55:28.000000000 +0200 ++++ portaudio/portaudio-2.0.pc.in 2011-05-05 11:55:33.000000000 +0200 +@@ -5,7 +5,7 @@ includedir=@includedir@ + + Name: PortAudio + Description: Portable audio I/O +-Requires: ++Requires: alsa + Version: 19 + + Libs: -L${libdir} -lportaudio @LIBS@ diff --git a/portaudio.spec b/portaudio.spec new file mode 100644 index 0000000..aeb6e1c --- /dev/null +++ b/portaudio.spec @@ -0,0 +1,59 @@ +Name: portaudio +Version: 19 +Release: 29 +Summary: Free, cross platform, open-source, audio I/O library +License: MIT +URL: http://www.portaudio.com/ +Source0: http://www.portaudio.com/archives/pa_stable_v19_20140130.tgz +Patch0000: portaudio-doxynodate.patch +Patch0001: portaudio-pkgconfig-alsa.patch +BuildRequires: doxygen alsa-lib-devel jack-audio-connection-kit-devel autoconf automake libtool + +%description +PortAudio is a portable audio I/O library that uses a callback +mechanism to request audio processing.Audio can be generated in +multiple formats. + +%package devel +Summary: Development files for the portaudio audio I/O library +Requires: %{name} = %{version}-%{release} + +%description devel +This package contains files required to build applications that will use the +portaudio library. + +%prep +%autosetup -n %{name} -p1 +autoreconf -i -f + +%build +%configure --disable-static --enable-cxx +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' bindings/cpp/libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' bindings/cpp/libtool +make +doxygen + +%install +%make_install + +%post +/sbin/ldconfig +%postun +/sbin/ldconfig + +%files +%license LICENSE.txt +%doc README.txt +%{_libdir}/*.so.* + +%files devel +%doc doc/html/* +%{_includedir}/portaudiocpp/ +%{_includedir}/*.h +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%exclude %{_libdir}/*.la + +%changelog +* Thu Nov 14 2019 wangye - 19-29 +- Package init