%if 0%{?rhel} >= 9 %bcond_with gnuplot %else %bcond_without gnuplot %endif %define _libexecdir %{_libdir} %define defconfig DailySet1 %define indexserver amandahost %define tapeserver %{indexserver} %define amanda_user amandabackup %define amanda_group disk %global _hardened_build 1 Summary: A network-capable tape backup solution Name: amanda Version: 3.5.4 Release: %autorelease Source: https://github.com/zmanda/amanda/archive/tag-community-%{version}/amanda-%{version}.tar.gz Source1: amanda.crontab Source4: disklist Source8: amandahosts Source9: amanda.socket Source10: amanda@.service Source11: activate-devpay.1.gz Source12: killpgrp.8 Source13: amanda-udp.socket Source14: amanda-udp.service Source15: kamanda.socket Source16: kamanda@.service Patch1: amanda-3.1.1-xattrs.patch Patch2: amanda-3.1.1-tcpport.patch Patch3: amanda-3.2.0-config-dir.patch # Don't mention xinetd files in amserverconfig (#1460763) Patch4: amanda-3.4.5-no-xinetd.patch # Support tirpc Patch5: patch-tirpc # Specify the location or the xfs housekeeping directory # https://bugzilla.redhat.com/show_bug.cgi?id=1671117 Patch6: patch-xfsrestore-housekeeping Patch7: amanda-configure-c99.patch Patch8: amanda-c99.patch # Drop nonexistent -s option from aflush man page (#1943909) Patch9: https://github.com/zmanda/amanda/pull/273.patch # Perl 5.40 support (rhbz#2322518) Patch10: https://github.com/zmanda/amanda/pull/270.patch License: BSD-3-Clause AND GPL-3.0-or-later AND GPL-2.0-or-later AND GPL-2.0-only URL: http://www.amanda.org BuildRequires: automake autoconf libtool BuildRequires: xfsdump %if %{with gnuplot} BuildRequires: gnuplot %endif BuildRequires: cups samba-client tar grep BuildRequires: gcc-c++ readline-devel libtirpc-devel BuildRequires: krb5-devel rsh openssh-clients BuildRequires: mtx mt-st BuildRequires: perl-devel perl-generators perl(ExtUtils::Embed) perl(Test::Simple) BuildRequires: glib2-devel openssl-devel swig bison flex BuildRequires: libcurl-devel procps-ng systemd BuildRequires: make BuildRequires: rpcgen BuildRequires: libxslt docbook-dtds docbook-style-xsl Requires: grep tar /usr/bin/mail Requires: amanda-libs%{?_isa} = %{version}-%{release} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %{?systemd_requires} %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Math::BigInt\\) # Filter bogus libArchive.so() etc. Provides, this is intentional rpm-build # feature, bug #1309664 %global __provides_exclude_from %{?__provides_exclude_from:%{__provides_exclude_from}|}^%{perl_vendorarch}/auto/.*\\.so$ #exclude Dancer2 module %global __requires_exclude ^perl\\(Dancer2\\) %description AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that allows the administrator of a LAN to set up a single master backup server to back up multiple hosts to one or more tape drives or disk files. AMANDA uses native dump and/or GNU tar facilities and can back up a large number of workstations running multiple versions of Unix. Newer versions of AMANDA (including this version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts. The amanda package contains the core AMANDA programs and will need to be installed on both AMANDA clients and AMANDA servers. Note that you will have to install the amanda-client and/or amanda-server packages as well. %package libs Summary: Amanda libraries Requires: grep %description libs This package contains basic Amanda libraries, which are used by all Amanda programs. %package client Summary: The client component of the AMANDA tape backup system Requires: grep Requires(pre): amanda = %{version}-%{release} Requires: amanda-libs%{?_isa} = %{version}-%{release} %description client The Amanda-client package should be installed on any machine that will be backed up by AMANDA (including the server if it also needs to be backed up). You will also need to install the amanda package on each AMANDA client machine. %package server Summary: The server side of the AMANDA tape backup system Requires: grep Requires: perl(Amanda::DB) perl(Amanda::Recovery) perl(Amanda::Service) Requires(pre): amanda = %{version}-%{release} Requires: amanda-libs%{?_isa} = %{version}-%{release} %description server The amanda-server package should be installed on the AMANDA server, the machine attached to the device(s) (such as a tape drive) where backups will be written. You will also need to install the amanda package on the AMANDA server machine. And, if the server is also to be backed up, the server also needs to have the amanda-client package installed. %prep %autosetup -p1 -n %{name}-tag-community-%{version} # Create a sysusers.d config file cat >amanda.sysusers.conf <