author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19804 | 24ac0ff34e62 |
permissions | -rw-r--r-- |
19604 | 1 |
# |
2 |
# spec file for package libtheora |
|
3 |
# |
|
19693 | 4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
19604 | 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: libtheora |
|
19639
fa7dfc28b738
2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19615
diff
changeset
|
10 |
License: Xiph |
19604 | 11 |
Group: System Environment/Libraries |
12 |
Version: 1.0alpha4 |
|
19615
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
13 |
Release: 2 |
19693 | 14 |
Distribution: Java Desktop System |
19604 | 15 |
Vendor: Sun Microsystems, Inc. |
16 |
Summary: The Theora Video Compression Codec. |
|
17 |
Source: http://downloads.xiph.org/releases/theora/%{name}-%{version}.tar.bz2 |
|
19615
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
18 |
Patch1: libtheora-1.0alpha4-01-docs-make.diff |
19604 | 19 |
URL: http://www.theora.org/ |
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
21 |
Docdir: %{_docdir}/%{name} |
|
22 |
Autoreqprov: on |
|
23 |
||
24 |
BuildRequires: libogg-devel >= 1.1 |
|
25 |
BuildRequires: libvorbis-devel >= 1.0.1 |
|
26 |
BuildRequires: SDL-devel |
|
27 |
Requires: libvorbis >= 1.0.1 |
|
28 |
||
29 |
%description |
|
30 |
Theora is Xiph.Org's first publicly released video codec, intended |
|
31 |
for use within the Ogg's project's Ogg multimedia streaming system. |
|
32 |
Theora is derived directly from On2's VP3 codec; Currently the two are |
|
33 |
nearly identical, varying only in encapsulating decoder tables in the |
|
34 |
bitstream headers, but Theora will make use of this extra freedom |
|
35 |
in the future to improve over what is possible with VP3. |
|
36 |
||
37 |
%package devel |
|
38 |
Summary: Development tools for Theora applications. |
|
39 |
Group: Development/Libraries |
|
40 |
Requires: %{name} = %{version}-%{release} |
|
41 |
Requires: libogg-devel >= 1.1 |
|
42 |
||
43 |
%description devel |
|
44 |
The libtheora-devel package contains the header files and documentation |
|
45 |
needed to develop applications with Ogg Theora. |
|
46 |
||
47 |
%prep |
|
48 |
%setup -q |
|
19615
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
49 |
%patch1 -p1 |
19604 | 50 |
|
51 |
%build |
|
52 |
%ifos linux |
|
53 |
if [ -x /usr/bin/getconf ]; then |
|
54 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
55 |
fi |
|
56 |
%else |
|
57 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
58 |
%endif |
|
59 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
60 |
CPUS=1 |
|
61 |
fi |
|
62 |
||
19804 | 63 |
libtoolize --force |
19615
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
64 |
aclocal $ACLOCAL_FLAGS |
19804 | 65 |
autoconf |
19615
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
66 |
automake -a -c -f |
19604 | 67 |
CFLAGS="$RPM_OPT_FLAGS" \ |
68 |
./configure --enable-shared \ |
|
69 |
--prefix=%{_prefix} \ |
|
70 |
--sysconfdir=%{_sysconfdir} \ |
|
71 |
--mandir=%{_mandir} |
|
72 |
||
73 |
make -j $CPUS |
|
74 |
||
75 |
%install |
|
76 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
77 |
||
78 |
#clean up unpackaged files |
|
79 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
80 |
rm $RPM_BUILD_ROOT%{_libdir}/*la |
|
81 |
||
82 |
%clean |
|
83 |
rm -rf $RPM_BUILD_ROOT |
|
84 |
||
85 |
%post -p /sbin/ldconfig |
|
86 |
%postun -p /sbin/ldconfig |
|
87 |
||
88 |
%files |
|
89 |
%defattr(-,root,root) |
|
90 |
%doc COPYING README |
|
91 |
%{_libdir}/libtheora.so.* |
|
92 |
||
93 |
%files devel |
|
19615
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
94 |
%defattr(-,root,root) |
19604 | 95 |
%{_datadir}/doc/* |
96 |
%{_libdir}/libtheora.so |
|
97 |
%{_includedir}/theora |
|
98 |
%{_includedir}/theora/theora.h |
|
99 |
%{_libdir}/pkgconfig/theora.pc |
|
100 |
||
101 |
%changelog |
|
19804 | 102 |
* Fri Sep 09 2005 - [email protected] |
103 |
- Move ACLOCAL_FLAGS setting to the Solaris spec file |
|
104 |
- libtoolize so it builds with newer libtool |
|
105 |
* Fri Sep 02 2005 - [email protected] |
|
106 |
- Set ACLOCAL_FLAGS to build on Solaris. |
|
19639
fa7dfc28b738
2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19615
diff
changeset
|
107 |
* Tue Aug 02 2005 - [email protected] |
fa7dfc28b738
2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19615
diff
changeset
|
108 |
- Change copyright to license |
19615
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
109 |
* Tue Jul 26 2005 - [email protected] |
6225cc22eae9
2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents:
19604
diff
changeset
|
110 |
- Add patch libtheora-1.0alpha4-01-docs-make.diff |
19604 | 111 |
* Wed Jul 20 2005 - [email protected] |
112 |
- Initial spec file checkin |