libtheora.spec revision 15318
10139N/A#
10139N/A# spec file for package libtheora
10139N/A#
10139N/A# Copyright (c) 2008 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A# Owner: yippi
10139N/A# bugdb: https://trac.xiph.org/
10139N/A#
10139N/AName: libtheora
10139N/ALicense: Xiph
13352N/AGroup: System Environment/Libraries
10139N/AVersion: 1.0
10139N/A%define tarball_version 1.0
10139N/ARelease: 2
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: The Theora Video Compression Codec.
10139N/ASource: http://downloads.xiph.org/releases/theora/%{name}-%{tarball_version}.tar.gz
10139N/AURL: http://www.theora.org/
10139N/ABuildRoot: %{_tmppath}/%{name}-%{tarball_version}-build
10139N/ADocdir: %{_docdir}/%{name}
10139N/AAutoreqprov: on
10139N/A
10139N/ABuildRequires: libogg-devel >= 1.1
10139N/ABuildRequires: libvorbis-devel >= 1.0.1
10139N/ABuildRequires: SDL-devel
10139N/ARequires: libvorbis >= 1.0.1
10139N/A
10139N/A%description
10139N/ATheora is Xiph.Org's first publicly released video codec, intended
10139N/Afor use within the Ogg's project's Ogg multimedia streaming system.
10139N/ATheora is derived directly from On2's VP3 codec; Currently the two are
10139N/Anearly identical, varying only in encapsulating decoder tables in the
10392N/Abitstream headers, but Theora will make use of this extra freedom
10139N/Ain the future to improve over what is possible with VP3.
10139N/A
10139N/A%package devel
10139N/ASummary: Development tools for Theora applications.
10139N/AGroup: Development/Libraries
10139N/ARequires: %{name} = %{version}-%{release}
10139N/ARequires: libogg-devel >= 1.1
10139N/A
10139N/A%description devel
10139N/AThe libtheora-devel package contains the header files and documentation
10139N/Aneeded to develop applications with Ogg Theora.
10139N/A
10139N/A%prep
10139N/A%setup -q -n %{name}-%{tarball_version}
10139N/A
10139N/A%build
13352N/A%ifos linux
13352N/Aif [ -x /usr/bin/getconf ]; then
12046N/A CPUS=`getconf _NPROCESSORS_ONLN`
12046N/Afi
10392N/A%else
10392N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/Alibtoolize --force
10139N/Aaclocal $ACLOCAL_FLAGS -I ./m4
10139N/Aautoconf
automake -a -c -f
CFLAGS="$RPM_OPT_FLAGS" \
./configure --enable-shared \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--disable-asm
make -j $CPUS
%install
make DESTDIR=$RPM_BUILD_ROOT install
#clean up unpackaged files
rm $RPM_BUILD_ROOT%{_libdir}/*.a
rm $RPM_BUILD_ROOT%{_libdir}/*la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING README
%{_libdir}/libtheora.so.*
%files devel
%defattr(-,root,root)
%{_datadir}/doc/*
%{_libdir}/libtheora.so
%{_includedir}/theora
%{_includedir}/theora/theora.h
%{_libdir}/pkgconfig/theora.pc
%changelog
* Fri Nov 07 2008 - jerry.tan@sun.com
- bump to 1.0, remove upstream patches
* Fri Aug 29 2008 - jerry.tan@sun.com
- add patch libtheora-02-signed-short.diff to bump to 1.0beta3
* Tue Apr 29 2008 - brian.cameron@sun.com
- Bump to 1.0beta3. Remove upstream patch libtheora-01-fixlink.diff.
Add new patch libtheora-01-fixtestlink.diff.
* Mon Nov 05 2007 - brian.cameron@sun.com
- Bump to 1.0beta2.
* Fri Feb 09 2006 - brian.cameron@sun.com
- Go back to 1.0alpha7, but add --disable-asm configure flag so that
we don't try to compile GCC-style assembler code with Sun Studio
compiler. Remove upstream patch 01-noversionscript.
* Wed Dec 06 2006 - damien.carbery@sun.com
- Revert to 1.0alpha5 because of compilation errors. Add patch too.
* Sun Dec 03 2006 - damien.carbery@sun.com
- Remove upstream patch, 01-noversionscript.
* Thu Nov 30 2006 - damien.carbery@sun.com
- Bump to 1.0alpha7.
* Thu Nov 10 2005 - damien.carbery@sun.com
- Change %setup to reference %{tarball_version} in order to build.
* Tue Sep 20 2005 - brian.cameron@sun.com
- Bump to 1.0alpha5
* Fri Sep 09 2005 - laca@sun.com
- Move ACLOCAL_FLAGS setting to the Solaris spec file
- libtoolize so it builds with newer libtool
* Fri Sep 02 2005 - damien.carbery@sun.com
- Set ACLOCAL_FLAGS to build on Solaris.
* Tue Aug 02 2005 - balamurali.viswanathan@wipro.com
- Change copyright to license
* Tue Jul 26 2005 - balamurali.viswanathan@wipro.com
- Add patch libtheora-1.0alpha4-01-docs-make.diff
* Wed Jul 20 2005 - balamurali.viswanathan@wipro.com
- Initial spec file checkin