From 3edd26e8cd5c0b55bceec744ff9cce187e5fa92c Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Thu, 5 Jan 2012 12:02:52 +0100 Subject: [PATCH] Make docs conditional at build for testing --- bacula.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/bacula.spec b/bacula.spec index 028b330..5b8b720 100644 --- a/bacula.spec +++ b/bacula.spec @@ -1,9 +1,10 @@ %global uid 133 %global username bacula +%global docs 1 Name: bacula Version: 5.2.3 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Cross platform network backup for Linux, Unix, Mac and Windows # See LICENSE for details License: GPLv2 with exceptions @@ -243,7 +244,7 @@ This package contains the Gnome and KDE compatible tray monitor to monitor your bacula server. %endif - +%if 0%{?docs} %package docs Summary: Bacula documentation Group: Documentation @@ -257,7 +258,7 @@ recovery, and verification of computer data across a network of different computers. It is based on a client/server architecture. This package contains the documentation for most of the bacula-packages. - +%endif %package -n nagios-plugins-bacula Summary: Nagios Plugin - check_bacula @@ -349,6 +350,7 @@ pushd src/qt-console/tray-monitor popd %endif +%if 0%{?docs} # Build the docs pushd bacula-docs-%{version} %configure --with-bacula=%{_builddir}/bacula-%{version} @@ -359,6 +361,8 @@ for manual in problems console utility developers main misc; do cp -f bacula-docs-%{version}/manuals/en/$manual/$manual/*.{css,html,png} $manual cp -f bacula-docs-%{version}/manuals/en/$manual/$manual.pdf . done +%endif + cp %{SOURCE5} . %install @@ -786,9 +790,11 @@ fi %{_datadir}/pixmaps/bacula-tray-monitor.png %endif +%if 0%{?docs} %files docs %defattr(-,root,root,-) %doc problems* console* utility* developers* main* misc* +%endif %files -n nagios-plugins-bacula %defattr(-,root,root) @@ -796,6 +802,9 @@ fi %changelog +* Thu Jan 05 2012 Simone Caronni - 5.2.3-6 +- Make docs conditional at build for testing. + * Tue Jan 03 2012 Simone Caronni - 5.2.3-5 - Trim changelog. - Merge bacula-director backends and move libbacats alternatives