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