libtheora.spec revision 18988
10139N/A#
10139N/A# spec file for package libtheora
12161N/A#
12161N/A# Copyright (c) 2008 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
17185N/A# package are under the same license as the package itself.
10139N/A#
17181N/A%define owner yippi
17181N/A# bugdb: https://trac.xiph.org/
17181N/A#
10139N/A
19069N/A%define OSR 4198:1.0
10139N/A
10139N/AName: libtheora
15291N/ALicense: Xiph.org BSD-style, binaries use some LGPL v2.1
18616N/AGroup: Libraries/Multimedia
10139N/AVersion: 1.1.1
10139N/A%define tarball_version 1.1.1
10139N/ARelease: 2
10139N/ADistribution: Java Desktop System
10315N/AVendor: Xiph
10139N/ASummary: The Theora Video Compression Codec.
19100N/ASource: http://downloads.xiph.org/releases/theora/%{name}-%{tarball_version}.tar.gz
19100N/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
19100N/A%description
10139N/ATheora is Xiph.Org's first publicly released video codec, intended
12754N/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
10374N/Abitstream headers, but Theora will make use of this extra freedom
10374N/Ain the future to improve over what is possible with VP3.
10374N/A
10374N/A%package devel
10374N/ASummary: Development tools for Theora applications.
10374N/AGroup: Development/Libraries
10374N/ARequires: %{name} = %{version}-%{release}
10374N/ARequires: libogg-devel >= 1.1
10374N/A
10374N/A%description devel
10374N/AThe libtheora-devel package contains the header files and documentation
11330N/Aneeded to develop applications with Ogg Theora.
11330N/A
11330N/A%prep
10374N/A%setup -q -n %{name}-%{tarball_version}
10374N/A
10374N/A%build
10374N/A%ifos linux
10374N/Aif [ -x /usr/bin/getconf ]; then
10374N/A CPUS=`getconf _NPROCESSORS_ONLN`
10374N/Afi
10374N/A%else
10374N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10374N/A%endif
11331N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
11331N/A
10139N/Alibtoolize --force
10139N/Aaclocal $ACLOCAL_FLAGS -I ./m4
10139N/Aautoconf
10139N/Aautomake -a -c -f
10139N/Aexport CFLAGS="%optflags"
10139N/Aexport LDFLAGS="%_ldflags"
10139N/A#CFLAGS="$RPM_OPT_FLAGS" \
10139N/A./configure --enable-shared \
10139N/A --prefix=%{_prefix} \
10139N/A --libdir=%{_libdir} \
10139N/A --bindir=%{_bindir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --mandir=%{_mandir} \
10139N/A --disable-asm \
10139N/A --disable-examples
10139N/A
10139N/A
10139N/Amake -j $CPUS
10139N/A
10139N/A%install
10139N/Amake DESTDIR=$RPM_BUILD_ROOT install
10139N/A
10139N/A#clean up unpackaged files
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
19069N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
19069N/A
19069N/A%clean
18819N/Arm -rf $RPM_BUILD_ROOT
18819N/A
15709N/A%post -p /sbin/ldconfig
15709N/A%postun -p /sbin/ldconfig
15291N/A
15291N/A%changelog
15291N/A* Mon Oct 19 2009 - ke.wang@sun.com
13355N/A- Add 64-bit support.
11330N/A* Sat Oct 17 2009 - brian.cameron@sun.com
11330N/A- Bump to 1.1.1.
10374N/A* Sun Sep 13 2009 - dave.lin@sun.com
10374N/A- Correct the version number, which is required as digit + dot only.
10315N/A* Fri Nov 07 2008 - jerry.tan@sun.com
10315N/A- bump to 1.0, remove upstream patches
10139N/A* Fri Aug 29 2008 - jerry.tan@sun.com
10139N/A- add patch libtheora-02-signed-short.diff to bump to 1.0beta3
10139N/A* Tue Apr 29 2008 - brian.cameron@sun.com
10139N/A- Bump to 1.0beta3. Remove upstream patch libtheora-01-fixlink.diff.
10139N/A Add new patch libtheora-01-fixtestlink.diff.
10139N/A* 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