From 3d2e81853e8f127b351657c8e937fe0f07b3ee51c1a8f0defcaab657fb5ee9a6 Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Fri, 18 Mar 2011 16:05:54 +0000 Subject: [PATCH] - Make packaging of the pdf documentation configurable. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=58 --- boost.changes | 5 +++++ boost.spec | 37 +++++++++++++++++++++---------------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/boost.changes b/boost.changes index 26589e9..698c661 100644 --- a/boost.changes +++ b/boost.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 18 17:04:45 CET 2011 - pth@suse.de + +- Make packaging of the pdf documentation configurable. + ------------------------------------------------------------------- Fri Mar 18 11:59:14 CET 2011 - pth@suse.de diff --git a/boost.spec b/boost.spec index 5d5e8c5..840d378 100644 --- a/boost.spec +++ b/boost.spec @@ -25,6 +25,9 @@ #Only define to 1 to generate the man pages %define build_docs 0 +#Define to 0 to not generate the pdf documentation +%define build_pdf 1 + # Just hardcode build_mpi to 1 as soon as openmpi builds on all # named architectures. @@ -175,20 +178,20 @@ This package contains the documentation of the boost dynamic libraries as man pages. +%if %build_pdf +%package doc-pdf +License: BSD3c +Summary: PDF documentation for the Boost C++ Libraries +Group: Development/Libraries/C and C++ +AutoReqProv: on +%if 0%{?suse_version} >= 1120 +BuildArch: noarch +%endif -#%package doc-pdf -#License: BSD3c -#Summary: PDF documentation for the Boost C++ Libraries -#Group: Development/Libraries/C and C++ -#AutoReqProv: on -#%if 0%{?suse_version} >= 1120 -#BuildArch: noarch -#%endif - -#%description doc-pdf -#This package contains the documentation of the boost dynamic libraries -#in PDF format. - +%description doc-pdf +This package contains the documentation of the boost dynamic libraries +in PDF format. +%endif %package -n libboost_date_time%{lib_appendix} @@ -761,8 +764,10 @@ rm -f %{buildroot}%{_libdir}/*.a %doc %{_mandir}/man7/*.7.gz %doc %{_mandir}/man9/*.9.gz -#%files doc-pdf -#%defattr(-, root, root, -) -#%doc %{_docdir}/pdf +%if %build_pdf +%files doc-pdf +%defattr(-, root, root, -) +%doc %{_docdir}/pdf +%endif %changelog