]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/rpms/suse/bacula-mtx.spec.in
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / bacula / platforms / rpms / suse / bacula-mtx.spec.in
1 #
2 # Bacula RPM spec file
3 #
4 #
5 # Copyright (C) 2000-2015 Kern Sibbald
6 # License: BSD 2-Clause; see file LICENSE-FOSS
7 #
8
9 # Platform Build Configuration
10
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
18
19 # Don't strip binaries
20 %define __os_install_post %{nil}
21 %define __debug_install_post %{nil}
22 %define debug_package %{nil}
23
24 %define single_dir 0
25 %{?single_dir_install:%define single_dir 1}
26
27 # Installation Directory locations
28 %define _prefix        /usr
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
40
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 #--------------------------------------------------------------------------
45
46 %{?contrib_packager:%define _packager %{contrib_packager}}
47
48 Summary: Bacula - The Network Backup Solution
49 Name: %{product}-mtx
50 Version: %{_version}
51 Release: %{_release}
52 Group: System Environment/Daemons
53 License: AGPLv3
54 BuildRoot: %{_tmppath}/%{name}-root
55 URL: http://www.bacula.org/
56 Vendor: The Bacula Team
57 Packager: %{_packager}
58 Prefix: %{_prefix}
59 Distribution: Bacula Bat
60
61 Source: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
62
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.
71
72 Summary: Bacula - The Network Backup Solution
73 Group: System Environment/Daemons
74
75 %description
76 %{blurb}
77
78 %{blurb2}
79 %{blurb3}
80 %{blurb4}
81 %{blurb5}
82 %{blurb6}
83 %{blurb7}
84
85 This is Bacula's version of mtx tape utilities for Linux distributions that
86 do not provide their own mtx package
87
88 %prep
89 %setup -T -n depkgs -b 0
90
91 %build
92
93 make mtx
94
95 %install
96 make \
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} \
104         mtx-install
105
106 %files
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}
118
119
120 %clean
121 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
122 rm -rf $RPM_BUILD_DIR/depkgs
123
124 %changelog
125 * Sat Aug 1 2009 Kern Sibbald <kern@sibbald.com>
126 - Split mtx out into bacula-mtx.spec