2 # Copyright (C) 2005-2012 Zmanda Incorporated.
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 as published
7 # by the Free Software Foundation.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # You should have received a copy of the GNU General Public License along
15 # with this program; if not, write to the Free Software Foundation, Inc.,
16 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # Contact information: Zmanda Inc, 465 S. Mathilda Ave., Suite 300
19 # Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
24 %{?srpm_only: %define build_srpm 1}
26 # Pkg-config sometimes needs its own path set, and we need to allow users to
27 # override our guess during detection. This macro takes care of that.
28 # If no --define PKG_CONFIG_PATH was passed and env var $PKG_CONFIG_PATH is
29 # set then use the env var.
30 %{!?PKG_CONFIG_PATH: %{expand:%(echo ${PKG_CONFIG_PATH:+"%%define PKG_CONFIG_PATH $PKG_CONFIG_PATH"})}}
32 %{?PKG_CONFIG_PATH:%{echo:PKG_CONFIG_PATH = %{PKG_CONFIG_PATH}}}
34 # LDFLAGS: newer gnu linkers can use "-Wl,--as-needed", while older ones,
35 # like rhel3 and sles9 can't.
36 %define enable_as_needed --enable-as-needed
38 # Define which Distribution we are building:
39 # Try to detect the distribution we are building:
40 %if %{_vendor} == redhat
41 # Fedora symlinks /etc/fedora-release to /etc/redhat-release for at least
42 # fc3-8. So RHEL and Fedora look at the same file. Different versions have
43 # different numbers of spaces; hence the use if $3 vs. $4..
44 %if %(awk '$1 == "Fedora" && $4 ~ /3.*/ { exit 1; }' /etc/redhat-release; echo $?)
48 %define requires_libtermcap Requires: libtermcap.so.2
51 %if %(awk '$1 == "Fedora" && $4 ~ /4.*/ { exit 1; }' /etc/redhat-release; echo $?)
55 %define requires_libtermcap Requires: libtermcap.so.2
58 %if %(awk '$1 == "Fedora" && $4 ~ /5.*/ { exit 1; }' /etc/redhat-release; echo $?)
62 %define requires_libtermcap Requires: libtermcap.so.2
65 %if %(awk '$1 == "Fedora" && $4 ~ /6.*/ { exit 1; }' /etc/redhat-release; echo $?)
69 %define requires_libtermcap Requires: libtermcap.so.2
72 %if %(awk '$1 == "Fedora" && $3 ~ /7.*/ { exit 1; }' /etc/redhat-release; echo $?)
76 %define requires_libtermcap Requires: libtermcap.so.2
79 # if macro cannot have an empty test and we're just testing the existance
80 %if %{?fedora:yes}%{!?fedora:no} == yes
83 %define distver %{fedora}
85 %define requires_libtermcap Requires: libtermcap.so.2
91 %if %{_host_cpu} == x86_64 && %{_target_cpu} == i686
92 # Do nothing if PKG_CONFIG_PATH was set by the user above.
93 %{!?PKG_CONFIG_PATH: %define PKG_CONFIG_PATH /usr/lib/pkgconfig}
96 %if %(awk '$1 == "Red" && $7 ~ /3.*/ { exit 1; }' /etc/redhat-release; echo $?)
101 %define requires_libtermcap Requires: libtermcap.so.2
103 %define without_ipv6 --without-ipv6
105 %if %(awk '$1 == "Red" && $7 ~ /4.*/ { exit 1; }' /etc/redhat-release; echo $?)
110 %define requires_libtermcap Requires: libtermcap.so.2
113 %if %(awk '$1 == "CentOS" && $3 ~ /4.*/ { exit 1; }' /etc/redhat-release; echo $?)
118 %define requires_libtermcap Requires: libtermcap.so.2
121 %if %(awk '$1 == "Red" && $7 ~ /5.*/ { exit 1; }' /etc/redhat-release; echo $?)
127 %if %(awk '$1 == "CentOS" && $3 ~ /5.*/ { exit 1; }' /etc/redhat-release; echo $?)
133 %if %(awk '$1 == "Red" && $7 ~ /6.*/ { exit 1; }' /etc/redhat-release; echo $?)
140 # If dist is undefined, we didn't detect.
141 %{!?dist:%define dist unknown}
143 # Detect Suse variants.
144 %if %{_vendor} == "suse"
146 %if %(awk '$1 == "openSUSE" { exit 1; }' /etc/SuSE-release; echo $?)
148 %define distver %(awk '$1=="openSUSE" {print $2}' /etc/SuSE-release)
150 %if %(awk '$1 == "SUSE" { exit 1; }' /etc/SuSE-release; echo $?)
151 %define disttag %(awk '$1=="SUSE" {$3=="Enterprise" ? TAG="sles" : TAG="suse" ; print TAG}' /etc/SuSE-release)
152 %define distver %(awk '$1=="SUSE" {$3=="Enterprise" ? VER=$5 : VER=$3 ; print VER}' /etc/SuSE-release)
153 # Always use quotes in rpm comparisons if values could be interpreted
156 %if "%{distver}" == "9"
157 %undefine enable_as_needed
162 # Set options per distribution
163 %if %{dist} == redhat || %{dist} == fedora
164 %define rpm_group Applications/Archiving
165 %define xinetd_reload restart
166 %define requires_initscripts Requires: initscripts
169 %define rpm_group Productivity/Archiving/Backup
170 %define xinetd_reload restart
173 # Let's die if we haven't detected the distro. This might save some frustration.
174 # RPM does not provide a way to exit gracefully, hence the tag_to_cause_exit.
175 %{!?distver: %{error:"Your distribution and its version were not detected."}; %tag_to_cause_exit }
176 # Set minimum tar version if it wasn't set in the per-distro section
177 %{!?tarver: %define tarver 1.15}
179 %define packer %(%{__id_u} -n)
181 # --- Definitions ---
183 # Define amanda_version using the value determined by
184 # packaging/common/substitute.pl.
185 %{!?amanda_version: %define amanda_version %%VERSION%% }
186 %{!?amanda_release: %define amanda_release 1}
187 %define amanda_version_info "Amanda Community Edition - version %{amanda_version}"
188 %define amanda_user amandabackup
189 %define amanda_group disk
191 Summary: The Amanda Backup and Archiving System
193 Version: %{amanda_version}
194 %define rpm_release %{amanda_release}.%{disttag}%{distver}
196 %define rpm_release %{amanda_release}
198 Release: %{rpm_release}
199 Source: %{name}-%{version}.tar.gz
200 License: http://wiki.zmanda.com/index.php/Amanda_Copyright
202 Packager: www.zmanda.com
203 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%{packer}-buildroot
205 # TODO - Need required versions for these:
206 BuildRequires: autoconf
207 BuildRequires: automake
208 BuildRequires: binutils
212 BuildRequires: glib2 >= 2.2.0
213 BuildRequires: glib2-devel
214 BuildRequires: readline
215 # Note: newer distros have changed most *-devel to lib*-devel, and added a
216 # provides tag for backwards compat.
217 BuildRequires: readline-devel
218 BuildRequires: %{curl} >= 7.10.0
219 BuildRequires: %{curl}-devel >= 7.10.0
220 BuildRequires: openssl
221 BuildRequires: openssl-devel
222 BuildRequires: perl(ExtUtils::Embed)
225 Requires: /usr/bin/id
226 Requires: /sbin/ldconfig
228 Requires: /usr/sbin/useradd
229 Requires: /usr/sbin/usermod
233 Requires: %{curl} >= 7.10.0
236 Requires: perl >= 5.6.0
237 Requires: tar >= %{tarver}
239 %{?requires_libtermcap}
240 %{?requires_initscripts}
242 %package backup_client
243 Summary: The Amanda Backup and Archiving Client
248 %{?requires_libtermcap}
249 %{?requires_initscripts}
251 Requires: perl >= 5.6.0
252 Requires: tar >= %{tarver}
254 Provides: amanda-backup_client = %{amanda_version}
255 Provides: libamclient-%{version}.so = %{amanda_version}
256 Provides: libamanda-%{version}.so = %{amanda_version}
257 Conflicts: amanda-backup_server
258 # Native package names
259 Obsoletes: amanda, amanda-client, amanda-server
261 %package backup_server
262 Summary: The Amanda Backup and Archiving Server
267 %{?requires_libtermcap}
268 %{?requires_initscripts}
270 Requires: perl >= 5.6.0
271 Requires: tar >= %{tarver}
272 Provides: amanda-backup_server = %{amanda_version}
273 Provides: libamclient-%{version}.so = %{amanda_version}
274 Provides: libamanda-%{version}.so = %{amanda_version}
275 Provides: libamserver-%{version}.so = %{amanda_version}
276 Provides: libamtape-%{version}.so = %{amanda_version}
277 Provides: libamdevice-%{version}.so = %{amanda_version}
278 Conflicts: amanda-backup_client
279 # Native package names
280 Obsoletes: amanda, amanda-client, amanda-server
281 # --- Package descriptions ---
284 Amanda is the leading Open-Source Backup and Archiving software.
286 The amanda-backup_server package should be installed on the Amanda server, i.e.
287 the machine attached to backup media (such as a tape drive or disk
288 drives) where backups will be written. The amanda-backup_server package
289 includes Amanda client. The amanda-backup_client package needs
290 to be installed on every system that is being backed up.
292 Amanda Forums is located at: http://forums.zmanda.com/
293 Amanda Documentation is available at: http://wiki.zmanda.com/
297 %description backup_server
298 Amanda is the leading Open-Source Backup and Archiving software.
300 This package contains the Amanda server. The amanda-backup_server package
301 should be installed on the Amanda server, i.e. the machine attached
302 to backup media (such as a tape drive or disk drives) where backups
303 will be written. The amanda-backup_server package includes Amanda client.
305 Amanda Forums is located at: http://forums.zmanda.com/
306 Amanda Documentation is available at: http://wiki.zmanda.com/
310 %description backup_client
311 Amanda is the leading Open-Source Backup and Archiving software.
313 This package contains the Amanda client. The amanda-backup_client package
314 needs to be installed on every system that is being backed up.
316 Amanda Forums is located at: http://forums.zmanda.com/
317 Amanda Documentation is available at: http://wiki.zmanda.com/
319 # --- Directory setup ---
321 # Configure directories:
323 %define EPREFIX %{PREFIX}
324 %define BINDIR %{EPREFIX}/bin
325 %define SBINDIR %{EPREFIX}/sbin
326 %define LIBEXECDIR %{EPREFIX}/libexec
327 %define AMLIBEXECDIR %{LIBEXECDIR}/amanda
328 %define DATADIR %{PREFIX}/share
329 %define SYSCONFDIR /etc
330 %define LOCALSTATEDIR /var
331 %define AMANDATES %{AMANDAHOMEDIR}/amandates
332 %define AMANDAHOMEDIR %{LOCALSTATEDIR}/lib/amanda
334 %define LIBDIR %{EPREFIX}/lib64
336 %define LIBDIR %{EPREFIX}/lib
338 %define AMLIBDIR %{LIBDIR}/amanda
339 %define INCLUDEDIR %{PREFIX}/include
340 %define MANDIR %{DATADIR}/man
341 %define LOGDIR /var/log/amanda
342 %define PERLSITELIB %(eval "`perl -V:installsitelib`"; echo $installsitelib)
343 %define AMDATADIR /var/lib/amanda
345 # Installation directories:
346 %define ROOT_SBINDIR %{buildroot}/%{SBINDIR}
347 %define ROOT_LIBEXECDIR %{buildroot}/%{LIBEXECDIR}
348 %define ROOT_DATADIR %{buildroot}/%{DATADIR}
349 %define ROOT_LOCALSTATEDIR %{buildroot}/%{LOCALSTATEDIR}
350 %define ROOT_SYSCONFDIR %{buildroot}/%{SYSCONFDIR}
351 %define ROOT_AMANDAHOMEDIR %{buildroot}/%{AMANDAHOMEDIR}
352 %define ROOT_LIBDIR %{buildroot}/%{LIBDIR}
353 %define ROOT_MANDIR %{buildroot}/%{MANDIR}
354 %define ROOT_LOGDIR %{buildroot}/%{LOGDIR}
355 %define ROOT_AMDATADIR %{buildroot}/%{AMDATADIR}
361 # --- Configure and compile ---
364 %define config_user %{amanda_user}
365 %define config_group %{amanda_group}
367 # Set PKG_CONFIG_PATH=some/path if some/path was set on the command line, or by
368 # the platform detection bits.
369 # without_ipv6 should only be defined on rhel3.
370 # LDFLAGS macro is defined except on rhel3.
371 # --enable-as-needed must be conditional until configure tests whether
372 # ld can accept --as-needed.
374 %{?PKG_CONFIG_PATH: PKG_CONFIG_PATH=%PKG_CONFIG_PATH} \
375 CFLAGS="%{optflags} -g -pipe" CXXFLAGS="%{optflags}" \
376 %{?LDFLAGS:LDFLAGS="${LDFLAGS} %{?LDFLAGS:%LDFLAGS}"} \
377 %{?enable_as_needed:%{enable_as_needed}} \
380 --sysconfdir=%{SYSCONFDIR} \
381 --sharedstatedir=%{LOCALSTATEDIR} \
382 --localstatedir=%{LOCALSTATEDIR} \
384 --includedir=%{INCLUDEDIR} \
386 --with-amdatadir=%{AMDATADIR} \
387 --with-gnuplot=/usr/bin/gnuplot \
388 --with-gnutar=/bin/tar \
389 --with-gnutar-listdir=%{AMANDAHOMEDIR}/gnutar-lists \
390 --with-index-server=localhost \
391 --with-tape-server=localhost \
392 --with-user=%{config_user} \
393 --with-group=%{config_group} \
394 --with-owner=%{packer} \
396 --with-bsd-security \
397 --with-bsdtcp-security \
398 --with-bsdudp-security \
399 --with-ssh-security \
400 --with-debugging=%{LOGDIR} \
402 --disable-installperms \
405 make -s LIBTOOLFLAGS=--silent
407 # --- Install to buildroot ---
410 if [ "%{buildroot}" != "/" ]; then
411 if [ -d "%{buildroot}" ] ; then
415 echo "BuildRoot was somehow set to / !"
419 make -s -j1 LIBTOOLFLAGS=--silent DESTDIR=%{buildroot} install
421 rm -f %{ROOT_AMANDAHOMEDIR}/example/inetd.conf.amandaclient
422 mkdir %{buildroot}/{etc,var/log}
423 mkdir %{ROOT_LOCALSTATEDIR}/amanda
424 mkdir %{ROOT_SYSCONFDIR}/amanda
425 mkdir %{ROOT_AMANDAHOMEDIR}/gnutar-lists
428 echo "%{amanda_version_info}" >%{ROOT_AMANDAHOMEDIR}/amanda-release
430 # --- Clean up buildroot ---
433 if [ "%{buildroot}" != "/" ]; then
434 if [ -d "%{buildroot}" ] ; then
438 echo "BuildRoot was somehow set to / !"
442 # --- Pre/post (un)installation scripts ---
444 # Define script variables
445 # Some versions of rpmbuild do not like multi-line macros in spec files. ugly.
446 %define script_vars amanda_user=%{amanda_user}; amanda_group=%{amanda_group}; AMANDAHOMEDIR=%{AMANDAHOMEDIR}; os=Linux; wanted_shell=/bin/bash; dist=%{dist}; LOGDIR=%{LOGDIR}; INSTALL_LOG=$LOGDIR/install.log; SYSCONFDIR=%{SYSCONFDIR}; SBINDIR=%{SBINDIR};
447 # --- Pre/post (un)installation scripts ---
450 ##########################################
451 LOGFILE=`mktemp /tmp/amanda_server-preinst.log.XXXXXXXXXXX`
452 if [ $? -ne 0 ]; then
453 echo "Unable to create log file!"
459 # See packaging/common/ for shell function libraries.
460 # ---------- Common functions ------------
462 %%PRE_INST_FUNCTIONS%%
464 # -------- End Common functions ----------
465 logger "Preparing to install: Amanda Server %%VERSION%%"
467 check_user_group "${amanda_group}" || add_group "${amanda_group}"
468 check_user_supplemental_group "tape" || add_group "tape"
469 check_user_shell "${wanted_shell}"
470 check_user_homedir "${AMANDAHOMEDIR}"
471 check_homedir || create_homedir
474 logger "Preinstall done."
475 cat $LOGFILE > $INSTALL_LOG && rm $LOGFILE || \
476 echo "Amanda preinstall logs can be found in '$LOGFILE'."
479 ##########################################
480 LOGFILE=`mktemp /tmp/amanda_server-postinst.log.XXXXXXXXXXX`
481 if [ $? -ne 0 ]; then
482 echo "Unable to create log file!"
486 AMANDATES=%{AMANDATES}
488 # ---------- Common functions ------------
490 %%POST_INST_FUNCTIONS%%
492 # -------- End Common functions ----------
495 check_xinetd "amandaserver"
497 0) backup_xinetd "amandaserver"
498 install_xinetd "amandaserver"
500 1) install_xinetd "amandaserver" ;;
501 2) logger "Xinetd config not installed: either xinetd config is not present or xinetd.d is a file." ;;
502 *) logger "bad return from check_xinetd"; exit 1 ;;
505 # Amanda servers should not have the client xinetd installed.
506 check_xinetd "amandaclient"
508 0) backup_xinetd "amandaclient" ;;
517 check_amandahosts_entry root amindexd amidxtaped
518 check_amandahosts_entry ${amanda_user} amdump
519 check_amandahosts_perms
520 create_ssh_key server
521 create_ssh_key client
527 logger "Amanda installation complete."
528 cat $LOGFILE >> $INSTALL_LOG && {
530 echo "Amanda installation log can be found in '${INSTALL_LOG}'.";
532 echo "Amanda postinstall logs can be found in '$LOGFILE'."
534 %postun backup_server
535 ##########################################
536 LOGFILE=`mktemp /tmp/amanda_server-remove.log.XXXXXXXXXXX`
537 if [ $? -ne 0 ]; then
538 echo "Unable to create log file!"
543 # ---------- Common functions ------------
545 %%POST_RM_FUNCTIONS%%
547 # -------- End Common functions ----------
549 # Check for parameter to script (are we upgrading?)
550 if [ $1 -gt 0 ]; then
558 # See http://fedoraproject.org/wiki/Packaging/ScriptletSnippets for the reason
559 # we only remove xinetd on uninstall.
560 if [ "$action" = "uninstall" ]; then
561 # Check for and remove existing xinetd configs
562 check_xinetd "amandaserver"
563 if [ $? -eq 0 ] ; then
564 rm_xinetd "amandaserver"
567 check_inetd "amandaserver"
568 if [ $? -eq 0 ] ; then
569 rm_inetd "amandaserver"
572 if [ -d ${SYSCONFDIR}/amanda ]; then
573 logger "Removing ${SYSCONFDIR}/amanda if empty..."
574 rmdir ${SYSCONFDIR}/amanda 2> /dev/null || true
576 if [ -d ${AMANDAHOMEDIR} ]; then
577 logger "Removing ${AMANDAHOMEDIR}..."
578 rm -rf ${AMANDAHOMEDIR}
580 if [ -f ${SYSCONFDIR}/amandates ]; then
581 logger "Removing ${SYSCONFDIR}/amandates..."
582 rm -rf ${SYSCONFDIR}/amandates
584 # Remove ${amanda_user} from sensitive groups.
585 if which deluser >/dev/null 2>&1 ; then
586 for group in tape; do
587 # only call deluser when amandabackup is in $group
588 if getent group "$group" |
589 awk -F: '{ print $4 }' |
590 awk -F, '{ for (i=1; i <= NF; i++ ) print $i }' |
591 grep "^${amanda_user}$" > /dev/null; then
592 deluser ${amanda_user} $group || true
599 echo "Amanda removal log can be found in '$LOGFILE'."
602 ##########################################
603 LOGFILE=`mktemp /tmp/amanda_client-preinst.log.XXXXXXXXXXX`
604 if [ $? -ne 0 ]; then
605 echo "Unable to create log file!"
610 # ---------- Common functions ------------
612 %%PRE_INST_FUNCTIONS%%
614 # -------- End Common functions ----------
615 logger "Preparing to install: %{amanda_version_info}"
617 check_user_group "${amanda_group}" || add_group "${amanda_group}"
618 check_user_shell "${wanted_shell}"
619 check_user_homedir "${AMANDAHOMEDIR}"
620 check_homedir || create_homedir
623 logger "Preinstall done."
624 cat $LOGFILE >> $INSTALL_LOG && rm $LOGFILE || \
625 echo "Amanda preinstall logs can be found in '$LOGFILE'."
628 ##########################################
629 LOGFILE=`mktemp /tmp/amanda_client-postinst.log.XXXXXXXXXXX`
630 if [ $? -ne 0 ]; then
631 echo "Unable to create log file!"
635 AMANDATES=%{AMANDATES}
637 # ---------- Common functions ------------
639 %%POST_INST_FUNCTIONS%%
641 # -------- End Common functions ----------
644 check_xinetd "amandaclient"
646 0) backup_xinetd "amandaclient"
647 install_xinetd "amandaclient"
649 1) install_xinetd "amandaclient" ;;
650 2) logger "Xinetd config not installed: either xinetd config is not present or xinetd.d is a file." ;;
651 *) logger "bad return from check_xinetd"; exit 1 ;;
654 # Amanda clients should not have the server xinetd installed.
655 check_xinetd "amandaserver"
657 0) backup_xinetd "amandaserver" ;;
666 check_amandahosts_entry ${amanda_user} amdump
667 check_amandahosts_perms
668 create_ssh_key server
669 create_ssh_key client
674 logger "Amanda installation complete."
675 cat $LOGFILE >> $INSTALL_LOG && {
677 echo "Amanda installation log can be found in '${INSTALL_LOG}'.";
679 echo "Amanda postinstall logs can be found in '$LOGFILE'."
681 echo "`date +'%b %e %Y %T'`: Sending anonymous distribution and version information to Zmanda" >> ${INSTALL_LOG}
682 if [ -x /usr/bin/wget ]; then
683 /usr/bin/wget -q -o /dev/null -O - --timeout=5 http://www.zmanda.com/amanda-tips.php\?version=%{amanda_version}\&os=%{disttag}%{distver}\&type=client
686 %postun backup_client
687 ##########################################
688 LOGFILE=`mktemp /tmp/amanda_client-remove.log.XXXXXXXXXXX`
689 if [ $? -ne 0 ]; then
690 echo "Unable to create log file!"
695 # ---------- Common functions ------------
697 %%POST_RM_FUNCTIONS%%
699 # -------- End Common functions ----------
702 # Check for parameter to script (are we upgrading?)
703 if [ $1 -gt 0 ]; then
711 # See http://fedoraproject.org/wiki/Packaging/ScriptletSnippets for the reason
712 # we only remove xinetd on uninstall.
713 if [ "$action" = "uninstall" ]; then
714 # Check for and remove existing xinetd configs
715 check_xinetd "amandaclient"
716 if [ $? -eq 0 ] ; then
717 rm_xinetd "amandaclient"
720 check_inetd "amandaclient"
721 if [ $? -eq 0 ] ; then
722 rm_inetd "amandaclient"
725 if [ -d ${SYSCONFDIR}/amanda ]; then
726 logger "Removing ${SYSCONFDIR}/amanda if empty..."
727 rmdir ${SYSCONFDIR}/amanda 2> /dev/null || true
729 if [ -d ${AMANDAHOMEDIR} ]; then
730 logger "Removing ${AMANDAHOMEDIR}..."
731 rm -rf ${AMANDAHOMEDIR}
733 if [ -f ${SYSCONFDIR}/amandates ]; then
734 logger "Removing ${SYSCONFDIR}/amandates..."
735 rm -rf ${SYSCONFDIR}/amandates
737 # Remove ${amanda_user} from sensitive groups.
738 if which deluser >/dev/null 2>&1 ; then
739 for group in tape; do
740 # only call deluser when amandabackup is in $group
741 if getent group "$group" |
742 awk -F: '{ print $4 }' |
743 awk -F, '{ for (i=1; i <= NF; i++ ) print $i }' |
744 grep "^${amanda_user}$" > /dev/null; then
745 deluser ${amanda_user} $group || true
751 echo "Amanda removal log can be found in '$LOGFILE'."
754 # --- Files to install ---
755 # Notes: Do not use wildcards on directories not wholly owned by amanda. An
756 # uninstall of the software will attempt to delete whatever matches here.
757 %defattr(0755,%{amanda_user},%{amanda_group},0755)
760 %{PERLSITELIB}/auto/Amanda
761 %defattr(4750,root,disk)
762 %{AMLIBEXECDIR}/application/amgtar
763 %{AMLIBEXECDIR}/application/amstar
764 %{AMLIBEXECDIR}/calcsize
765 %{AMLIBEXECDIR}/killpgrp
766 %{AMLIBEXECDIR}/rundump
767 %{AMLIBEXECDIR}/runtar
768 %defattr(0750,%{amanda_user},%{amanda_group},0750)
772 %{SBINDIR}/amgpgcrypt
773 %{SBINDIR}/amoldrecover
776 %defattr(0644,%{amanda_user},%{amanda_group},0755)
777 %{LOCALSTATEDIR}/amanda
778 %{PERLSITELIB}/Amanda
779 %{AMLIBEXECDIR}/amcat.awk
780 %{AMANDAHOMEDIR}/gnutar-lists
781 %doc %{AMANDAHOMEDIR}/amanda-release
782 %doc %{AMANDAHOMEDIR}/example/xinetd.amandaclient
783 %doc %{AMANDAHOMEDIR}/example/xinetd.amandaserver
784 %doc %{AMANDAHOMEDIR}/example/amanda-client.conf
785 %doc %{AMANDAHOMEDIR}/template.d/README
786 %doc %{AMANDAHOMEDIR}/template.d/dumptypes
787 %defattr(0644,root,root,0755)
789 %{MANDIR}/man5/amanda.conf.5.gz
790 %{MANDIR}/man5/amanda-client.conf.5.gz
791 %{MANDIR}/man7/amanda-devices.7.gz
792 %{MANDIR}/man7/amanda-applications.7.gz
793 %{MANDIR}/man7/amanda-scripts.7.gz
794 %{MANDIR}/man8/amaespipe.8.gz
795 %{MANDIR}/man8/amanda.8.gz
796 %{MANDIR}/man8/amcheckdump.8.gz
797 %{MANDIR}/man8/amcrypt*
798 %{MANDIR}/man8/amgpgcrypt.8.gz
799 %{MANDIR}/man8/amrecover.8.gz
800 %doc %{DATADIR}/amanda
803 %defattr(0755,%{amanda_user},%{amanda_group})
806 %{PERLSITELIB}/Amanda
807 %{PERLSITELIB}/auto/Amanda
809 %{LOCALSTATEDIR}/amanda
811 %defattr(4750,root,disk)
812 %{AMLIBEXECDIR}/application/amgtar
813 %{AMLIBEXECDIR}/application/amstar
814 %{AMLIBEXECDIR}/calcsize
815 %{AMLIBEXECDIR}/killpgrp
816 %{AMLIBEXECDIR}/rundump
817 %{AMLIBEXECDIR}/runtar
818 %{AMLIBEXECDIR}/dumper
819 %{AMLIBEXECDIR}/planner
822 %defattr(0750,%{amanda_user},%{amanda_group},0750)
825 # Files in standard dirs must be listed explicitly
826 %{SBINDIR}/activate-devpay
829 %{SBINDIR}/amcrypt-ossl
830 %{SBINDIR}/amcrypt-ossl-asym
831 %{SBINDIR}/amcryptsimple
832 %{SBINDIR}/amgpgcrypt
833 %{SBINDIR}/amoldrecover
835 %defattr(0644,%{amanda_user},%{amanda_group})
836 %{AMLIBEXECDIR}/amcat.awk
837 %{AMLIBEXECDIR}/amplot.awk
838 %{AMLIBEXECDIR}/amplot.g
839 %{AMLIBEXECDIR}/amplot.gp
840 %doc %{AMANDAHOMEDIR}/amanda-release
841 %docdir %{AMANDAHOMEDIR}/example
842 %docdir %{AMANDAHOMEDIR}/template.d
843 %defattr(0644,root,root,0755)
846 %{MANDIR}/man5/disklist.5.gz
847 %{MANDIR}/man5/tapelist.5.gz
850 %{MANDIR}/man8/script-email.8.gz
851 %doc %{DATADIR}/amanda
856 * Fri Aug 20 2010 Dan Locks <dwlocks at zmanda dot com> 3.2.0alpha
857 - use %%VERSION%% macro instead of reading a file. error reported by ssgelm
858 * Thu Aug 19 2010 Dan Locks <dwlocks at zmanda dot com> 3.2.0alpha
859 - Added detection of openSuSE 11 as suggested by ssgelm