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