support and enable bootstrap mode (ie, no docs)

...for now (at least until texlive is fixed)
This commit is contained in:
Rex Dieter 2017-08-07 10:12:07 -05:00
parent 29ff2e6189
commit 64437a50a8

View File

@ -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 <rdieter@fedoraproject.org> - 1:1.1.1-18
- support and enable bootstrap mode (ie, no docs)
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.1-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild