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