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