f01bd5
f01bd5
# enable bootstrap mode (e.g. disables doc generation)
f01bd5
#global bootstrap 1
f01bd5
f01bd5
Name:           libtheora
f01bd5
Epoch:          1
f01bd5
Version:        1.1.1
f01bd5
Release:        21%{?dist}
f01bd5
Summary:        Theora Video Compression Codec
f01bd5
License:        BSD
f01bd5
URL:            http://www.theora.org
f01bd5
Source0:        http://downloads.xiph.org/releases/theora/%{name}-%{version}.tar.xz
f01bd5
Patch0:         libtheora-1.1.1-fix-pp_sharp_mod-calc.patch
f01bd5
# https://bugs.archlinux.org/task/35985
f01bd5
Patch1:         libtheora-1.1.1-libpng16.patch
f01bd5
Patch2:         libtheora-1.1.1-libm.patch
f01bd5
f01bd5
BuildRequires:  autoconf automake libtool
f01bd5
BuildRequires:  libogg-devel >= 2:1.1
f01bd5
BuildRequires:  libvorbis-devel
f01bd5
BuildRequires:  SDL-devel libpng-devel
f01bd5
%if 0%{?bootstrap}
f01bd5
Obsoletes: %{name}-devel-docs < %{epoch}:%{version}-%{release}
f01bd5
%else
f01bd5
BuildRequires:  doxygen
f01bd5
BuildRequires:  tetex-latex transfig
f01bd5
%endif
f01bd5
f01bd5
%description
f01bd5
Theora is Xiph.Org's first publicly released video codec, intended
f01bd5
for use within the Ogg's project's Ogg multimedia streaming system.
f01bd5
Theora is derived directly from On2's VP3 codec; Currently the two are
f01bd5
nearly identical, varying only in encapsulating decoder tables in the
f01bd5
bitstream headers, but Theora will make use of this extra freedom
f01bd5
in the future to improve over what is possible with VP3.
f01bd5
f01bd5
f01bd5
%package devel
f01bd5
Summary:        Development tools for Theora applications
f01bd5
Requires:       libogg-devel >= 2:1.1
f01bd5
Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release}
f01bd5
# the new experimental decoder is now part of the regular libtheora
f01bd5
# we do not obsolete theora-exp itself as that had a different soname and we
f01bd5
# do not want to break deps, however we do now provide the same headers as
f01bd5
# theora-exp-devel did.
f01bd5
Obsoletes:      theora-exp-devel
f01bd5
Provides:       theora-exp-devel
f01bd5
f01bd5
%description devel
f01bd5
The libtheora-devel package contains the header files needed to develop
f01bd5
applications with libtheora.
f01bd5
f01bd5
f01bd5
%package devel-docs
f01bd5
Summary:        Documentation for developing Theora applications
f01bd5
BuildArch:      noarch
f01bd5
f01bd5
%description devel-docs
f01bd5
The libtheora-devel-docs package contains the documentation needed
f01bd5
to develop applications with libtheora.
f01bd5
f01bd5
f01bd5
%package -n theora-tools
f01bd5
Summary:        Command line tools for Theora videos
f01bd5
Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release}
f01bd5
f01bd5
%description -n theora-tools
f01bd5
The theora-tools package contains simple command line tools for use
f01bd5
with theora bitstreams.
f01bd5
f01bd5
f01bd5
%prep
f01bd5
%setup -q
f01bd5
%patch0 -p1
f01bd5
%patch1 -p0 -b .libpng16
f01bd5
%patch2 -p1
f01bd5
f01bd5
# no custom CFLAGS please
f01bd5
sed -i 's/CFLAGS="$CFLAGS $cflags_save"/CFLAGS="$cflags_save"/g' configure
f01bd5
f01bd5
# Update config.guess/sub to fix builds on new architectures (aarch64/ppc64le)
f01bd5
cp /usr/lib/rpm/config.* .
f01bd5
f01bd5
%build
f01bd5
./autogen.sh
f01bd5
%configure --enable-shared --disable-static
f01bd5
# Don't use rpath!
f01bd5
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
f01bd5
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
f01bd5
make %{?_smp_mflags}
f01bd5
f01bd5
%if ! 0%{?bootstrap}
f01bd5
make -C doc/spec %{?_smp_mflags}
f01bd5
%endif
f01bd5
f01bd5
f01bd5
%install
f01bd5
%make_install
f01bd5
f01bd5
rm $RPM_BUILD_ROOT/%{_libdir}/*.la
f01bd5
rm -r $RPM_BUILD_ROOT/%{_docdir}/*
f01bd5
f01bd5
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
f01bd5
install -m 755 examples/.libs/dump_video $RPM_BUILD_ROOT/%{_bindir}/theora_dump_video
f01bd5
install -m 755 examples/.libs/encoder_example $RPM_BUILD_ROOT/%{_bindir}/theora_encode
f01bd5
install -m 755 examples/.libs/player_example $RPM_BUILD_ROOT/%{_bindir}/theora_player
f01bd5
install -m 755 examples/.libs/png2theora $RPM_BUILD_ROOT/%{_bindir}/png2theora
f01bd5
f01bd5
f01bd5
%ldconfig_scriptlets
f01bd5
f01bd5
f01bd5
%files
f01bd5
%doc README COPYING
f01bd5
%{_libdir}/*.so.*
f01bd5
f01bd5
%files devel
f01bd5
%{_includedir}/theora
f01bd5
%{_libdir}/*.so
f01bd5
%{_libdir}/pkgconfig/theora*.pc
f01bd5
f01bd5
%if ! 0%{?bootstrap}
f01bd5
%files devel-docs
f01bd5
%doc doc/libtheora/html doc/vp3-format.txt doc/spec/Theora.pdf
f01bd5
%doc doc/color.html doc/draft-ietf-avt-rtp-theora-00.txt
f01bd5
%endif
f01bd5
f01bd5
%files -n theora-tools
f01bd5
%{_bindir}/*
f01bd5
f01bd5
f01bd5
%changelog
f01bd5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.1-21
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f01bd5
f01bd5
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1:1.1.1-20
f01bd5
- Switch to %%ldconfig_scriptlets
f01bd5
f01bd5
* Mon Aug 07 2017 Rex Dieter <rdieter@fedoraproject.org> - 1:1.1.1-19
f01bd5
- disable bootstrap
f01bd5
f01bd5
* Mon Aug 07 2017 Rex Dieter <rdieter@fedoraproject.org> - 1:1.1.1-18
f01bd5
- support and enable bootstrap mode (ie, no docs)
f01bd5
f01bd5
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.1-17
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f01bd5
f01bd5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.1-16
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f01bd5
f01bd5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.1-15
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f01bd5
f01bd5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.1-14
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f01bd5
f01bd5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.1-13
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f01bd5
f01bd5
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.1-12
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f01bd5
f01bd5
* Tue Jun 10 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.1-11
f01bd5
- Update config.guess/sub for new architecture support
f01bd5
f01bd5
* Mon Jun 09 2014 Adam Jackson <ajax@redhat.com> 1.1.1-10
f01bd5
- Fix FTBFS due to underlinked examples
f01bd5
f01bd5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.1-10
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f01bd5
f01bd5
* Sat Aug  3 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1:1.1.1-9
f01bd5
- Add patch to fix FTBFS with libpng-1.6
f01bd5
f01bd5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.1-8
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f01bd5
f01bd5
* Fri May 10 2013 Hans de Goede <hdegoede@redhat.com> - 1:1.1.1-7
f01bd5
- Remove no longer needed autoreconf call, %%configure from redhat-rpm-config
f01bd5
  >= 9.1.0-42 updates config.guess and config.sub for new architecture support
f01bd5
f01bd5
* Fri May  3 2013 Hans de Goede <hdegoede@redhat.com> - 1:1.1.1-6
f01bd5
- run autoreconf for aarch64 support (#925898)
f01bd5
- add a patch from upstream fixing a crash when compiled with gcc-4.8 (#959001)
f01bd5
- cleanup spec-file
f01bd5
f01bd5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.1-5
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f01bd5
f01bd5
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.1-4
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f01bd5
f01bd5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.1-3
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f01bd5
f01bd5
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1:1.1.1-2
f01bd5
- Rebuild for new libpng
f01bd5
f01bd5
* Thu Feb 17 2011 Adam Jackson <ajax@redhat.com> 1.1.1-1
f01bd5
- libtheora 1.1.1
f01bd5
f01bd5
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.0-2
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f01bd5
f01bd5
* Fri Sep 25 2009 Adam Jackson <ajax@redhat.com> 1.1.0-1
f01bd5
- libtheora 1.1.0
f01bd5
f01bd5
* Mon Aug 24 2009 Matthias Clasen <mclasen@redhat.com> - 1.1beta3
f01bd5
- 1.1beta3
f01bd5
f01bd5
* Thu Aug 13 2009 Matthias Clasen <mclasen@redhat.com> - 1.1beta2
f01bd5
- 1.1beta2
f01bd5
f01bd5
* Wed Aug 12 2009 Ville Skyttä <ville.skytta@iki.fi> - 1:1.1beta1-2
f01bd5
- Use xz compressed upstream tarball.
f01bd5
f01bd5
* Wed Aug  5 2009 Matthias Clasen <mclasen@redhat.com> - 1.1beta1
f01bd5
- 1.1beta1
f01bd5
f01bd5
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1alpha2-2
f01bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f01bd5
f01bd5
* Wed Jun 03 2009 Adam Jackson <ajax@redhat.com> 1.1alpha2-1
f01bd5
- 1.1alpha2
f01bd5
f01bd5
* Tue Jun 02 2009 Adam Jackson <ajax@redhat.com> 1:1.1alpha1-1
f01bd5
- libtheora 1.1alpha1.  Woo Thusnelda!
f01bd5
f01bd5
* Tue Feb 24 2009 Matthias Clasen <mclasen@redhat.com> 1:1.0-3
f01bd5
- Make -devel-docs noarch
f01bd5
f01bd5
* Sat Dec 20 2008 Hans de Goede <hdegoede@redhat.com> 1:1.0-2
f01bd5
- Put development documentation in its own subpackage to fix multilib
f01bd5
  conflicts (rh 477290)
f01bd5
f01bd5
* Tue Dec 16 2008 Hans de Goede <hdegoede@redhat.com> 1:1.0-1
f01bd5
- 1.0 final release
f01bd5
- need epoch because we were not using the special pre-release
f01bd5
  version-release scheme used now a days in Fedora :(
f01bd5
f01bd5
* Fri Oct  3 2008 Matthias Clasen <mclasen@redhat.com> 1.0rc1-2
f01bd5
- Fix build on x86_64
f01bd5
f01bd5
* Fri Oct  3 2008 Matthias Clasen <mclasen@redhat.com> 1.0rc1-1
f01bd5
- Update to 1.0rc1
f01bd5
f01bd5
* Wed May 14 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0:1.0beta3-2
f01bd5
- Fix libtheoraenc getting build but not installed
f01bd5
f01bd5
* Thu Apr 17 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0beta3-1
f01bd5
- New upstream release 1.0beta3
f01bd5
f01bd5
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.0beta2-4
f01bd5
- Autorebuild for GCC 4.3
f01bd5
f01bd5
* Thu Nov 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0beta2-3
f01bd5
- Update png2theora to latest svn version (bz 401681)
f01bd5
f01bd5
* Wed Oct 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0beta2-2
f01bd5
- Put Obsoletes/Provides theora-exp-devel in the -devel package instead of in
f01bd5
  the -tools package (oops)
f01bd5
- Install png2theora (bz 349951)
f01bd5
f01bd5
* Thu Oct 18 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0beta2-1
f01bd5
- New upstream bugfix release 1.0beta2
f01bd5
f01bd5
* Thu Oct 11 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0beta1-1
f01bd5
- New upstream release 1.0beta1 (bz 307571)
f01bd5
f01bd5
* Fri Sep 14 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0alpha8-0.3.svn13393
f01bd5
- Fix textrelocations on i386 (bz 253591)
f01bd5
f01bd5
* Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0alpha8-0.2.svn13393
f01bd5
- Fix Source0 URL
f01bd5
f01bd5
* Sun Jul 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0alpha8-0.1.svn13393
f01bd5
- Update to 1.0alpha8 svn (revision 13393) snapshot
f01bd5
f01bd5
* Wed Apr 11 2007 Matthias Clasen <mclasen@redhat.com> - 0:1.0alpha7-3
f01bd5
- Add api docs to the -devel package
f01bd5
f01bd5
* Sun Mar 25 2007 Matthias Clasen <mclasen@redhat.com> - 0:1.0alpha7-2
f01bd5
- Fix a directory ownership issue (#233872)
f01bd5
- Small spec cleanups
f01bd5
f01bd5
* Wed Aug 02 2006 Monty <cmontgom@redhat.com> - 0:1.0alpha7-1
f01bd5
- Update to 1.0alpha7
f01bd5
f01bd5
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:1.0alpha5-1.2.2
f01bd5
- rebuild
f01bd5
f01bd5
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0:1.0alpha5-1.2.1
f01bd5
- bump again for double-long bug on ppc(64)
f01bd5
f01bd5
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0:1.0alpha5-1.2
f01bd5
- rebuilt for new gcc4.1 snapshot and glibc changes
f01bd5
f01bd5
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
f01bd5
- rebuilt
f01bd5
f01bd5
* Wed Nov 09 2005 John (J5) Palmieri <johnp@redhar.com> - 1.0alpha5-1
f01bd5
- Update to 1.0alpha5
f01bd5
f01bd5
* Wed Mar 02 2005 John (J5) Palmieri <johnp@redhar.com> - 1.0alpha4-2
f01bd5
- rebuild with gcc 4.0
f01bd5
f01bd5
* Mon Jan 03 2005 Colin Walters <walters@redhat.com> - 1.0alpha4-1
f01bd5
- New upstream version 1.0alpha4 
f01bd5
- Remove upstreamed patch libtheora-1.0alpha3-include.patch 
f01bd5
- Use Theora_I_spec.pdf for spec
f01bd5
- Add in .pc file (yay! another library sees the light)
f01bd5
f01bd5
* Tue Oct 05 2004 Colin Walters <walters@redhat.com> - 1.0alpha3-5
f01bd5
- Add BuildRequires on libvorbis-devel (134664)
f01bd5
f01bd5
* Sat Jul 17 2004 Warren Togami <wtogami@redhat.com> - 1.0alpha3-4
f01bd5
- Add Epoch dependencies for future Epoch increment safety measure
f01bd5
f01bd5
* Thu Jul 15 2004 Colin Walters <walters@redhat.com> - 1.0alpha3-3
f01bd5
- Apply patch to fix include path, thanks to Thomas Vander Stichele
f01bd5
f01bd5
* Tue Jul 13 2004 Jeremy Katz <katzj@redhat.com> - 1.0alpha3-2
f01bd5
- rebuild
f01bd5
f01bd5
* Mon Jun 21 2004 Jeremy Katz <katzj@redhat.com> - 1.0alpha3-1
f01bd5
- Initial build