- Make packaging of the pdf documentation configurable.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=58
This commit is contained in:
Philipp Thomas 2011-03-18 16:05:54 +00:00 committed by Git OBS Bridge
parent 5f0572924d
commit 3d2e81853e
2 changed files with 26 additions and 16 deletions

View File

@ -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

View File

@ -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