libtheora.spec revision 11874
10139N/A#
10139N/A# spec file for package libtheora
10139N/A#
18175N/A# Copyright (c) 2005 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: yippi
10139N/A# bugdb: https://trac.xiph.org/
17180N/A#
17180N/AName: libtheora
17180N/ALicense: Xiph
12285N/AGroup: System Environment/Libraries
10139N/AVersion: 1.0
10139N/A%define tarball_version 1.0beta2
10139N/ARelease: 1
18399N/ADistribution: Java Desktop System
13494N/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/A#owner:yippi date:2004-11-24 type:bug bugid:1256
18325N/APatch1: libtheora-01-fixlink.diff
10139N/AURL: http://theora.org/
12285N/AURL: http://www.theora.org/
12773N/ABuildRoot: %{_tmppath}/%{name}-%{tarball_version}-build
12773N/ADocdir: %{_docdir}/%{name}
12773N/AAutoreqprov: on
13368N/A
18266N/ABuildRequires: libogg-devel >= 1.1
10139N/ABuildRequires: libvorbis-devel >= 1.0.1
10737N/ABuildRequires: SDL-devel
11419N/ARequires: libvorbis >= 1.0.1
17733N/A
10139N/A%description
13494N/ATheora is Xiph.Org's first publicly released video codec, intended
11419N/Afor use within the Ogg's project's Ogg multimedia streaming system.
11895N/ATheora is derived directly from On2's VP3 codec; Currently the two are
13494N/Anearly identical, varying only in encapsulating decoder tables in the
10737N/Abitstream headers, but Theora will make use of this extra freedom
13494N/Ain the future to improve over what is possible with VP3.
11420N/A
11044N/A%package devel
13494N/ASummary: Development tools for Theora applications.
11420N/AGroup: Development/Libraries
13368N/ARequires: %{name} = %{version}-%{release}
16081N/ARequires: libogg-devel >= 1.1
15306N/A
16081N/A%description devel
13494N/AThe libtheora-devel package contains the header files and documentation
16081N/Aneeded to develop applications with Ogg Theora.
16445N/A
16081N/A%prep
14281N/A%setup -q -n %{name}-%{tarball_version}
14127N/A%patch1 -p1
16081N/A
14281N/A%build
16445N/A%ifos linux
16081N/Aif [ -x /usr/bin/getconf ]; then
15756N/A CPUS=`getconf _NPROCESSORS_ONLN`
16139N/Afi
16139N/A%else
16139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
16445N/A%endif
16139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
16339N/A CPUS=1
16339N/Afi
16448N/A
16448N/Alibtoolize --force
16622N/Aaclocal $ACLOCAL_FLAGS -I ./m4
16620N/Aautoconf
16959N/Aautomake -a -c -f
16966N/ACFLAGS="$RPM_OPT_FLAGS" \
17275N/A./configure --enable-shared \
17275N/A --prefix=%{_prefix} \
17345N/A --sysconfdir=%{_sysconfdir} \
17345N/A --mandir=%{_mandir} \
18486N/A --disable-asm
18486N/A
10737N/Amake -j $CPUS
10139N/A
10139N/A%install
10139N/Amake DESTDIR=$RPM_BUILD_ROOT install
10139N/A
10139N/A#clean up unpackaged files
10139N/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
12285N/A%files devel
12285N/A%defattr(-,root,root)
12285N/A%{_datadir}/doc/*
12285N/A%{_libdir}/libtheora.so
15811N/A%{_includedir}/theora
10139N/A%{_includedir}/theora/theora.h
13449N/A%{_libdir}/pkgconfig/theora.pc
13494N/A
13449N/A%changelog
13494N/A* Mon Nov 05 2007 - brian.cameron@sun.com
13855N/A- Bump to 1.0beta2.
13489N/A* Fri Feb 09 2006 - brian.cameron@sun.com
13830N/A- Go back to 1.0alpha7, but add --disable-asm configure flag so that
13581N/A we don't try to compile GCC-style assembler code with Sun Studio
13489N/A compiler. Remove upstream patch 01-noversionscript.
13489N/A* Wed Dec 06 2006 - damien.carbery@sun.com
14127N/A- Revert to 1.0alpha5 because of compilation errors. Add patch too.
16081N/A* Sun Dec 03 2006 - damien.carbery@sun.com
16081N/A- Remove upstream patch, 01-noversionscript.
16081N/A* Thu Nov 30 2006 - damien.carbery@sun.com
13830N/A- Bump to 1.0alpha7.
13859N/A* Thu Nov 10 2005 - damien.carbery@sun.com
14281N/A- Change %setup to reference %{tarball_version} in order to build.
16081N/A* Tue Sep 20 2005 - brian.cameron@sun.com
14281N/A- Bump to 1.0alpha5
16081N/A* Fri Sep 09 2005 - laca@sun.com
16081N/A- Move ACLOCAL_FLAGS setting to the Solaris spec file
16081N/A- libtoolize so it builds with newer libtool
16139N/A* Fri Sep 02 2005 - damien.carbery@sun.com
16339N/A- Set ACLOCAL_FLAGS to build on Solaris.
16448N/A* Tue Aug 02 2005 - balamurali.viswanathan@wipro.com
16620N/A- Change copyright to license
17690N/A* Tue Jul 26 2005 - balamurali.viswanathan@wipro.com
17275N/A- Add patch libtheora-1.0alpha4-01-docs-make.diff
17345N/A* Wed Jul 20 2005 - balamurali.viswanathan@wipro.com
18486N/A- Initial spec file checkin
10139N/A