source: spec/trunk/SPECS/speex.spec@ 1750

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

spec: speex: Release version 1.2.0-1.

File size: 2.6 KB
Line 
1Summary: A voice compression format (codec)
2Name: speex
3Version: 1.2.0
4Release: 1%{?dist}
5License: BSD
6Group: System Environment/Libraries
7URL: https://www.speex.org/
8%if !0%{?os2_version}
9Source0: 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
13BuildRequires: gcc
14BuildRequires: pkgconfig(ogg)
15BuildRequires: pkgconfig(speexdsp)
16
17%description
18Speex is a patent-free compression format designed especially for
19speech. It is specialized for voice communications at low bit-rates in
20the 2-45 kbps range. Possible applications include Voice over IP
21(VoIP), Internet audio streaming, audio books, and archiving of speech
22data (e.g. voice mail).
23
24%package devel
25Summary: Development package for %{name}
26Group: Development/Libraries
27Requires: %{name}%{?_isa} = %{version}-%{release}
28
29%description devel
30Speex is a patent-free compression format designed especially for
31speech. This package contains development files for %{name}
32
33%package tools
34Summary: The tools package for %{name}
35Group: Applications/Multimedia
36Requires: %{name}%{?_isa} = %{version}-%{release}
37
38%description tools
39Speex is a patent-free compression format designed especially for
40speech. 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
52autoreconf -vfi
53export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
54export LIBS="-lcx -lmmpm2"
55export CFLAGS="-idirafter /@unixroot/usr/include/os2tk45"
56
57%configure --disable-static --enable-binaries
58# Remove rpath from speexenc and speexdec
59sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
60sed -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
65make %{?_smp_mflags}
66%endif
67
68%install
69%make_install
70rm -f $RPM_BUILD_ROOT%{_docdir}/speex/manual.pdf
71rm -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
Note: See TracBrowser for help on using the repository browser.