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