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