Package init
This commit is contained in:
commit
3b154e303f
BIN
speexdsp-1.2rc3.tar.gz
Normal file
BIN
speexdsp-1.2rc3.tar.gz
Normal file
Binary file not shown.
36
speexdsp-fixbuilds-774c87d.patch
Normal file
36
speexdsp-fixbuilds-774c87d.patch
Normal file
@ -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 <stdint.h>"],
|
||||||
|
+ [test "$ac_cv_header_inttypes_h" = "yes"], [INCLUDE_STDINT="#include <inttypes.h>"],
|
||||||
|
+ [test "$ac_cv_header_sys_types_h" = "yes"], [INCLUDE_STDINT="#include <sys/types.h>"])
|
||||||
|
+
|
||||||
|
+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 <stdint.h>
|
||||||
|
-#elif defined HAVE_INTTYPES_H
|
||||||
|
-# include <inttypes.h>
|
||||||
|
-#elif defined HAVE_SYS_TYPES_H
|
||||||
|
-# include <sys/types.h>
|
||||||
|
-#endif
|
||||||
|
+@INCLUDE_STDINT@
|
||||||
|
|
||||||
|
typedef @SIZE16@ spx_int16_t;
|
||||||
|
typedef @USIZE16@ spx_uint16_t;
|
||||||
74
speexdsp.spec
Normal file
74
speexdsp.spec
Normal file
@ -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<shenyangyang4@huawei.com> - 1.2-2.rc3
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:move the license
|
||||||
|
|
||||||
|
* Tue Aug 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.2-1.rc3
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user