commit 3b154e303f7249e3e7462100e669c4119cacfa5d Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:17:25 2019 -0400 Package init diff --git a/speexdsp-1.2rc3.tar.gz b/speexdsp-1.2rc3.tar.gz new file mode 100644 index 0000000..23d7228 Binary files /dev/null and b/speexdsp-1.2rc3.tar.gz differ diff --git a/speexdsp-fixbuilds-774c87d.patch b/speexdsp-fixbuilds-774c87d.patch new file mode 100644 index 0000000..c02ee29 --- /dev/null +++ b/speexdsp-fixbuilds-774c87d.patch @@ -0,0 +1,36 @@ +diff --git a/configure.ac b/configure.ac +index 2cd2d1e..1de0c23 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -334,6 +334,12 @@ AC_SUBST([USIZE16]) + AC_SUBST([SIZE32]) + AC_SUBST([USIZE32]) + ++AS_IF([test "$ac_cv_header_stdint_h" = "yes"], [INCLUDE_STDINT="#include "], ++ [test "$ac_cv_header_inttypes_h" = "yes"], [INCLUDE_STDINT="#include "], ++ [test "$ac_cv_header_sys_types_h" = "yes"], [INCLUDE_STDINT="#include "]) ++ ++AC_SUBST([INCLUDE_STDINT]) ++ + AC_CONFIG_FILES([ + Makefile libspeexdsp/Makefile doc/Makefile SpeexDSP.spec + include/Makefile include/speex/Makefile speexdsp.pc +diff --git a/include/speex/speexdsp_config_types.h.in b/include/speex/speexdsp_config_types.h.in +index 02b82fd..5ea7b55 100644 +--- a/include/speex/speexdsp_config_types.h.in ++++ b/include/speex/speexdsp_config_types.h.in +@@ -1,13 +1,7 @@ + #ifndef __SPEEX_TYPES_H__ + #define __SPEEX_TYPES_H__ + +-#if defined HAVE_STDINT_H +-# include +-#elif defined HAVE_INTTYPES_H +-# include +-#elif defined HAVE_SYS_TYPES_H +-# include +-#endif ++@INCLUDE_STDINT@ + + typedef @SIZE16@ spx_int16_t; + typedef @USIZE16@ spx_uint16_t; diff --git a/speexdsp.spec b/speexdsp.spec new file mode 100644 index 0000000..7659814 --- /dev/null +++ b/speexdsp.spec @@ -0,0 +1,74 @@ +%define ver rc3 + +Name: speexdsp +Summary: An open-source, patent-free speech codec +Version: 1.2 +Release: 2.%{ver} +License: BSD +Source0: http://www.speex.org/download/%{name}-%{version}%{ver}.tar.gz +URL: http://www.speex.org/ + +Patch0: speexdsp-fixbuilds-774c87d.patch + +Buildrequires: autoconf automake libtool gdb + +%description +Speex is a patent-free audio codec designed especially for voice (unlike +Vorbis which targets general audio) signals and providing good narrowband +and wideband quality. This project aims to be complementary to the Vorbis +codec. + +%package devel +Summary: Speex development files +Requires: %{name} = %{version}-%{release} + +%description devel +Speex development files. + +%package_help + +%prep +%autosetup -n %{name}-%{version}%{ver} -p1 + +%build +autoreconf -fiv +%configure --enable-shared \ +%ifarch aarch64 + --disable-neon +%endif +%make_build + +%install +%make_install + +%delete_la_and_a + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc ChangeLog +%license COPYING AUTHORS +%{_libdir}/lib%{name}.so.* + +%files devel +%defattr(644,root,root,755) +%{_includedir}/speex/speex*.h +%{_libdir}/pkgconfig/*.pc +%{_libdir}/lib%{name}.so + +%files help +%defattr(644,root,root,755) +%doc NEWS README +%{_docdir}/%{name}/*.pdf + +%changelog +* Fri Sep 27 2019 shenyangyang - 1.2-2.rc3 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:move the license + +* Tue Aug 20 2019 openEuler Buildteam - 1.2-1.rc3 +- Package init