author | hh150184 |
Tue, 24 Jan 2006 11:56:37 +0000 | |
branch | gnome-2-12 |
changeset 19207 | b59a653a3329 |
parent 6272 | 54b698c4dc55 |
child 8564 | df62c23d2955 |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package libtheora |
|
3 |
# |
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
|
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 |
|
10 |
License: Xiph |
|
11 |
Group: System Environment/Libraries |
|
6243 | 12 |
Version: 1.0 |
13 |
%define tarball_version 1.0alpha5 |
|
5518 | 14 |
Release: 2 |
15 |
Distribution: Java Desktop System |
|
16 |
Vendor: Sun Microsystems, Inc. |
|
17 |
Summary: The Theora Video Compression Codec. |
|
6243 | 18 |
Source: http://downloads.xiph.org/releases/theora/%{name}-%{tarball_version}.tar.gz |
5984 | 19 |
Patch1: libtheora-01-noversionscript.diff |
5518 | 20 |
URL: http://www.theora.org/ |
6243 | 21 |
BuildRoot: %{_tmppath}/%{name}-%{tarball_version}-build |
5518 | 22 |
Docdir: %{_docdir}/%{name} |
23 |
Autoreqprov: on |
|
24 |
||
25 |
BuildRequires: libogg-devel >= 1.1 |
|
26 |
BuildRequires: libvorbis-devel >= 1.0.1 |
|
27 |
BuildRequires: SDL-devel |
|
28 |
Requires: libvorbis >= 1.0.1 |
|
29 |
||
30 |
%description |
|
31 |
Theora is Xiph.Org's first publicly released video codec, intended |
|
32 |
for use within the Ogg's project's Ogg multimedia streaming system. |
|
33 |
Theora is derived directly from On2's VP3 codec; Currently the two are |
|
34 |
nearly identical, varying only in encapsulating decoder tables in the |
|
35 |
bitstream headers, but Theora will make use of this extra freedom |
|
36 |
in the future to improve over what is possible with VP3. |
|
37 |
||
38 |
%package devel |
|
39 |
Summary: Development tools for Theora applications. |
|
40 |
Group: Development/Libraries |
|
41 |
Requires: %{name} = %{version}-%{release} |
|
42 |
Requires: libogg-devel >= 1.1 |
|
43 |
||
44 |
%description devel |
|
45 |
The libtheora-devel package contains the header files and documentation |
|
46 |
needed to develop applications with Ogg Theora. |
|
47 |
||
48 |
%prep |
|
6272
54b698c4dc55
* libtheora.spec: Change %setup to reference %{tarball_version} in
dc144907
parents:
6243
diff
changeset
|
49 |
%setup -q -n %{name}-%{tarball_version} |
5518 | 50 |
%patch1 -p1 |
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 |
||
5784 | 64 |
libtoolize --force |
5984 | 65 |
aclocal $ACLOCAL_FLAGS -I ./m4 |
5784 | 66 |
autoconf |
5518 | 67 |
automake -a -c -f |
68 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
69 |
./configure --enable-shared \ |
|
70 |
--prefix=%{_prefix} \ |
|
71 |
--sysconfdir=%{_sysconfdir} \ |
|
72 |
--mandir=%{_mandir} |
|
73 |
||
74 |
make -j $CPUS |
|
75 |
||
76 |
%install |
|
77 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
78 |
||
79 |
#clean up unpackaged files |
|
80 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
81 |
rm $RPM_BUILD_ROOT%{_libdir}/*la |
|
82 |
||
83 |
%clean |
|
84 |
rm -rf $RPM_BUILD_ROOT |
|
85 |
||
86 |
%post -p /sbin/ldconfig |
|
87 |
%postun -p /sbin/ldconfig |
|
88 |
||
89 |
%files |
|
90 |
%defattr(-,root,root) |
|
91 |
%doc COPYING README |
|
92 |
%{_libdir}/libtheora.so.* |
|
93 |
||
94 |
%files devel |
|
95 |
%defattr(-,root,root) |
|
96 |
%{_datadir}/doc/* |
|
97 |
%{_libdir}/libtheora.so |
|
98 |
%{_includedir}/theora |
|
99 |
%{_includedir}/theora/theora.h |
|
100 |
%{_libdir}/pkgconfig/theora.pc |
|
101 |
||
102 |
%changelog |
|
6272
54b698c4dc55
* libtheora.spec: Change %setup to reference %{tarball_version} in
dc144907
parents:
6243
diff
changeset
|
103 |
* Thu Nov 10 2005 - [email protected] |
54b698c4dc55
* libtheora.spec: Change %setup to reference %{tarball_version} in
dc144907
parents:
6243
diff
changeset
|
104 |
- Change %setup to reference %{tarball_version} in order to build. |
5984 | 105 |
* Tue Sep 20 2005 - [email protected] |
106 |
- Bump to 1.0alpha5 |
|
5784 | 107 |
* Fri Sep 09 2005 - [email protected] |
108 |
- Move ACLOCAL_FLAGS setting to the Solaris spec file |
|
109 |
- libtoolize so it builds with newer libtool |
|
5687
fa6291117b7b
* libtheora.spec: Set ACLOCAL_FLAGS to build on Solaris.
dc144907
parents:
5619
diff
changeset
|
110 |
* Fri Sep 02 2005 - [email protected] |
fa6291117b7b
* libtheora.spec: Set ACLOCAL_FLAGS to build on Solaris.
dc144907
parents:
5619
diff
changeset
|
111 |
- Set ACLOCAL_FLAGS to build on Solaris. |
5518 | 112 |
* Tue Aug 02 2005 - [email protected] |
113 |
- Change copyright to license |
|
114 |
* Tue Jul 26 2005 - [email protected] |
|
115 |
- Add patch libtheora-1.0alpha4-01-docs-make.diff |
|
116 |
* Wed Jul 20 2005 - [email protected] |
|
117 |
- Initial spec file checkin |