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