Make docs conditional at build for testing
This commit is contained in:
parent
c644a6d932
commit
3edd26e8cd
15
bacula.spec
15
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 <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
|
||||
- Trim changelog.
|
||||
- Merge bacula-director backends and move libbacats alternatives
|
||||
|
Loading…
Reference in New Issue
Block a user