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