author | yippi |
Fri, 14 Aug 2009 23:34:13 +0000 | |
changeset 16282 | ef6ce3e6a694 |
parent 14693 | d1db3fa8d36d |
child 16361 | 48ae2d04ea1e |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package libtheora |
|
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 |
# |
|
14693 | 8 |
# Owner: jerrytan |
11132 | 9 |
# bugdb: https://trac.xiph.org/ |
9397 | 10 |
# |
11 |
Name: libtheora |
|
14571 | 12 |
License: Xiph.org BSD-style |
16282 | 13 |
Group: Libraries/Multimedia |
9397 | 14 |
Version: 1.0 |
14567 | 15 |
%define tarball_version 1.0 |
12965
49530f31c923
downgrade libtheora to 1.0alpha7, due to bug 6722237
jerrytan
parents:
12251
diff
changeset
|
16 |
Release: 2 |
9397 | 17 |
Distribution: Java Desktop System |
18 |
Vendor: Sun Microsystems, Inc. |
|
19 |
Summary: The Theora Video Compression Codec. |
|
20 |
Source: http://downloads.xiph.org/releases/theora/%{name}-%{tarball_version}.tar.gz |
|
21 |
URL: http://www.theora.org/ |
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{tarball_version}-build |
|
23 |
Docdir: %{_docdir}/%{name} |
|
24 |
Autoreqprov: on |
|
25 |
||
26 |
BuildRequires: libogg-devel >= 1.1 |
|
27 |
BuildRequires: libvorbis-devel >= 1.0.1 |
|
28 |
BuildRequires: SDL-devel |
|
29 |
Requires: libvorbis >= 1.0.1 |
|
30 |
||
31 |
%description |
|
32 |
Theora is Xiph.Org's first publicly released video codec, intended |
|
33 |
for use within the Ogg's project's Ogg multimedia streaming system. |
|
34 |
Theora is derived directly from On2's VP3 codec; Currently the two are |
|
35 |
nearly identical, varying only in encapsulating decoder tables in the |
|
36 |
bitstream headers, but Theora will make use of this extra freedom |
|
37 |
in the future to improve over what is possible with VP3. |
|
38 |
||
39 |
%package devel |
|
40 |
Summary: Development tools for Theora applications. |
|
41 |
Group: Development/Libraries |
|
42 |
Requires: %{name} = %{version}-%{release} |
|
43 |
Requires: libogg-devel >= 1.1 |
|
44 |
||
45 |
%description devel |
|
46 |
The libtheora-devel package contains the header files and documentation |
|
47 |
needed to develop applications with Ogg Theora. |
|
48 |
||
49 |
%prep |
|
50 |
%setup -q -n %{name}-%{tarball_version} |
|
51 |
||
52 |
%build |
|
53 |
%ifos linux |
|
54 |
if [ -x /usr/bin/getconf ]; then |
|
55 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
56 |
fi |
|
57 |
%else |
|
58 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
59 |
%endif |
|
60 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
61 |
CPUS=1 |
|
62 |
fi |
|
63 |
||
64 |
libtoolize --force |
|
65 |
aclocal $ACLOCAL_FLAGS -I ./m4 |
|
66 |
autoconf |
|
67 |
automake -a -c -f |
|
68 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
69 |
./configure --enable-shared \ |
|
70 |
--prefix=%{_prefix} \ |
|
71 |
--sysconfdir=%{_sysconfdir} \ |
|
72 |
--mandir=%{_mandir} \ |
|
73 |
--disable-asm |
|
74 |
||
75 |
make -j $CPUS |
|
76 |
||
77 |
%install |
|
78 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
79 |
||
80 |
#clean up unpackaged files |
|
81 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
82 |
rm $RPM_BUILD_ROOT%{_libdir}/*la |
|
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 README |
|
93 |
%{_libdir}/libtheora.so.* |
|
94 |
||
95 |
%files devel |
|
96 |
%defattr(-,root,root) |
|
97 |
%{_datadir}/doc/* |
|
98 |
%{_libdir}/libtheora.so |
|
99 |
%{_includedir}/theora |
|
100 |
%{_includedir}/theora/theora.h |
|
101 |
%{_libdir}/pkgconfig/theora.pc |
|
102 |
||
103 |
%changelog |
|
14567 | 104 |
* Fri Nov 07 2008 - [email protected] |
105 |
- bump to 1.0, remove upstream patches |
|
13320 | 106 |
* Fri Aug 29 2008 - [email protected] |
107 |
- add patch libtheora-02-signed-short.diff to bump to 1.0beta3 |
|
12231 | 108 |
* Tue Apr 29 2008 - [email protected] |
109 |
- Bump to 1.0beta3. Remove upstream patch libtheora-01-fixlink.diff. |
|
110 |
Add new patch libtheora-01-fixtestlink.diff. |
|
11122 | 111 |
* Mon Nov 05 2007 - [email protected] |
112 |
- Bump to 1.0beta2. |
|
9397 | 113 |
* Fri Feb 09 2006 - [email protected] |
114 |
- Go back to 1.0alpha7, but add --disable-asm configure flag so that |
|
115 |
we don't try to compile GCC-style assembler code with Sun Studio |
|
116 |
compiler. Remove upstream patch 01-noversionscript. |
|
117 |
* Wed Dec 06 2006 - [email protected] |
|
118 |
- Revert to 1.0alpha5 because of compilation errors. Add patch too. |
|
119 |
* Sun Dec 03 2006 - [email protected] |
|
120 |
- Remove upstream patch, 01-noversionscript. |
|
121 |
* Thu Nov 30 2006 - [email protected] |
|
122 |
- Bump to 1.0alpha7. |
|
123 |
* Thu Nov 10 2005 - [email protected] |
|
124 |
- Change %setup to reference %{tarball_version} in order to build. |
|
125 |
* Tue Sep 20 2005 - [email protected] |
|
126 |
- Bump to 1.0alpha5 |
|
127 |
* Fri Sep 09 2005 - [email protected] |
|
128 |
- Move ACLOCAL_FLAGS setting to the Solaris spec file |
|
129 |
- libtoolize so it builds with newer libtool |
|
130 |
* Fri Sep 02 2005 - [email protected] |
|
131 |
- Set ACLOCAL_FLAGS to build on Solaris. |
|
132 |
* Tue Aug 02 2005 - [email protected] |
|
133 |
- Change copyright to license |
|
134 |
* Tue Jul 26 2005 - [email protected] |
|
135 |
- Add patch libtheora-1.0alpha4-01-docs-make.diff |
|
136 |
* Wed Jul 20 2005 - [email protected] |
|
137 |
- Initial spec file checkin |