| 1 | Summary: A voice compression format (codec)
|
|---|
| 2 | Name: speex
|
|---|
| 3 | Version: 1.2.0
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | License: BSD
|
|---|
| 6 | Group: System Environment/Libraries
|
|---|
| 7 | URL: https://www.speex.org/
|
|---|
| 8 | %if !0%{?os2_version}
|
|---|
| 9 | Source0: https://downloads.xiph.org/releases/speex/%{name}-%{version}.tar.gz
|
|---|
| 10 | %else
|
|---|
| 11 | %scm_source github https://github.com/TeLLie/%{name}-os2 %{version}-os2
|
|---|
| 12 | %endif
|
|---|
| 13 | BuildRequires: gcc
|
|---|
| 14 | BuildRequires: pkgconfig(ogg)
|
|---|
| 15 | BuildRequires: pkgconfig(speexdsp)
|
|---|
| 16 |
|
|---|
| 17 | %description
|
|---|
| 18 | Speex is a patent-free compression format designed especially for
|
|---|
| 19 | speech. It is specialized for voice communications at low bit-rates in
|
|---|
| 20 | the 2-45 kbps range. Possible applications include Voice over IP
|
|---|
| 21 | (VoIP), Internet audio streaming, audio books, and archiving of speech
|
|---|
| 22 | data (e.g. voice mail).
|
|---|
| 23 |
|
|---|
| 24 | %package devel
|
|---|
| 25 | Summary: Development package for %{name}
|
|---|
| 26 | Group: Development/Libraries
|
|---|
| 27 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 28 |
|
|---|
| 29 | %description devel
|
|---|
| 30 | Speex is a patent-free compression format designed especially for
|
|---|
| 31 | speech. This package contains development files for %{name}
|
|---|
| 32 |
|
|---|
| 33 | %package tools
|
|---|
| 34 | Summary: The tools package for %{name}
|
|---|
| 35 | Group: Applications/Multimedia
|
|---|
| 36 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 37 |
|
|---|
| 38 | %description tools
|
|---|
| 39 | Speex is a patent-free compression format designed especially for
|
|---|
| 40 | speech. This package contains tools files and user's manual for %{name}.
|
|---|
| 41 |
|
|---|
| 42 | %debug_package
|
|---|
| 43 |
|
|---|
| 44 | %prep
|
|---|
| 45 | %if !0%{?os2_version}
|
|---|
| 46 | %setup -q
|
|---|
| 47 | %else
|
|---|
| 48 | %scm_setup
|
|---|
| 49 | %endif
|
|---|
| 50 |
|
|---|
| 51 | %build
|
|---|
| 52 | autoreconf -vfi
|
|---|
| 53 | export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 54 | export LIBS="-lcx -lmmpm2"
|
|---|
| 55 | export CFLAGS="-idirafter /@unixroot/usr/include/os2tk45"
|
|---|
| 56 |
|
|---|
| 57 | %configure --disable-static --enable-binaries
|
|---|
| 58 | # Remove rpath from speexenc and speexdec
|
|---|
| 59 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|---|
| 60 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|---|
| 61 |
|
|---|
| 62 | %if !0%{?os2_version}
|
|---|
| 63 | %make_build
|
|---|
| 64 | %else
|
|---|
| 65 | make %{?_smp_mflags}
|
|---|
| 66 | %endif
|
|---|
| 67 |
|
|---|
| 68 | %install
|
|---|
| 69 | %make_install
|
|---|
| 70 | rm -f $RPM_BUILD_ROOT%{_docdir}/speex/manual.pdf
|
|---|
| 71 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
|---|
| 72 |
|
|---|
| 73 | %if !0%{?os2_version}
|
|---|
| 74 | %ldconfig_scriptlets
|
|---|
| 75 | %endif
|
|---|
| 76 |
|
|---|
| 77 | %files
|
|---|
| 78 | %license COPYING
|
|---|
| 79 | %doc AUTHORS TODO ChangeLog README NEWS
|
|---|
| 80 | %if !0%{?os2_version}
|
|---|
| 81 | %{_libdir}/libspeex.so.1*
|
|---|
| 82 | %else
|
|---|
| 83 | %{_libdir}/*.dll
|
|---|
| 84 | %endif
|
|---|
| 85 |
|
|---|
| 86 | %files devel
|
|---|
| 87 | %doc doc/manual.pdf
|
|---|
| 88 | %{_includedir}/speex
|
|---|
| 89 | %{_datadir}/aclocal/speex.m4
|
|---|
| 90 | %{_libdir}/pkgconfig/speex.pc
|
|---|
| 91 | %if !0%{?os2_version}
|
|---|
| 92 | %{_libdir}/libspeex.so
|
|---|
| 93 | %exclude %{_libdir}/libspeex.la
|
|---|
| 94 | %else
|
|---|
| 95 | %{_libdir}/*.a
|
|---|
| 96 | %endif
|
|---|
| 97 |
|
|---|
| 98 | %files tools
|
|---|
| 99 | %if !0%{?os2_version}
|
|---|
| 100 | %{_bindir}/speexenc
|
|---|
| 101 | %{_bindir}/speexdec
|
|---|
| 102 | %else
|
|---|
| 103 | %{_bindir}/speexenc.exe
|
|---|
| 104 | %{_bindir}/speexdec.exe
|
|---|
| 105 | %endif
|
|---|
| 106 | %{_mandir}/man1/speexenc.1*
|
|---|
| 107 | %{_mandir}/man1/speexdec.1*
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 | %changelog
|
|---|
| 111 | * Wed Sep 30 2020 Elbert Pol <elbert.pol@gmail.com> - 1.2.0-1
|
|---|
| 112 | - First RPM for OS2
|
|---|