author | yippi |
Thu, 31 May 2012 20:16:52 +0000 | |
changeset 22481 | 1ff6784d9b6f |
parent 20384 | 6a50803f5a65 |
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 |
|
20083
450635fa0066
Synced Brian Cameron's relicensing changes for November release
davelam
parents:
17865
diff
changeset
|
12 |
License: Xiph.org BSD-style, binaries also use some LGPL v2 code. |
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 |
|
17865 | 18 |
Vendor: Xiph |
9397 | 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 |
20384
6a50803f5a65
Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents:
20083
diff
changeset
|
23 |
# date:2010-11-15 type:branding owner:davelam |
6a50803f5a65
Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents:
20083
diff
changeset
|
24 |
Patch2: speex-02-visibility-hidden.diff |
9397 | 25 |
URL: http://speex.org/ |
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
27 |
Docdir: %{_docdir}/%{name} |
|
28 |
Autoreqprov: on |
|
29 |
||
30 |
%description |
|
31 |
Speex is a patent-free audio codec designed especially for voice (unlike |
|
32 |
Vorbis which targets general audio) signals and providing good narrowband |
|
33 |
and wideband quality. This project aims to be complementary to the Vorbis |
|
34 |
codec. |
|
35 |
||
36 |
%package devel |
|
16282 | 37 |
Summary: Speex development files |
38 |
Group: Development/Libraries |
|
39 |
Requires: %{name} = %{version} |
|
9397 | 40 |
|
41 |
%description devel |
|
42 |
Speex development files. |
|
43 |
||
44 |
%prep |
|
9921 | 45 |
%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
|
46 |
%patch1 -p1 |
20384
6a50803f5a65
Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents:
20083
diff
changeset
|
47 |
%patch2 -p1 |
15165
edd399a101c3
* base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents:
14716
diff
changeset
|
48 |
|
9397 | 49 |
%build |
50 |
%ifos linux |
|
51 |
if [ -x /usr/bin/getconf ]; then |
|
52 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
53 |
fi |
|
54 |
%else |
|
55 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
56 |
%endif |
|
57 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
58 |
CPUS=1 |
|
59 |
fi |
|
60 |
||
16522 | 61 |
export LDFLAGS="%_ldflags" |
62 |
export CFLAGS="%optflags" |
|
20384
6a50803f5a65
Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents:
20083
diff
changeset
|
63 |
|
6a50803f5a65
Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents:
20083
diff
changeset
|
64 |
aclocal $ACLOCAL_FLAGS |
6a50803f5a65
Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents:
20083
diff
changeset
|
65 |
automake -a -c -f |
6a50803f5a65
Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents:
20083
diff
changeset
|
66 |
autoconf |
9397 | 67 |
./configure --enable-shared \ |
68 |
--enable-static \ |
|
69 |
--prefix=%{_prefix} \ |
|
16522 | 70 |
--libdir=%{_libdir} \ |
71 |
--bindir=%{_bindir} \ |
|
9397 | 72 |
--sysconfdir=%{_sysconfdir} \ |
73 |
--mandir=%{_mandir} |
|
74 |
||
75 |
make |
|
76 |
||
77 |
%install |
|
78 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
79 |
||
80 |
#Clean up unpackaged files |
|
16522 | 81 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
82 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
9397 | 83 |
|
84 |
%clean |
|
85 |
rm -rf $RPM_BUILD_ROOT |
|
86 |
||
87 |
%post -p /sbin/ldconfig |
|
88 |
%postun -p /sbin/ldconfig |
|
89 |
||
90 |
%files |
|
91 |
%defattr(-,root,root) |
|
92 |
%doc COPYING AUTHORS ChangeLog NEWS README |
|
93 |
%{_datadir}/doc/* |
|
94 |
%{_datadir}/man/man1/speexenc.1* |
|
95 |
%{_datadir}/man/man1/speexdec.1* |
|
96 |
%attr(755,root,root) %{_bindir}/speex* |
|
97 |
%attr(755,root,root) %{_libdir}/libspeex*.so* |
|
98 |
||
99 |
%files devel |
|
100 |
%defattr(-,root,root) |
|
101 |
%{_includedir}/speex/speex*.h |
|
102 |
%{_datadir}/aclocal/speex.m4 |
|
103 |
%{_libdir}/pkgconfig/speex.pc |
|
104 |
||
105 |
%changelog |
|
16522 | 106 |
* Thu Sep 10 2009 - [email protected] |
107 |
- Add 64-bit support |
|
15165
edd399a101c3
* base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents:
14716
diff
changeset
|
108 |
* 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
|
109 |
- Add manpages patch for attributes and ARC comment |
14716 | 110 |
* Fri Dec 05 2008 - [email protected] |
111 |
- Bump to 1.2rc1 |
|
12231 | 112 |
* Tue Apr 29 2008 - [email protected] |
113 |
- Bump to 1.2beta3.2 |
|
11318 | 114 |
* Tue Dec 11 2007 - [email protected] |
115 |
- Bump to 1.2beta3. |
|
11149 | 116 |
* Wed Nov 07 2007 - [email protected] |
117 |
- Bump to 1.2beta2. |
|
9921 | 118 |
* Thu May 17 2007 - [email protected] |
119 |
- Use a numeric version number. 'beta' is not permitted by WOS integration |
|
120 |
scripts. |
|
9397 | 121 |
* Fri Dec 01 2006 - [email protected] |
122 |
- Bump to 1.2beta1. Remove obsolete patch, 01-empty-struct. |
|
123 |
* Thu Jul 20 2006 - [email protected] |
|
124 |
- Bump to 1.1.12. Add patch, 01-empty-struct, to fix empty struct build error. |
|
125 |
* Wed Jan 04 2006 - [email protected] |
|
126 |
- Single threaded make because of timing issues. |
|
127 |
* Tue Jan 03 2006 - [email protected] |
|
128 |
- Bump to 1.1.11.1. |
|
129 |
* Tue Aug 23 2005 - [email protected] |
|
130 |
- Remove an incorrect line from %files. |
|
131 |
* Mon Aug 16 2005 - [email protected] |
|
132 |
- Bump to 1.1.10. |
|
133 |
* Tue Aug 02 2005 - [email protected] |
|
134 |
- Change copyright to license |
|
135 |
* Tue Jul 26 2005 - [email protected] |
|
136 |
- Fix defattr for files and files devel |
|
137 |
* Thu Jul 21 2005 - [email protected] |
|
138 |
- Remove *.a and *.la files. Fix typo. Add proper configure arguments |
|
139 |
* Wed Jul 20 2005 - [email protected] |
|
140 |
- Initial spec file checkin |