| 1 | Name: speexdsp
|
|---|
| 2 | Version: 1.2.0
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: A voice compression format (DSP)
|
|---|
| 5 |
|
|---|
| 6 | Group: System Environment/Libraries
|
|---|
| 7 | License: BSD
|
|---|
| 8 | URL: http://www.speex.org/
|
|---|
| 9 | %if !0%{?os2_version}
|
|---|
| 10 | Source0: http://downloads.xiph.org/releases/speex/%{name}-%{version}.tar.gz
|
|---|
| 11 | %else
|
|---|
| 12 | %scm_source github https://github.com/TeLLie/%{name}-os2 %{version}-os2
|
|---|
| 13 | %endif
|
|---|
| 14 |
|
|---|
| 15 | BuildRequires: gcc
|
|---|
| 16 | # speexdsp was split from speex in 1.2rc2. As speexdsp does not depend on
|
|---|
| 17 | # speex, a versioned conflict is required.
|
|---|
| 18 | Conflicts: speex <= 1.2-0.21.rc1
|
|---|
| 19 |
|
|---|
| 20 | %description
|
|---|
| 21 | Speex is a patent-free compression format designed especially for
|
|---|
| 22 | speech. It is specialized for voice communications at low bit-rates in
|
|---|
| 23 | the 2-45 kbps range. Possible applications include Voice over IP
|
|---|
| 24 | (VoIP), Internet audio streaming, audio books, and archiving of speech
|
|---|
| 25 | data (e.g. voice mail).
|
|---|
| 26 |
|
|---|
| 27 | This is the DSP package, see the speex package for the codec part.
|
|---|
| 28 |
|
|---|
| 29 | %package devel
|
|---|
| 30 | Summary: Development package for %{name}
|
|---|
| 31 | Group: Development/Libraries
|
|---|
| 32 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 33 | # speexdsp was split from speex in 1.2rc2. As speexdsp does not depend on
|
|---|
| 34 | # speex, a versioned conflict is required.
|
|---|
| 35 | Conflicts: speex-devel <= 1.2-0.21.rc1
|
|---|
| 36 |
|
|---|
| 37 | %description devel
|
|---|
| 38 | Speex is a patent-free compression format designed especially for
|
|---|
| 39 | speech. This package contains development files for %{name}
|
|---|
| 40 |
|
|---|
| 41 | This is the DSP package, see the speex package for the codec part.
|
|---|
| 42 |
|
|---|
| 43 | %debug_package
|
|---|
| 44 |
|
|---|
| 45 | %prep
|
|---|
| 46 | %if !0%{?os2_version}
|
|---|
| 47 | %autosetup -p1
|
|---|
| 48 | %else
|
|---|
| 49 | %scm_setup
|
|---|
| 50 | %endif
|
|---|
| 51 |
|
|---|
| 52 | %build
|
|---|
| 53 | autoreconf -vfi
|
|---|
| 54 | export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 55 | export LIBS="-lcx -lmmpm2"
|
|---|
| 56 | export CFLAGS="-idirafter /@unixroot/usr/include/os2tk45"
|
|---|
| 57 |
|
|---|
| 58 | %configure \
|
|---|
| 59 | %ifarch aarch64
|
|---|
| 60 | --disable-neon \
|
|---|
| 61 | %endif
|
|---|
| 62 | --disable-static
|
|---|
| 63 |
|
|---|
| 64 | %if !0%{?os2_version}
|
|---|
| 65 | %make_build
|
|---|
| 66 | %else
|
|---|
| 67 | make %{?_smp_mflags}
|
|---|
| 68 | %endif
|
|---|
| 69 |
|
|---|
| 70 | %install
|
|---|
| 71 | %make_install
|
|---|
| 72 |
|
|---|
| 73 | # Remove libtool archives
|
|---|
| 74 | find %{buildroot} -type f -name "*.la" -delete
|
|---|
| 75 |
|
|---|
| 76 | %if !0%{?os2_version}
|
|---|
| 77 | %ldconfig_scriptlets
|
|---|
| 78 | %endif
|
|---|
| 79 |
|
|---|
| 80 | %files
|
|---|
| 81 | %doc AUTHORS COPYING TODO ChangeLog README NEWS doc/manual.pdf
|
|---|
| 82 | %doc %{_docdir}/speexdsp/manual.pdf
|
|---|
| 83 | %if !0%{?os2_version}
|
|---|
| 84 | %{_libdir}/libspeexdsp.so.*
|
|---|
| 85 | %else
|
|---|
| 86 | %{_libdir}/*.dll
|
|---|
| 87 | %endif
|
|---|
| 88 |
|
|---|
| 89 | %files devel
|
|---|
| 90 | %{_includedir}/speex
|
|---|
| 91 | %{_libdir}/pkgconfig/speexdsp.pc
|
|---|
| 92 | %if !0%{?os2_version}
|
|---|
| 93 | %{_libdir}/libspeexdsp.so
|
|---|
| 94 | %else
|
|---|
| 95 | %{_libdir}/*.a
|
|---|
| 96 | %endif
|
|---|
| 97 |
|
|---|
| 98 | %changelog
|
|---|
| 99 | * Tue Sep 29 2020 Elbert Pol <elbert.pol@gmail.com> - 1.2.0-1
|
|---|
| 100 | - First RPM for OS2
|
|---|
| 101 |
|
|---|