author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19693 | ecfa915b40d9 |
permissions | -rw-r--r-- |
19603 | 1 |
# |
19604
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
2 |
# spec file for package speex |
19603 | 3 |
# |
19693 | 4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
19603 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8 |
||
9 |
Name: speex |
|
19639
fa7dfc28b738
2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19615
diff
changeset
|
10 |
License: Xiph |
19603 | 11 |
Group: Application/Devel |
12 |
Version: 1.0.5 |
|
13 |
Release: 1 |
|
19693 | 14 |
Distribution: Java Desktop System |
19603 | 15 |
Vendor: Sun Microsystems, Inc. |
16 |
Summary: An open-source, patent-free speech codec |
|
17 |
Source: http://www.speex.org/download/%{name}-%{version}.tar.gz |
|
18 |
URL: http://www.speex.org/ |
|
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
20 |
Docdir: %{_docdir}/%{name} |
|
21 |
Autoreqprov: on |
|
22 |
||
23 |
%description |
|
24 |
Speex is a patent-free audio codec designed especially for voice (unlike |
|
25 |
Vorbis which targets general audio) signals and providing good narrowband |
|
26 |
and wideband quality. This project aims to be complementary to the Vorbis |
|
27 |
codec. |
|
28 |
||
29 |
%package devel |
|
30 |
Summary: Speex development files |
|
31 |
Group: Development/Libraries |
|
32 |
Requires: %{name} = %{version} |
|
33 |
||
34 |
%description devel |
|
35 |
Speex development files. |
|
36 |
||
37 |
%prep |
|
38 |
%setup -q |
|
39 |
||
40 |
%build |
|
41 |
%ifos linux |
|
42 |
if [ -x /usr/bin/getconf ]; then |
|
43 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
44 |
fi |
|
45 |
%else |
|
46 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
47 |
%endif |
|
48 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
49 |
CPUS=1 |
|
50 |
fi |
|
51 |
||
19604
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
52 |
CFLAGS="$RPM_OPT_FLAGS" \ |
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
53 |
./configure --enable-shared \ |
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
54 |
--enable-static \ |
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
55 |
--prefix=%{_prefix} \ |
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
56 |
--sysconfdir=%{_sysconfdir} \ |
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
57 |
--mandir=%{_mandir} |
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
58 |
|
19603 | 59 |
make -j $CPUS |
60 |
||
61 |
%install |
|
62 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
63 |
||
19604
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
64 |
#Clean up unpackaged files |
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
65 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
66 |
rm $RPM_BUILD_ROOT%{_libdir}/*la |
19603 | 67 |
|
68 |
%clean |
|
69 |
rm -rf $RPM_BUILD_ROOT |
|
70 |
||
71 |
%post -p /sbin/ldconfig |
|
72 |
%postun -p /sbin/ldconfig |
|
73 |
||
74 |
%files |
|
19615
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
75 |
%defattr(-,root,root) |
19603 | 76 |
%doc COPYING AUTHORS ChangeLog NEWS README |
77 |
%{_datadir}/doc/* |
|
78 |
%{_datadir}/man/man1/speexenc.1* |
|
79 |
%{_datadir}/man/man1/speexdec.1* |
|
80 |
%attr(755,root,root) %{_bindir}/speex* |
|
81 |
%attr(755,root,root) %{_libdir}/libspeex*.so* |
|
82 |
||
83 |
%files devel |
|
19615
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
84 |
%defattr(-,root,root) |
19603 | 85 |
%{_includedir}/speex*.h |
86 |
%{_includedir}/speex/speex*.h |
|
87 |
%{_datadir}/aclocal/speex.m4 |
|
88 |
%{_libdir}/pkgconfig/speex.pc |
|
89 |
||
90 |
%changelog |
|
19639
fa7dfc28b738
2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19615
diff
changeset
|
91 |
* Tue Aug 02 2005 - [email protected] |
fa7dfc28b738
2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19615
diff
changeset
|
92 |
- Change copyright to license |
fa7dfc28b738
2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19615
diff
changeset
|
93 |
|
19615
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
94 |
* Tue Jul 26 2005 - [email protected] |
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
95 |
- Fix defattr for files and files devel |
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
96 |
|
19604
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
97 |
* Thu Jul 21 2005 - [email protected] |
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
98 |
- Remove *.a and *.la files. Fix typo. Add proper configure arguments |
6c353def7600
2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19603
diff
changeset
|
99 |
|
19603 | 100 |
* Wed Jul 20 2005 - [email protected] |
101 |
- Initial spec file checkin |