source: spec/trunk/SPECS/speexdsp.spec@ 1711

Last change on this file since 1711 was 1711, checked in by tellie, 5 years ago

spec: speexdsp: Release version 1.2.0-1.

File size: 2.4 KB
Line 
1Name: speexdsp
2Version: 1.2.0
3Release: 1%{?dist}
4Summary: A voice compression format (DSP)
5
6Group: System Environment/Libraries
7License: BSD
8URL: http://www.speex.org/
9%if !0%{?os2_version}
10Source0: 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
15BuildRequires: gcc
16# speexdsp was split from speex in 1.2rc2. As speexdsp does not depend on
17# speex, a versioned conflict is required.
18Conflicts: speex <= 1.2-0.21.rc1
19
20%description
21Speex is a patent-free compression format designed especially for
22speech. It is specialized for voice communications at low bit-rates in
23the 2-45 kbps range. Possible applications include Voice over IP
24(VoIP), Internet audio streaming, audio books, and archiving of speech
25data (e.g. voice mail).
26
27This is the DSP package, see the speex package for the codec part.
28
29%package devel
30Summary: Development package for %{name}
31Group: Development/Libraries
32Requires: %{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.
35Conflicts: speex-devel <= 1.2-0.21.rc1
36
37%description devel
38Speex is a patent-free compression format designed especially for
39speech. This package contains development files for %{name}
40
41This 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
53autoreconf -vfi
54export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
55export LIBS="-lcx -lmmpm2"
56export 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
67make %{?_smp_mflags}
68%endif
69
70%install
71%make_install
72
73# Remove libtool archives
74find %{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
Note: See TracBrowser for help on using the repository browser.