From 64437a50a892dfa44893f23ea2d994d5ada2ba38 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Aug 07 2017 15:12:07 +0000 Subject: support and enable bootstrap mode (ie, no docs) ...for now (at least until texlive is fixed) --- diff --git a/libtheora.spec b/libtheora.spec index c620e24..463c6a0 100644 --- a/libtheora.spec +++ b/libtheora.spec @@ -1,7 +1,11 @@ + +# enable bootstrap mode (e.g. disables doc generation) +%global bootstrap 1 + Name: libtheora Epoch: 1 Version: 1.1.1 -Release: 17%{?dist} +Release: 18%{?dist} Summary: Theora Video Compression Codec Group: System Environment/Libraries License: BSD @@ -16,8 +20,12 @@ BuildRequires: autoconf automake libtool BuildRequires: libogg-devel >= 2:1.1 BuildRequires: libvorbis-devel BuildRequires: SDL-devel libpng-devel +%if 0%{?bootstrap} +Obsoletes: %{name}-devel-docs < %{epoch}:%{version}-%{release} +%else BuildRequires: doxygen BuildRequires: tetex-latex transfig +%endif %description Theora is Xiph.Org's first publicly released video codec, intended @@ -84,7 +92,10 @@ cp /usr/lib/rpm/config.* . sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} + +%if ! 0%{?bootstrap} make -C doc/spec %{?_smp_mflags} +%endif %install @@ -113,15 +124,20 @@ install -m 755 examples/.libs/png2theora $RPM_BUILD_ROOT/%{_bindir}/png2theora %{_libdir}/*.so %{_libdir}/pkgconfig/theora*.pc +%if ! 0%{?bootstrap} %files devel-docs %doc doc/libtheora/html doc/vp3-format.txt doc/spec/Theora.pdf %doc doc/color.html doc/draft-ietf-avt-rtp-theora-00.txt +%endif %files -n theora-tools %{_bindir}/* %changelog +* Mon Aug 07 2017 Rex Dieter - 1:1.1.1-18 +- support and enable bootstrap mode (ie, no docs) + * Thu Aug 03 2017 Fedora Release Engineering - 1:1.1.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild