1#
2# Bacula RPM spec file
3#
4# Copyright (C) 2000-2020 Kern Sibbald
5# License: BSD 2-Clause; see file LICENSE-FOSS
6#
7
8# Platform Build Configuration
9
10# basic defines for every build
11%define _release           @RELEASE@
12%define _version           @VERSION@
13%define product            bacula
14%define _packager Kern Sibbald <kern@sibbald.com>
15
16%define _prefix        /usr
17%define _sbindir       %_prefix/sbin
18%define _mandir        %_prefix/share/man
19
20
21#--------------------------------------------------------------------------
22# it should not be necessary to change anything below here for a release
23# except for patch macros in the setup section
24#--------------------------------------------------------------------------
25
26%{?contrib_packager:%define _packager %{contrib_packager}}
27
28Summary: Bacula - The Network Backup Solution
29Name: %{product}-docs
30Version: %{_version}
31Release: %{_release}
32Group: System Environment/Daemons
33License: AGPLv3
34BuildRoot: %{_tmppath}/%{name}-root
35URL: http://www.bacula.org/
36Vendor: The Bacula Team
37Packager: %{_packager}
38BuildArchitectures: noarch
39Prefix: %{_prefix}
40Distribution: Bacula Documentation
41
42Source: %{name}-%{_version}.tar.bz2
43
44# Source directory locations
45%define _docsrc .
46
47# define the basic package description
48%define blurb Bacula - The Leading Open Source Backup Solution.
49%define blurb2 Bacula is a set of computer programs that permit you (or the system
50%define blurb3 administrator) to manage backup, recovery, and verification of computer
51%define blurb4 data across a network of computers of different kinds. In technical terms,
52%define blurb5 it is a network client/server based backup program. Bacula is relatively
53%define blurb6 easy to use and efficient, while offering many advanced storage management
54%define blurb7 features that make it easy to find and recover lost or damaged files.
55%define blurb8 Bacula source code has been released under the AGPL version 3 license.
56
57Summary: Bacula - The Network Backup Solution
58Group: System Environment/Daemons
59
60%description
61%{blurb}
62
63%{blurb2}
64%{blurb3}
65%{blurb4}
66%{blurb5}
67%{blurb6}
68%{blurb7}
69%{blurb8}
70
71This package installs the Bacula pdf and html documentation.
72
73%prep
74%setup
75
76
77%clean
78[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
79rm -rf $RPM_BUILD_DIR/%{name}-%{_version}
80
81%files
82%doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
83%doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
84%doc %{_docsrc}/manuals/en/main/main %{_docsrc}/manuals/en/main/main.pdf
85%doc %{_docsrc}/manuals/en/misc/misc %{_docsrc}/manuals/en/misc/misc.pdf
86%doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
87%doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
88
89%changelog
90* Sat Jan 30 2010 D. Scott Barninger <barninger@fairfieldcomputers.com>
91- change source file to bz2, update for new doc structure
92* Sat Aug 1 2009 Kern Sibbald <kern@sibbald.com>
93- Split docs into separate bacula-docs.spec
94