author | chrisk |
Mon, 31 Aug 2009 16:23:04 +0000 | |
changeset 16434 | f21f22550fe9 |
parent 16282 | ef6ce3e6a694 |
child 16522 | f415ad2143e1 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package speex |
|
3 |
# |
|
12231 | 4 |
# Copyright (c) 2008 Sun Microsystems, Inc. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner yippi |
11132 | 9 |
# bugdb: https://trac.xiph.org/ |
9397 | 10 |
# |
11 |
Name: speex |
|
14571 | 12 |
License: Xiph.org BSD-style |
16282 | 13 |
Group: Libraries/Multimedia |
14716 | 14 |
%define tarball_version 1.2rc1 |
15745 | 15 |
Version: 1.2 |
9397 | 16 |
Release: 1 |
17 |
Distribution: Java Desktop System |
|
18 |
Vendor: Sun Microsystems, Inc. |
|
19 |
Summary: An open-source, patent-free speech codec |
|
9921 | 20 |
Source: http://downloads.us.xiph.org/releases/%{name}/%{name}-%{tarball_version}.tar.gz |
15165
edd399a101c3
* base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents:
14716
diff
changeset
|
21 |
# date:2009-02-19 type:branding owner:mattman |
16282 | 22 |
Patch1: speex-01-manpages.diff |
9397 | 23 |
URL: http://speex.org/ |
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
25 |
Docdir: %{_docdir}/%{name} |
|
26 |
Autoreqprov: on |
|
27 |
||
28 |
%description |
|
29 |
Speex is a patent-free audio codec designed especially for voice (unlike |
|
30 |
Vorbis which targets general audio) signals and providing good narrowband |
|
31 |
and wideband quality. This project aims to be complementary to the Vorbis |
|
32 |
codec. |
|
33 |
||
34 |
%package devel |
|
16282 | 35 |
Summary: Speex development files |
36 |
Group: Development/Libraries |
|
37 |
Requires: %{name} = %{version} |
|
9397 | 38 |
|
39 |
%description devel |
|
40 |
Speex development files. |
|
41 |
||
42 |
%prep |
|
9921 | 43 |
%setup -q -n %{name}-%{tarball_version} |
15165
edd399a101c3
* base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents:
14716
diff
changeset
|
44 |
%patch1 -p1 |
edd399a101c3
* base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents:
14716
diff
changeset
|
45 |
|
9397 | 46 |
%build |
47 |
%ifos linux |
|
48 |
if [ -x /usr/bin/getconf ]; then |
|
49 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
50 |
fi |
|
51 |
%else |
|
52 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
53 |
%endif |
|
54 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
55 |
CPUS=1 |
|
56 |
fi |
|
57 |
||
58 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
59 |
./configure --enable-shared \ |
|
60 |
--enable-static \ |
|
61 |
--prefix=%{_prefix} \ |
|
62 |
--sysconfdir=%{_sysconfdir} \ |
|
63 |
--mandir=%{_mandir} |
|
64 |
||
65 |
make |
|
66 |
||
67 |
%install |
|
68 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
69 |
||
70 |
#Clean up unpackaged files |
|
71 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
72 |
rm $RPM_BUILD_ROOT%{_libdir}/*la |
|
73 |
||
74 |
%clean |
|
75 |
rm -rf $RPM_BUILD_ROOT |
|
76 |
||
77 |
%post -p /sbin/ldconfig |
|
78 |
%postun -p /sbin/ldconfig |
|
79 |
||
80 |
%files |
|
81 |
%defattr(-,root,root) |
|
82 |
%doc COPYING AUTHORS ChangeLog NEWS README |
|
83 |
%{_datadir}/doc/* |
|
84 |
%{_datadir}/man/man1/speexenc.1* |
|
85 |
%{_datadir}/man/man1/speexdec.1* |
|
86 |
%attr(755,root,root) %{_bindir}/speex* |
|
87 |
%attr(755,root,root) %{_libdir}/libspeex*.so* |
|
88 |
||
89 |
%files devel |
|
90 |
%defattr(-,root,root) |
|
91 |
%{_includedir}/speex/speex*.h |
|
92 |
%{_datadir}/aclocal/speex.m4 |
|
93 |
%{_libdir}/pkgconfig/speex.pc |
|
94 |
||
95 |
%changelog |
|
15165
edd399a101c3
* base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents:
14716
diff
changeset
|
96 |
* Thu Feb 19 2009 - [email protected] |
edd399a101c3
* base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents:
14716
diff
changeset
|
97 |
- Add manpages patch for attributes and ARC comment |
edd399a101c3
* base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents:
14716
diff
changeset
|
98 |
|
14716 | 99 |
* Fri Dec 05 2008 - [email protected] |
100 |
- Bump to 1.2rc1 |
|
101 |
||
12231 | 102 |
* Tue Apr 29 2008 - [email protected] |
103 |
- Bump to 1.2beta3.2 |
|
104 |
||
11318 | 105 |
* Tue Dec 11 2007 - [email protected] |
106 |
- Bump to 1.2beta3. |
|
107 |
||
11149 | 108 |
* Wed Nov 07 2007 - [email protected] |
109 |
- Bump to 1.2beta2. |
|
110 |
||
9921 | 111 |
* Thu May 17 2007 - [email protected] |
112 |
- Use a numeric version number. 'beta' is not permitted by WOS integration |
|
113 |
scripts. |
|
114 |
||
9397 | 115 |
* Fri Dec 01 2006 - [email protected] |
116 |
- Bump to 1.2beta1. Remove obsolete patch, 01-empty-struct. |
|
117 |
||
118 |
* Thu Jul 20 2006 - [email protected] |
|
119 |
- Bump to 1.1.12. Add patch, 01-empty-struct, to fix empty struct build error. |
|
120 |
||
121 |
* Wed Jan 04 2006 - [email protected] |
|
122 |
- Single threaded make because of timing issues. |
|
123 |
||
124 |
* Tue Jan 03 2006 - [email protected] |
|
125 |
- Bump to 1.1.11.1. |
|
126 |
||
127 |
* Tue Aug 23 2005 - [email protected] |
|
128 |
- Remove an incorrect line from %files. |
|
129 |
||
130 |
* Mon Aug 16 2005 - [email protected] |
|
131 |
- Bump to 1.1.10. |
|
132 |
||
133 |
* Tue Aug 02 2005 - [email protected] |
|
134 |
- Change copyright to license |
|
135 |
||
136 |
* Tue Jul 26 2005 - [email protected] |
|
137 |
- Fix defattr for files and files devel |
|
138 |
||
139 |
* Thu Jul 21 2005 - [email protected] |
|
140 |
- Remove *.a and *.la files. Fix typo. Add proper configure arguments |
|
141 |
||
142 |
* Wed Jul 20 2005 - [email protected] |
|
143 |
- Initial spec file checkin |