Make docs conditional at build for testing

This commit is contained in:
Simone Caronni 2012-01-05 12:02:52 +01:00
parent c644a6d932
commit 3edd26e8cd

View File

@ -1,9 +1,10 @@
%global uid 133 %global uid 133
%global username bacula %global username bacula
%global docs 1
Name: bacula Name: bacula
Version: 5.2.3 Version: 5.2.3
Release: 5%{?dist} Release: 6%{?dist}
Summary: Cross platform network backup for Linux, Unix, Mac and Windows Summary: Cross platform network backup for Linux, Unix, Mac and Windows
# See LICENSE for details # See LICENSE for details
License: GPLv2 with exceptions License: GPLv2 with exceptions
@ -243,7 +244,7 @@ This package contains the Gnome and KDE compatible tray monitor to
monitor your bacula server. monitor your bacula server.
%endif %endif
%if 0%{?docs}
%package docs %package docs
Summary: Bacula documentation Summary: Bacula documentation
Group: 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. different computers. It is based on a client/server architecture.
This package contains the documentation for most of the bacula-packages. This package contains the documentation for most of the bacula-packages.
%endif
%package -n nagios-plugins-bacula %package -n nagios-plugins-bacula
Summary: Nagios Plugin - check_bacula Summary: Nagios Plugin - check_bacula
@ -349,6 +350,7 @@ pushd src/qt-console/tray-monitor
popd popd
%endif %endif
%if 0%{?docs}
# Build the docs # Build the docs
pushd bacula-docs-%{version} pushd bacula-docs-%{version}
%configure --with-bacula=%{_builddir}/bacula-%{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/*.{css,html,png} $manual
cp -f bacula-docs-%{version}/manuals/en/$manual/$manual.pdf . cp -f bacula-docs-%{version}/manuals/en/$manual/$manual.pdf .
done done
%endif
cp %{SOURCE5} . cp %{SOURCE5} .
%install %install
@ -786,9 +790,11 @@ fi
%{_datadir}/pixmaps/bacula-tray-monitor.png %{_datadir}/pixmaps/bacula-tray-monitor.png
%endif %endif
%if 0%{?docs}
%files docs %files docs
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc problems* console* utility* developers* main* misc* %doc problems* console* utility* developers* main* misc*
%endif
%files -n nagios-plugins-bacula %files -n nagios-plugins-bacula
%defattr(-,root,root) %defattr(-,root,root)
@ -796,6 +802,9 @@ fi
%changelog %changelog
* Thu Jan 05 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-6
- Make docs conditional at build for testing.
* Tue Jan 03 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-5 * Tue Jan 03 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-5
- Trim changelog. - Trim changelog.
- Merge bacula-director backends and move libbacats alternatives - Merge bacula-director backends and move libbacats alternatives