Disable PDF doc

This commit is contained in:
Xavier Bachelot 2012-07-01 23:55:31 +02:00
parent 3ef6c7d4fd
commit c0cc30e47e

View File

@ -2,13 +2,14 @@
%global tarball_date 20111023 %global tarball_date 20111023
%global git_hash e037110f11e707e223b715f70920913afecfe297 %global git_hash e037110f11e707e223b715f70920913afecfe297
%global git_short %(echo '%{git_hash}' | cut -c -13) %global git_short %(echo '%{git_hash}' | cut -c -13)
%global build_pdf_doc 0
Name: libbluray Name: libbluray
Version: 0.2.2 Version: 0.2.2
%if %{snapshot} %if %{snapshot}
Release: 0.8.%{tarball_date}git%{git_short}%{?dist} Release: 0.8.%{tarball_date}git%{git_short}%{?dist}
%else %else
Release: 2%{?dist} Release: 3%{?dist}
%endif %endif
Summary: Library to access Blu-Ray disks for video playback Summary: Library to access Blu-Ray disks for video playback
Group: System Environment/Libraries Group: System Environment/Libraries
@ -88,13 +89,20 @@ developing applications that use %{name}.
autoreconf -vif autoreconf -vif
%endif %endif
%configure --disable-static \ %configure --disable-static \
%if %{build_pdf_doc}
--enable-doxygen-pdf \
%else
--disable-doxygen-pdf \
%endif
--disable-doxygen-ps \
--enable-doxygen-html \
--enable-examples \ --enable-examples \
%ifnarch ppc ppc64 %ifnarch ppc ppc64
--enable-bdjava --with-jdk=%{_jvmdir}/java-1.7.0 --enable-bdjava --with-jdk=%{_jvmdir}/java-1.7.0
%endif %endif
make %{?_smp_mflags} make %{?_smp_mflags}
make doxygen-pdf make doxygen-doc
# Remove uneeded script # Remove uneeded script
rm -f doc/doxygen/html/installdox rm -f doc/doxygen/html/installdox
@ -144,13 +152,19 @@ rm -rf $RPM_BUILD_ROOT
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc doc/doxygen/html doc/doxygen/libbluray.pdf %doc doc/doxygen/html
%if %{build_pdf_doc}
%doc doc/doxygen/libbluray.pdf
%endif
%{_includedir}/* %{_includedir}/*
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/libbluray.pc %{_libdir}/pkgconfig/libbluray.pc
%changelog %changelog
* Tue Jun 12 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.2-3
- Don't build pdf doc, it breaks multilib (see RHBZ#835952).
* Tue Jun 12 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.2-2 * Tue Jun 12 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.2-2
- Fix multilib conflict in doxygen docs (RHBZ#831401). - Fix multilib conflict in doxygen docs (RHBZ#831401).