Remove docs
This commit is contained in:
parent
c38ce62a57
commit
d4f2ea5c5a
44
bacula.spec
44
bacula.spec
@ -1,10 +1,9 @@
|
|||||||
%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: 6%{?dist}
|
Release: 7%{?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
|
||||||
@ -13,7 +12,6 @@ URL: http://www.bacula.org
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
Source0: http://www.bacula.org/downloads/Bacula-%{version}/%{name}-%{version}.tar.gz
|
Source0: http://www.bacula.org/downloads/Bacula-%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: http://www.bacula.org/downloads/Bacula-%{version}/%{name}-docs-%{version}.tar.bz2
|
|
||||||
Source5: README.Fedora
|
Source5: README.Fedora
|
||||||
Source6: bacula.logrotate
|
Source6: bacula.logrotate
|
||||||
Source7: bacula-fd.init
|
Source7: bacula-fd.init
|
||||||
@ -245,22 +243,6 @@ 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
|
|
||||||
Summary: Bacula documentation
|
|
||||||
Group: Documentation
|
|
||||||
%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6
|
|
||||||
BuildArch: noarch
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description docs
|
|
||||||
Bacula is a set of programs that allow you to manage the backup,
|
|
||||||
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 devel
|
%package devel
|
||||||
Summary: Bacula development files
|
Summary: Bacula development files
|
||||||
@ -283,7 +265,7 @@ Provides check_bacula support for Nagios.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a 1
|
%setup -q
|
||||||
%patch1 -p1 -b .hostname
|
%patch1 -p1 -b .hostname
|
||||||
%patch2 -p2 -b .openssl
|
%patch2 -p2 -b .openssl
|
||||||
%patch3 -p1 -b .queryfile
|
%patch3 -p1 -b .queryfile
|
||||||
@ -365,19 +347,6 @@ pushd src/qt-console/tray-monitor
|
|||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?docs}
|
|
||||||
# Build the docs
|
|
||||||
pushd bacula-docs-%{version}
|
|
||||||
%configure --with-bacula=%{_builddir}/bacula-%{version}
|
|
||||||
%{__make}
|
|
||||||
popd
|
|
||||||
for manual in problems console utility developers main misc; do
|
|
||||||
mkdir $manual
|
|
||||||
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} .
|
cp %{SOURCE5} .
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -807,12 +776,6 @@ fi
|
|||||||
%{_datadir}/pixmaps/bacula-tray-monitor.png
|
%{_datadir}/pixmaps/bacula-tray-monitor.png
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?docs}
|
|
||||||
%files docs
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc problems* console* utility* developers* main* misc*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_includedir}/bacula
|
%{_includedir}/bacula
|
||||||
@ -832,6 +795,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-7
|
||||||
|
- Split off bacula-docs subpackage.
|
||||||
|
|
||||||
* Thu Jan 05 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-6
|
* Thu Jan 05 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-6
|
||||||
- Make docs conditional at build for testing.
|
- Make docs conditional at build for testing.
|
||||||
- Add devel subpackage.
|
- Add devel subpackage.
|
||||||
|
Loading…
Reference in New Issue
Block a user