9397
|
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 |
# Owner: yippi
|
|
9 |
#
|
|
10 |
Name: libtheora
|
|
11 |
License: Xiph
|
|
12 |
Group: System Environment/Libraries
|
|
13 |
Version: 1.0
|
|
14 |
%define tarball_version 1.0alpha7
|
|
15 |
Release: 2
|
|
16 |
Distribution: Java Desktop System
|
|
17 |
Vendor: Sun Microsystems, Inc.
|
|
18 |
Summary: The Theora Video Compression Codec.
|
|
19 |
Source: http://downloads.xiph.org/releases/theora/%{name}-%{tarball_version}.tar.gz
|
|
20 |
URL: http://theora.org/
|
|
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
|
|
104 |
* Fri Feb 09 2006 - [email protected]
|
|
105 |
- Go back to 1.0alpha7, but add --disable-asm configure flag so that
|
|
106 |
we don't try to compile GCC-style assembler code with Sun Studio
|
|
107 |
compiler. Remove upstream patch 01-noversionscript.
|
|
108 |
* Wed Dec 06 2006 - [email protected]
|
|
109 |
- Revert to 1.0alpha5 because of compilation errors. Add patch too.
|
|
110 |
* Sun Dec 03 2006 - [email protected]
|
|
111 |
- Remove upstream patch, 01-noversionscript.
|
|
112 |
* Thu Nov 30 2006 - [email protected]
|
|
113 |
- Bump to 1.0alpha7.
|
|
114 |
* Thu Nov 10 2005 - [email protected]
|
|
115 |
- Change %setup to reference %{tarball_version} in order to build.
|
|
116 |
* Tue Sep 20 2005 - [email protected]
|
|
117 |
- Bump to 1.0alpha5
|
|
118 |
* Fri Sep 09 2005 - [email protected]
|
|
119 |
- Move ACLOCAL_FLAGS setting to the Solaris spec file
|
|
120 |
- libtoolize so it builds with newer libtool
|
|
121 |
* Fri Sep 02 2005 - [email protected]
|
|
122 |
- Set ACLOCAL_FLAGS to build on Solaris.
|
|
123 |
* Tue Aug 02 2005 - [email protected]
|
|
124 |
- Change copyright to license
|
|
125 |
* Tue Jul 26 2005 - [email protected]
|
|
126 |
- Add patch libtheora-1.0alpha4-01-docs-make.diff
|
|
127 |
* Wed Jul 20 2005 - [email protected]
|
|
128 |
- Initial spec file checkin
|