• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1%define name     speexdsp
2%define ver      1.2rc3
3%define rel      1
4
5Summary: An open-source, patent-free speech codec
6Name: %name
7Version: %ver
8Release: %rel
9License: BSD
10Group: Application/Devel
11Source: http://www.speex.org/download/%{name}-%{ver}.tar.gz
12URL: http://www.speex.org/
13Vendor: Speex
14Packager: Jean-Marc Valin (jean-marc.valin@usherbrooke.ca)
15BuildRoot: /var/tmp/%{name}-build-root
16Docdir: /usr/share/doc
17
18%description
19Speex is a patent-free audio codec designed especially for voice (unlike
20Vorbis which targets general audio) signals and providing good narrowband
21and wideband quality. This project aims to be complementary to the Vorbis
22codec.
23
24%package devel
25Summary:	Speex development files
26Group:		Development/Libraries
27Requires:	%{name} = %{version}
28
29%description devel
30Speex development files.
31
32%changelog
33* Thu Oct 03 2002 Jean-Marc Valin
34- Added devel package inspired from PLD spec file
35
36* Tue Jul 30 2002 Fredrik Rambris <boost@users.sourceforge.net> 0.5.2
37- Added buildroot and docdir and ldconfig. Makes it builadble by non-roots
38  and also doesn't write to actual library paths when building.
39
40%prep
41%setup
42
43%build
44export CFLAGS='-O3'
45./configure --prefix=/usr --enable-shared --enable-static
46make
47
48%install
49rm -rf $RPM_BUILD_ROOT
50make DESTDIR=$RPM_BUILD_ROOT install
51
52%post -p /sbin/ldconfig
53%postun -p /sbin/ldconfig
54
55%files
56%defattr(644,root,root,755)
57%doc COPYING AUTHORS ChangeLog NEWS README
58%doc doc/manual.pdf
59%attr(755,root,root) %{_bindir}/speex*
60%attr(755,root,root) %{_libdir}/libspeex*.so*
61
62%files devel
63%defattr(644,root,root,755)
64%attr(755,root,root) %{_libdir}/libspeex*.la
65%{_includedir}/speex/speex*.h
66%{_libdir}/pkgconfig/speexdsp.pc
67%{_libdir}/libspeex*.a
68