[go: nahoru, domu]

blob: 440856bb0c1382c95a09737018a7d9ce05212448 [file] [log] [blame]
jmvalin48d7bc22002-05-22 04:05:23 +00001%define name @PACKAGE@
2%define ver @VERSION@
3%define rel 1
4
5Summary: An open-source, patent-free speech codec
6Name: %name
7Version: %ver
8Release: %rel
jm93fefcc2006-06-12 15:01:49 +00009License: BSD
jmvalin48d7bc22002-05-22 04:05:23 +000010Group: Application/Devel
jm45c3a622002-11-10 05:17:53 +000011Source: http://www.speex.org/download/%{name}-%{ver}.tar.gz
12URL: http://www.speex.org/
jmvalin48d7bc22002-05-22 04:05:23 +000013Vendor: Speex
jmfca0ad02005-09-28 07:29:26 +000014Packager: Jean-Marc Valin (jean-marc.valin@usherbrooke.ca)
jmvalina6a2b3f2002-07-31 04:01:34 +000015BuildRoot: /var/tmp/%{name}-build-root
16Docdir: /usr/share/doc
jmvalin48d7bc22002-05-22 04:05:23 +000017
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
jmvalinf398c652002-10-03 05:48:12 +000024%package devel
25Summary: Speex development files
26Group: Development/Libraries
27Requires: %{name} = %{version}
28
29%description devel
30Speex development files.
31
jmvalina6a2b3f2002-07-31 04:01:34 +000032%changelog
jmvalinf398c652002-10-03 05:48:12 +000033* Thu Oct 03 2002 Jean-Marc Valin
34- Added devel package inspired from PLD spec file
35
jmvalina6a2b3f2002-07-31 04:01:34 +000036* 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
jmvalin48d7bc22002-05-22 04:05:23 +000040%prep
41%setup
42
43%build
jme92f8302005-04-29 05:33:45 +000044export CFLAGS='-O3'
jmvalin48d7bc22002-05-22 04:05:23 +000045./configure --prefix=/usr --enable-shared --enable-static
46make
47
48%install
jmvalina6a2b3f2002-07-31 04:01:34 +000049rm -rf $RPM_BUILD_ROOT
50make DESTDIR=$RPM_BUILD_ROOT install
51
52%post -p /sbin/ldconfig
53%postun -p /sbin/ldconfig
jmvalin48d7bc22002-05-22 04:05:23 +000054
55%files
jmvalinf398c652002-10-03 05:48:12 +000056%defattr(644,root,root,755)
jm4eae37a2002-10-11 03:51:37 +000057%doc COPYING AUTHORS ChangeLog NEWS README
jm29a12152002-11-11 07:21:35 +000058%doc doc/manual.pdf
jmvalinf398c652002-10-03 05:48:12 +000059%attr(755,root,root) %{_bindir}/speex*
jmb9554732003-03-17 22:40:57 +000060%attr(755,root,root) %{_libdir}/libspeex*.so*
jmvalinf398c652002-10-03 05:48:12 +000061
62%files devel
63%defattr(644,root,root,755)
64%attr(755,root,root) %{_libdir}/libspeex*.la
jme32fc2c2004-07-14 07:06:50 +000065%{_includedir}/speex/speex*.h
jm417d9c12007-10-15 10:31:51 +000066%{_libdir}/pkgconfig/speexdsp.pc
jmvalinf398c652002-10-03 05:48:12 +000067%{_libdir}/libspeex*.a