jmvalin | 48d7bc2 | 2002-05-22 04:05:23 +0000 | [diff] [blame] | 1 | %define name @PACKAGE@ |
| 2 | %define ver @VERSION@ |
| 3 | %define rel 1 |
| 4 | |
| 5 | Summary: An open-source, patent-free speech codec |
| 6 | Name: %name |
| 7 | Version: %ver |
| 8 | Release: %rel |
jm | 93fefcc | 2006-06-12 15:01:49 +0000 | [diff] [blame] | 9 | License: BSD |
jmvalin | 48d7bc2 | 2002-05-22 04:05:23 +0000 | [diff] [blame] | 10 | Group: Application/Devel |
jm | 45c3a62 | 2002-11-10 05:17:53 +0000 | [diff] [blame] | 11 | Source: http://www.speex.org/download/%{name}-%{ver}.tar.gz |
| 12 | URL: http://www.speex.org/ |
jmvalin | 48d7bc2 | 2002-05-22 04:05:23 +0000 | [diff] [blame] | 13 | Vendor: Speex |
jm | fca0ad0 | 2005-09-28 07:29:26 +0000 | [diff] [blame] | 14 | Packager: Jean-Marc Valin (jean-marc.valin@usherbrooke.ca) |
jmvalin | a6a2b3f | 2002-07-31 04:01:34 +0000 | [diff] [blame] | 15 | BuildRoot: /var/tmp/%{name}-build-root |
| 16 | Docdir: /usr/share/doc |
jmvalin | 48d7bc2 | 2002-05-22 04:05:23 +0000 | [diff] [blame] | 17 | |
| 18 | %description |
| 19 | Speex is a patent-free audio codec designed especially for voice (unlike |
| 20 | Vorbis which targets general audio) signals and providing good narrowband |
| 21 | and wideband quality. This project aims to be complementary to the Vorbis |
| 22 | codec. |
| 23 | |
jmvalin | f398c65 | 2002-10-03 05:48:12 +0000 | [diff] [blame] | 24 | %package devel |
| 25 | Summary: Speex development files |
| 26 | Group: Development/Libraries |
| 27 | Requires: %{name} = %{version} |
| 28 | |
| 29 | %description devel |
| 30 | Speex development files. |
| 31 | |
jmvalin | a6a2b3f | 2002-07-31 04:01:34 +0000 | [diff] [blame] | 32 | %changelog |
jmvalin | f398c65 | 2002-10-03 05:48:12 +0000 | [diff] [blame] | 33 | * Thu Oct 03 2002 Jean-Marc Valin |
| 34 | - Added devel package inspired from PLD spec file |
| 35 | |
jmvalin | a6a2b3f | 2002-07-31 04:01:34 +0000 | [diff] [blame] | 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 | |
jmvalin | 48d7bc2 | 2002-05-22 04:05:23 +0000 | [diff] [blame] | 40 | %prep |
| 41 | %setup |
| 42 | |
| 43 | %build |
jm | e92f830 | 2005-04-29 05:33:45 +0000 | [diff] [blame] | 44 | export CFLAGS='-O3' |
jmvalin | 48d7bc2 | 2002-05-22 04:05:23 +0000 | [diff] [blame] | 45 | ./configure --prefix=/usr --enable-shared --enable-static |
| 46 | make |
| 47 | |
| 48 | %install |
jmvalin | a6a2b3f | 2002-07-31 04:01:34 +0000 | [diff] [blame] | 49 | rm -rf $RPM_BUILD_ROOT |
| 50 | make DESTDIR=$RPM_BUILD_ROOT install |
| 51 | |
| 52 | %post -p /sbin/ldconfig |
| 53 | %postun -p /sbin/ldconfig |
jmvalin | 48d7bc2 | 2002-05-22 04:05:23 +0000 | [diff] [blame] | 54 | |
| 55 | %files |
jmvalin | f398c65 | 2002-10-03 05:48:12 +0000 | [diff] [blame] | 56 | %defattr(644,root,root,755) |
jm | 4eae37a | 2002-10-11 03:51:37 +0000 | [diff] [blame] | 57 | %doc COPYING AUTHORS ChangeLog NEWS README |
jm | 29a1215 | 2002-11-11 07:21:35 +0000 | [diff] [blame] | 58 | %doc doc/manual.pdf |
jmvalin | f398c65 | 2002-10-03 05:48:12 +0000 | [diff] [blame] | 59 | %attr(755,root,root) %{_bindir}/speex* |
jm | b955473 | 2003-03-17 22:40:57 +0000 | [diff] [blame] | 60 | %attr(755,root,root) %{_libdir}/libspeex*.so* |
jmvalin | f398c65 | 2002-10-03 05:48:12 +0000 | [diff] [blame] | 61 | |
| 62 | %files devel |
| 63 | %defattr(644,root,root,755) |
| 64 | %attr(755,root,root) %{_libdir}/libspeex*.la |
jm | e32fc2c | 2004-07-14 07:06:50 +0000 | [diff] [blame] | 65 | %{_includedir}/speex/speex*.h |
jm | 417d9c1 | 2007-10-15 10:31:51 +0000 | [diff] [blame] | 66 | %{_libdir}/pkgconfig/speexdsp.pc |
jmvalin | f398c65 | 2002-10-03 05:48:12 +0000 | [diff] [blame] | 67 | %{_libdir}/libspeex*.a |