5 # Copyright (C) 2000-2015 Kern Sibbald
6 # License: BSD 2-Clause; see file LICENSE-FOSS
9 # Platform Build Configuration
11 # basic defines for every build
12 %define _release @RELEASE@
13 %define _version @VERSION@
14 %define product bacula
15 %define depkgs_version @DEPKGS_VERSION@
16 %define _packager Kern Sibbald <kern@sibbald.com>
17 %define manpage_ext gz
19 # Don't strip binaries
20 %define __os_install_post %{nil}
21 %define __debug_install_post %{nil}
22 %define debug_package %{nil}
25 %{?single_dir_install:%define single_dir 1}
27 # Installation Directory locations
29 %define _sbindir %_prefix/sbin
30 %define _bindir %_prefix/bin
31 %define _subsysdir /var/lock/subsys
32 %define sqlite_bindir %_libdir/bacula/sqlite
33 %define _mandir %_prefix/share/man
34 %define sysconf_dir /etc/bacula
35 %define script_dir %_libdir/bacula
36 %define working_dir /var/lib/bacula
37 %define pid_dir /var/run
38 %define plugin_dir %_libdir/bacula/plugins
39 %define lib_dir %_libdir/bacula/lib
41 #--------------------------------------------------------------------------
42 # it should not be necessary to change anything below here for a release
43 # except for patch macros in the setup section
44 #--------------------------------------------------------------------------
46 %{?contrib_packager:%define _packager %{contrib_packager}}
48 Summary: Bacula - The Network Backup Solution
52 Group: System Environment/Daemons
54 BuildRoot: %{_tmppath}/%{name}-root
55 URL: http://www.bacula.org/
56 Vendor: The Bacula Team
57 Packager: %{_packager}
59 Distribution: Bacula Bat
61 Source: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
63 # define the basic package description
64 %define blurb Bacula - The Network Backup Solution.
65 %define blurb2 Bacula is a set of computer programs that permit you (or the system
66 %define blurb3 administrator) to manage backup, recovery, and verification of computer
67 %define blurb4 data across a network of computers of different kinds. In technical terms,
68 %define blurb5 it is a network client/server based backup program. Bacula is relatively
69 %define blurb6 easy to use and efficient, while offering many advanced storage management
70 %define blurb7 features that make it easy to find and recover lost or damaged files.
72 Summary: Bacula - The Network Backup Solution
73 Group: System Environment/Daemons
85 This is Bacula's version of mtx tape utilities for Linux distributions that
86 do not provide their own mtx package
89 %setup -T -n depkgs -b 0
97 prefix=$RPM_BUILD_ROOT%{_prefix} \
98 sbindir=$RPM_BUILD_ROOT%{_sbindir} \
99 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
100 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
101 working_dir=$RPM_BUILD_ROOT%{working_dir} \
102 piddir=$RPM_BUILD_ROOT%{pid_dir} \
103 mandir=$RPM_BUILD_ROOT%{_mandir} \
107 %defattr(-,root,root)
108 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
109 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
110 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
111 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
112 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
113 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
114 %{_mandir}/man1/mtx.1.%{manpage_ext}
115 %{_mandir}/man1/scsitape.1.%{manpage_ext}
116 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
117 %{_mandir}/man1/scsieject.1.%{manpage_ext}
121 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
122 rm -rf $RPM_BUILD_DIR/depkgs
125 * Sat Aug 1 2009 Kern Sibbald <kern@sibbald.com>
126 - Split mtx out into bacula-mtx.spec