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