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 depkgs_version @DEPKGS_VERSION@ 15%define _packager Kern Sibbald <kern@sibbald.com> 16%define manpage_ext gz 17 18# Don't strip binaries 19%define __os_install_post %{nil} 20%define __debug_install_post %{nil} 21%define debug_package %{nil} 22 23%define single_dir 0 24%{?single_dir_install:%define single_dir 1} 25 26# Installation Directory locations 27%define _prefix /usr 28%define _sbindir %_prefix/sbin 29%define _bindir %_prefix/bin 30%define _subsysdir /var/lock/subsys 31%define sqlite_bindir %_libdir/bacula/sqlite 32%define _mandir %_prefix/share/man 33%define sysconf_dir /etc/bacula 34%define script_dir %_libdir/bacula 35%define working_dir /var/lib/bacula 36%define pid_dir /var/run 37%define plugin_dir %_libdir/bacula/plugins 38%define lib_dir %_libdir/bacula/lib 39 40#-------------------------------------------------------------------------- 41# it should not be necessary to change anything below here for a release 42# except for patch macros in the setup section 43#-------------------------------------------------------------------------- 44 45%{?contrib_packager:%define _packager %{contrib_packager}} 46 47Summary: Bacula - The Network Backup Solution 48Name: %{product}-mtx 49Version: %{_version} 50Release: %{_release} 51Group: System Environment/Daemons 52License: AGPLv3 53BuildRoot: %{_tmppath}/%{name}-root 54URL: http://www.bacula.org/ 55Vendor: The Bacula Team 56Packager: %{_packager} 57Prefix: %{_prefix} 58Distribution: Bacula Bat 59 60Source: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz 61 62# define the basic package description 63%define blurb Bacula - The Network Backup Solution. 64%define blurb2 Bacula is a set of computer programs that permit you (or the system 65%define blurb3 administrator) to manage backup, recovery, and verification of computer 66%define blurb4 data across a network of computers of different kinds. In technical terms, 67%define blurb5 it is a network client/server based backup program. Bacula is relatively 68%define blurb6 easy to use and efficient, while offering many advanced storage management 69%define blurb7 features that make it easy to find and recover lost or damaged files. 70 71Summary: Bacula - The Network Backup Solution 72Group: System Environment/Daemons 73 74%description 75%{blurb} 76 77%{blurb2} 78%{blurb3} 79%{blurb4} 80%{blurb5} 81%{blurb6} 82%{blurb7} 83 84This is Bacula's version of mtx tape utilities for Linux distributions that 85do not provide their own mtx package 86 87%prep 88%setup -T -n depkgs -b 0 89 90%build 91 92make mtx 93 94%install 95make \ 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" 121rm -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 126