203 lines
6.3 KiB
RPMSpec
203 lines
6.3 KiB
RPMSpec
Summary: Theora Video Compression Codec
|
|
Name: libtheora
|
|
Version: 1.0rc1
|
|
Release: 2%{?dist}
|
|
Epoch: 0
|
|
License: BSD
|
|
Group: System Environment/Libraries
|
|
URL: http://www.theora.org
|
|
Source0: http://downloads.xiph.org/releases/theora/libtheora-1.0RC1.tar.bz2
|
|
# missing from tarball
|
|
Source1: dct_decode_mmx.c
|
|
Patch2: libtheora-1.0beta3-undef-nonweak-symbols.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: libogg-devel >= 2:1.1
|
|
BuildRequires: libvorbis-devel
|
|
BuildRequires: SDL-devel libpng-devel
|
|
BuildRequires: doxygen
|
|
BuildRequires: tetex-latex transfig
|
|
|
|
|
|
%description
|
|
Theora is Xiph.Org's first publicly released video codec, intended
|
|
for use within the Ogg's project's Ogg multimedia streaming system.
|
|
Theora is derived directly from On2's VP3 codec; Currently the two are
|
|
nearly identical, varying only in encapsulating decoder tables in the
|
|
bitstream headers, but Theora will make use of this extra freedom
|
|
in the future to improve over what is possible with VP3.
|
|
|
|
|
|
%package devel
|
|
Summary: Development tools for Theora applications
|
|
Group: Development/Libraries
|
|
Requires: libogg-devel >= 2:1.1
|
|
Requires: libtheora = %{epoch}:%{version}-%{release}
|
|
Requires: pkgconfig
|
|
# the new experimental decoder is now part of the regular libtheora
|
|
# we do not obsolete theora-exp itself as that had a different soname and we
|
|
# do not want to break deps, however we do now provide the same headers as
|
|
# theora-exp-devel did.
|
|
Obsoletes: theora-exp-devel
|
|
Provides: theora-exp-devel
|
|
|
|
%description devel
|
|
The libtheora-devel package contains the header files and documentation
|
|
needed to develop applications with libtheora.
|
|
|
|
|
|
%package -n theora-tools
|
|
Summary: Command line tools for Theora videos
|
|
Group: Applications/Multimedia
|
|
Requires: libtheora = %{epoch}:%{version}-%{release}
|
|
|
|
%description -n theora-tools
|
|
The theora-tools package contains simple command line tools for use
|
|
with theora bitstreams.
|
|
|
|
|
|
%prep
|
|
%setup -q -n libtheora-1.0RC1
|
|
cp %{SOURCE1} lib/enc/x86_64
|
|
%patch2 -p1
|
|
# no custom CFLAGS please
|
|
sed -i 's/CFLAGS="$CFLAGS $cflags_save"/CFLAGS="$cflags_save"/g' configure
|
|
|
|
|
|
%build
|
|
%configure --enable-shared --disable-static
|
|
# Don't use rpath!
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
make
|
|
make -C doc/spec
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
rm -r $RPM_BUILD_ROOT/%{_docdir}/*
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
|
|
install -m 755 examples/.libs/dump_video $RPM_BUILD_ROOT/%{_bindir}/theora_dump_video
|
|
install -m 755 examples/.libs/encoder_example $RPM_BUILD_ROOT/%{_bindir}/theora_encode
|
|
install -m 755 examples/.libs/player_example $RPM_BUILD_ROOT/%{_bindir}/theora_player
|
|
install -m 755 examples/.libs/png2theora $RPM_BUILD_ROOT/%{_bindir}/png2theora
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README COPYING
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc doc/libtheora/html doc/vp3-format.txt doc/spec/Theora.pdf
|
|
%doc doc/color.html doc/draft-ietf-avt-rtp-theora-00.txt
|
|
%{_includedir}/theora
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/theora*.pc
|
|
|
|
%files -n theora-tools
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/*
|
|
|
|
|
|
%changelog
|
|
* Fri Oct 3 2008 Matthias Clasen <mclasen@redhat.com> 1.0rc1-2
|
|
- Fix build on x86_64
|
|
|
|
* Fri Oct 3 2008 Matthias Clasen <mclasen@redhat.com> 1.0rc1-1
|
|
- Update to 1.0rc1
|
|
|
|
* Wed May 14 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0:1.0beta3-2
|
|
- Fix libtheoraenc getting build but not installed
|
|
|
|
* Thu Apr 17 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0beta3-1
|
|
- New upstream release 1.0beta3
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.0beta2-4
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Thu Nov 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0beta2-3
|
|
- Update png2theora to latest svn version (bz 401681)
|
|
|
|
* Wed Oct 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0beta2-2
|
|
- Put Obsoletes/Provides theora-exp-devel in the -devel package instead of in
|
|
the -tools package (oops)
|
|
- Install png2theora (bz 349951)
|
|
|
|
* Thu Oct 18 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0beta2-1
|
|
- New upstream bugfix release 1.0beta2
|
|
|
|
* Thu Oct 11 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0beta1-1
|
|
- New upstream release 1.0beta1 (bz 307571)
|
|
|
|
* Fri Sep 14 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0alpha8-0.3.svn13393
|
|
- Fix textrelocations on i386 (bz 253591)
|
|
|
|
* Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0alpha8-0.2.svn13393
|
|
- Fix Source0 URL
|
|
|
|
* Sun Jul 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0alpha8-0.1.svn13393
|
|
- Update to 1.0alpha8 svn (revision 13393) snapshot
|
|
|
|
* Wed Apr 11 2007 Matthias Clasen <mclasen@redhat.com> - 0:1.0alpha7-3
|
|
- Add api docs to the -devel package
|
|
|
|
* Sun Mar 25 2007 Matthias Clasen <mclasen@redhat.com> - 0:1.0alpha7-2
|
|
- Fix a directory ownership issue (#233872)
|
|
- Small spec cleanups
|
|
|
|
* Wed Aug 02 2006 Monty <cmontgom@redhat.com> - 0:1.0alpha7-1
|
|
- Update to 1.0alpha7
|
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:1.0alpha5-1.2.2
|
|
- rebuild
|
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0:1.0alpha5-1.2.1
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0:1.0alpha5-1.2
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
- rebuilt
|
|
|
|
* Wed Nov 09 2005 John (J5) Palmieri <johnp@redhar.com> - 1.0alpha5-1
|
|
- Update to 1.0alpha5
|
|
|
|
* Wed Mar 02 2005 John (J5) Palmieri <johnp@redhar.com> - 1.0alpha4-2
|
|
- rebuild with gcc 4.0
|
|
|
|
* Mon Jan 03 2005 Colin Walters <walters@redhat.com> - 1.0alpha4-1
|
|
- New upstream version 1.0alpha4
|
|
- Remove upstreamed patch libtheora-1.0alpha3-include.patch
|
|
- Use Theora_I_spec.pdf for spec
|
|
- Add in .pc file (yay! another library sees the light)
|
|
|
|
* Tue Oct 05 2004 Colin Walters <walters@redhat.com> - 1.0alpha3-5
|
|
- Add BuildRequires on libvorbis-devel (134664)
|
|
|
|
* Sat Jul 17 2004 Warren Togami <wtogami@redhat.com> - 1.0alpha3-4
|
|
- Add Epoch dependencies for future Epoch increment safety measure
|
|
|
|
* Thu Jul 15 2004 Colin Walters <walters@redhat.com> - 1.0alpha3-3
|
|
- Apply patch to fix include path, thanks to Thomas Vander Stichele
|
|
|
|
* Tue Jul 13 2004 Jeremy Katz <katzj@redhat.com> - 1.0alpha3-2
|
|
- rebuild
|
|
|
|
* Mon Jun 21 2004 Jeremy Katz <katzj@redhat.com> - 1.0alpha3-1
|
|
- Initial build
|