redhat: remove extra kernel version check
[openafs.git] / src / packaging / RedHat / openafs.spec.in
index 90b530a..c68dde5 100644 (file)
@@ -8,13 +8,43 @@
 
 %{!?build_dkmspkg: %define build_dkmspkg 1}
 
-# Determine presence of rpmbuild command line --define arguments used for
-# option specification
-%define kernvers_on_cmdline %{?kernvers:1}%{!?kernvers:0}
+#
+# Determine presence of rpmbuild command line --define arguments and set
+# defaults if not present.
+#
 %define build_userspace_on_cmdline %{?build_userspace:1}%{!?build_userspace:0}
 %define build_modules_on_cmdline %{?build_modules:1}%{!?build_modules:0}
-%define build_authlibs_on_cmdline %{?build_authlibs:1}%{!?build_authlibs:0}
+%define debugspec_on_cmdline %{?debugspec:1}%{!?debugspec:0}
+
+%if !%{build_userspace_on_cmdline}
+%define build_userspace 1
+%endif
+%if !%{build_modules_on_cmdline}
+%define build_modules 1
+%endif
+%if !%{debugspec_on_cmdline}
+%define debugspec 0
+%endif
 
+# Specify '--with kauth' if you want to build packages containing the legacy
+# kaserver and related programs.
+%define kauth_support %{?_with_kauth:1}%{!?_with_kauth:0}
+
+# Specify '--without authlibs' if you do not want to build the openafs-authlibs
+# package.
+%define build_authlibs %{?_without_authlibs:0}%{!?_without_authlibs:1}
+
+# Specify '--without krb5' if you do not want to build the openafs-krb5 package
+# to distribute aklog, asetkey, and akeyconvert.
+%define krb5support %{?_without_krb5:0}%{!?_without_krb5:1}
+
+# Specify '--with bootkernel' if you want to build the
+# kernel module for Red Hat BOOT Kernels on x86.
+%define bootkernelsupport %{?_with_bootkernel:1}%{!?_with_bootkernel:0}
+
+#
+# Definitions
+#
 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
 %define depmod /usr/sbin/depmod
 %else
 
 %define dkms_version %{pkgvers}-%{pkgrel}%{?dist}
 
-# Set 'debugspec' to 1 if you want to debug the spec file.  This will
-# not remove the installed tree as part of the %clean operation
-%if %{?debugspec:0}%{!?debugspec:1}
-%define debugspec 0
-%endif
-
-# Set 'krb5support' to 1 if you want to build the openafs-krb5 package
-# to distribute aklog and asetkey
-%define krb5support %{?_without_krb5:0}%{!?_without_krb5:1}
-
-# Set 'bootkernelsupport' to 1 if you want to build the
-# kernel module for Red Hat BOOT Kernels on x86.
-%define bootkernelsupport %{?_with_bootkernel:1}%{!?_with_bootkernel:0}
-
 # Define the location of your init.d directory
 %define initdir /etc/rc.d/init.d
 
 # Define the location of the PAM security module directory
 %define pamdir /%{_lib}/security
 
-#######################################################################
-# You probably don't need to change anything beyond this line
-# NOTE: If you do, please email me!!!
-
-# Determine which elements of OpenAFS to build.  For non-x86 arches
-# (subject to the ExclusiveArch setting, below), we build both userspace
-# and modules.  For most x86 arches, we build just the kernel modules.  For
-# i386, we build just the userspace.  If you're running an i386 kernel,
-# you'll need to tweak that last bit.
-%if !%{build_userspace_on_cmdline} && !%{build_modules_on_cmdline}
-
-%define build_userspace 1
-%define build_modules 1
-%ifarch %{ix86} x86_64 ia64
-%define build_authlibs 1
-%else
-%define build_authlibs 0
-%endif
-
-%else
-%if !%{build_userspace_on_cmdline}
-%define build_userspace 0
-%endif
-%if !%{build_modules_on_cmdline}
-%define build_modules 0
-%endif
-%endif
-
-%if !%{build_authlibs_on_cmdline}
-%if %{build_userspace_on_cmdline}
-%define build_authlibs 1
-%else
-%define build_authlibs 0
-%endif
-%endif
-
-# Make sure RPM doesn't complain about installed but non-packaged files.
-#define __check_files  %{nil}
-
 Summary: OpenAFS distributed filesystem
 Name: openafs
 Version: %{pkgvers}
@@ -115,7 +92,7 @@ BuildRequires: %{?kdepend:%{kdepend}, } pam-devel, ncurses-devel, flex, bison
 BuildRequires: systemd-units
 %endif
 %if 0%{?fedora} >= 15 || 0%{?rhel} >= 6
-BuildRequires: perl-devel
+BuildRequires: perl-devel, swig
 %endif
 BuildRequires: perl(ExtUtils::Embed)
 %if %{krb5support}
@@ -125,7 +102,7 @@ BuildRequires: krb5-devel
 BuildRequires: kernel-devel
 %endif
 
-ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64
+ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64 aarch64
 
 #    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
 Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
@@ -135,7 +112,7 @@ Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar
 Source10: http://www.openafs.org/dl/openafs/%{afsvers}/RELNOTES-%{afsvers}
 Source11: http://www.openafs.org/dl/openafs/%{afsvers}/ChangeLog
 
-Source20: https://www.central.org/dl/cellservdb/CellServDB.2016-01-01
+Source20: https://www.central.org/dl/cellservdb/CellServDB.2017-03-14
 
 Source30: openafs-kernel-version.sh
 Source996: openafs-kvers-is.sh
@@ -164,16 +141,16 @@ what gets built:
                                   The build will define ksrvdir as
                                   %%{kbase}<kernvers>%%{kend}
 
+ --without authlibs               Disable authlibs package (default: with authlibs)
  --without krb5                   Disable krb5 support (default: with krb5)
  --with bitmap-later              Enable "bitmap later" support
  --with bos-restricted            Enable "bos restricted" mode
  --with supergroups               Enable "supergroups"
+ --with kauth                     Build the openafs-kauth-server and openafs-kauth-client
+                                  packages which contain the legacy kaserver and
+                                  related programs. (default: --without kauth)
 
  --target=i386                    The target architecture to build for.
-                                  When building for a non-default target
-                                  the build may choose whether to build
-                                  userspace or kernel modules automatically.
-                                  The defaults are probably what you want.
 
  --define "build_userspace 1"     Request building of userspace tools
  --define "build_modules 1"       Request building of kernel modules
@@ -362,19 +339,38 @@ completely optional, and is only necessary to support legacy
 applications and scripts that hard-code the location of AFS client
 programs.
 
-%package kpasswd
-Summary: OpenAFS KA kpasswd support
+%if %{kauth_support}
+%package kauth-client
+Summary: OpenAFS Kauth Client support
 Requires: openafs
 Group: Networking/Filesystems
 
-%description kpasswd
+%description kauth-client
 The AFS distributed filesystem.  AFS is a distributed filesystem
 allowing cross-platform sharing of files among multiple computers.
 Facilities are provided for access control, authentication, backup and
 administrative management.
 
-This package provides the kpasswd executable, renamed to kapasswd to avoid
-clashes, for sites still using KAserver instead of Krb5.
+This package provides the legacy KAServer client programs and the PAM module
+for authentication with the OpenAFS KAserver; a deprecated authentication
+service.  Generally you should not install this package for new cells or for
+cells using Kerberos v5.
+
+%package kauth-server
+Summary: OpenAFS Kauth Server support
+Requires: openafs
+Group: Networking/Filesystems
+
+%description kauth-server
+The AFS distributed filesystem.  AFS is a distributed filesystem
+allowing cross-platform sharing of files among multiple computers.
+Facilities are provided for access control, authentication, backup and
+administrative management.
+
+This package provides the legacy OpenAFS KAServer; a deprecated authentication
+service. Generally you should not install this package for new cells or for
+cells using Kerberos v5.
+%endif
 
 %if %{krb5support}
 %package krb5
@@ -417,7 +413,7 @@ krb4 lookalike services.
 
 : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 : @@@
-: @@@ kernel version:     %{kernvers}
+: @@@ kernel version:     %{kverrel}
 : @@@ kernel variations:  %{kvariants}
 : @@@ PAM modules dir:    %{pamdir}
 : @@@ build userspace:    %{build_userspace}
@@ -441,6 +437,7 @@ case %{_arch} in
        x86_64)                         sysname=amd64_linux26        ;;
        alpha*)                         sysname=alpha_linux_26       ;;
        i386|i486|i586|i686|athlon)     sysname=i386_linux26         ;;
+       aarch64)                        sysname=arm64_linux26        ;;
        *)                              sysname=%{_arch}_linux26     ;;
 esac
 
@@ -548,6 +545,7 @@ PrintRedhatKernelFix() {
 }
 
 config_opts="--enable-redhat-buildsys \
+       %{?_with_kauth:--enable-kauth} \
        %{?_with_bitmap_later:--enable-bitmap-later} \
        %{?_with_bos_restricted:--enable-bos-restricted-mode} \
        %{?_with_supergroups:--enable-supergroups} \
@@ -598,7 +596,11 @@ export KRB5_CONFIG
 %if %{krb5support}
        --with-krb5 \
 %endif
-       --enable-kauth \
+%if 0%{?fedora} >= 15 || 0%{?rhel} >= 6
+    --with-swig \
+%else
+    --without-swig \
+%endif
        $config_opts \
        || exit 1
 
@@ -699,14 +701,16 @@ chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so*
 # Exclude duplicated files.
 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/bos
 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/fs
+%if %{kauth_support}
 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/kas
 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/klog
 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/klog.krb
 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/kpwvalid
+rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/tokens.krb
 rm -f $RPM_BUILD_ROOT%{_sbindir}/kpwvalid
+%endif
 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/pts
 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/tokens
-rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/tokens.krb
 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/udebug
 rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/vos
 
@@ -725,12 +729,19 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so*
 rm -f $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so*
 %endif
 rm -f $RPM_BUILD_ROOT%{_sbindir}/afsd.fuse
+%if !%{kauth_support}
+rm -f $RPM_BUILD_ROOT%{_prefix}/afs/bin/tokens.krb
+rm -f $RPM_BUILD_ROOT%{_bindir}/tokens.krb
+rm -f $RPM_BUILD_ROOT%{_bindir}/pagsh.krb
+%endif
 
 # Relocate afsd to legacy path to match init scripts.
 mv $RPM_BUILD_ROOT%{_sbindir}/afsd $RPM_BUILD_ROOT%{_prefix}/vice/etc/afsd
 
 # Relocate admin utilities to a modern path.
+%if %{kauth_support}
 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/kadb_check $RPM_BUILD_ROOT%{_sbindir}/kadb_check
+%endif
 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/prdb_check $RPM_BUILD_ROOT%{_sbindir}/prdb_check
 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/vldb_check $RPM_BUILD_ROOT%{_sbindir}/vldb_check
 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/vldb_convert $RPM_BUILD_ROOT%{_sbindir}/vldb_convert
@@ -739,6 +750,7 @@ mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/akeyconvert $RPM_BUILD_ROOT%{_sbindir}/akey
 mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/asetkey $RPM_BUILD_ROOT%{_sbindir}/asetkey
 %endif
 
+%if %{kauth_support}
 # Relocate PAM files to the standard PAM module path.
 mkdir -p $RPM_BUILD_ROOT%{pamdir}
 mv $RPM_BUILD_ROOT%{_libdir}/pam_afs.krb.so $RPM_BUILD_ROOT%{pamdir}
@@ -749,6 +761,7 @@ ln -sf pam_afs.krb.so $RPM_BUILD_ROOT%{pamdir}/pam_afs.krb.so.1
 # Rename kpasswd to avoid conflicting with krb5 kpasswd.
 mv $RPM_BUILD_ROOT%{_bindir}/kpasswd $RPM_BUILD_ROOT%{_bindir}/kapasswd
 mv $RPM_BUILD_ROOT%{_mandir}/man1/kpasswd.1 $RPM_BUILD_ROOT%{_mandir}/man1/kapasswd.1
+%endif
 
 # Exclude obsolete or unused man pages.
 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/afs_ftpd.1
@@ -769,6 +782,7 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/man1/dlog.*
 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/copyauth.*
 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/dpass.*
 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/livesys.*
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/afsd.fuse.8
 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/rmtsysd.*
 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/aklog_dynamic_auth.*
 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/kdb.*
@@ -780,6 +794,15 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/man8/package.*
 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/akeyconvert.*
 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/asetkey.*
 %endif
+%if !%{kauth_support}
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/pagsh.krb.1
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tokens.krb.1
+rm -f $RPM_BUILD_ROOT%{_mandir}/man5/AuthLog.5
+rm -f $RPM_BUILD_ROOT%{_mandir}/man5/AuthLog.dir.5
+%endif
+%if !(0%{?fedora} >= 15 || 0%{?rhel} >= 6)
+rm -f %{_mandir}/man3/AFS::ukernel.3
+%endif
 
 #-----------------------------------------------------------------------------
 # Install client and server initscripts/systemd files
@@ -863,17 +886,19 @@ mkdir -p $RPM_BUILD_ROOT%{_prefix}/afsws/etc
 ln -sf %{_prefix}/bin/afsmonitor    $RPM_BUILD_ROOT%{_prefix}/afsws/bin/afsmonitor
 ln -sf %{_prefix}/bin/bos           $RPM_BUILD_ROOT%{_prefix}/afsws/bin/bos
 ln -sf %{_prefix}/bin/fs            $RPM_BUILD_ROOT%{_prefix}/afsws/bin/fs
+%if %{kauth_support}
 ln -sf %{_prefix}/bin/kapasswd      $RPM_BUILD_ROOT%{_prefix}/afsws/bin/kapasswd
 ln -sf %{_prefix}/bin/klog          $RPM_BUILD_ROOT%{_prefix}/afsws/bin/klog
 ln -sf %{_prefix}/bin/klog.krb      $RPM_BUILD_ROOT%{_prefix}/afsws/bin/klog.krb
-ln -sf %{_prefix}/bin/pagsh         $RPM_BUILD_ROOT%{_prefix}/afsws/bin/pagsh
 ln -sf %{_prefix}/bin/pagsh.krb     $RPM_BUILD_ROOT%{_prefix}/afsws/bin/pagsh.krb
+ln -sf %{_prefix}/bin/tokens.krb    $RPM_BUILD_ROOT%{_prefix}/afsws/bin/tokens.krb
+%endif
+ln -sf %{_prefix}/bin/pagsh         $RPM_BUILD_ROOT%{_prefix}/afsws/bin/pagsh
 ln -sf %{_prefix}/bin/pts           $RPM_BUILD_ROOT%{_prefix}/afsws/bin/pts
 ln -sf %{_prefix}/bin/restorevol    $RPM_BUILD_ROOT%{_prefix}/afsws/bin/restorevol
 ln -sf %{_prefix}/bin/scout         $RPM_BUILD_ROOT%{_prefix}/afsws/bin/scout
 ln -sf %{_prefix}/bin/sys           $RPM_BUILD_ROOT%{_prefix}/afsws/bin/sys
 ln -sf %{_prefix}/bin/tokens        $RPM_BUILD_ROOT%{_prefix}/afsws/bin/tokens
-ln -sf %{_prefix}/bin/tokens.krb    $RPM_BUILD_ROOT%{_prefix}/afsws/bin/tokens.krb
 ln -sf %{_prefix}/bin/translate_et  $RPM_BUILD_ROOT%{_prefix}/afsws/bin/translate_et
 ln -sf %{_prefix}/bin/xstat_cm_test $RPM_BUILD_ROOT%{_prefix}/afsws/bin/xstat_cm_test
 ln -sf %{_prefix}/bin/xstat_fs_test $RPM_BUILD_ROOT%{_prefix}/afsws/bin/xstat_fs_test
@@ -883,7 +908,9 @@ ln -sf %{_prefix}/sbin/backup       $RPM_BUILD_ROOT%{_prefix}/afsws/etc/backup
 ln -sf %{_prefix}/sbin/butc         $RPM_BUILD_ROOT%{_prefix}/afsws/etc/butc
 ln -sf %{_prefix}/sbin/fms          $RPM_BUILD_ROOT%{_prefix}/afsws/etc/fms
 ln -sf %{_prefix}/sbin/fstrace      $RPM_BUILD_ROOT%{_prefix}/afsws/etc/fstrace
+%if %{kauth_support}
 ln -sf %{_prefix}/sbin/kas          $RPM_BUILD_ROOT%{_prefix}/afsws/etc/kas
+%endif
 ln -sf %{_prefix}/sbin/read_tape    $RPM_BUILD_ROOT%{_prefix}/afsws/etc/read_tape
 ln -sf %{_prefix}/sbin/rxdebug      $RPM_BUILD_ROOT%{_prefix}/afsws/etc/rxdebug
 ln -sf %{_prefix}/sbin/uss          $RPM_BUILD_ROOT%{_prefix}/afsws/etc/uss
@@ -1080,20 +1107,15 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 %defattr(-,root,root)
 %config(noreplace) /etc/sysconfig/openafs
 %doc %{_docdir}/openafs-%{afsvers}/LICENSE
-%exclude %{_mandir}/man1/klog.krb5.*
 %{_bindir}/afsmonitor
 %{_bindir}/bos
 %{_bindir}/fs
-%{_bindir}/klog
-%{_bindir}/klog.krb
 %{_bindir}/pagsh
-%{_bindir}/pagsh.krb
 %{_bindir}/pts
 %{_bindir}/restorevol
 %{_bindir}/scout
 %{_bindir}/sys
 %{_bindir}/tokens
-%{_bindir}/tokens.krb
 %{_bindir}/translate_et
 %{_bindir}/xstat_cm_test
 %{_bindir}/xstat_fs_test
@@ -1103,7 +1125,6 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 %{_sbindir}/butc
 %{_sbindir}/fms
 %{_sbindir}/fstrace
-%{_sbindir}/kas
 %{_sbindir}/read_tape
 %{_sbindir}/rxdebug
 %{_sbindir}/uss
@@ -1111,52 +1132,43 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 %{_sbindir}/vsys
 %{_libdir}/libafshcrypto.so.*
 %{_libdir}/librokenafs.so.*
-%{_mandir}/man1/afs.*
-%{_mandir}/man1/afsmonitor.*
-%{_mandir}/man1/fs.*
-%{_mandir}/man1/fs_*.*
-%{_mandir}/man1/klog.*
-%{_mandir}/man1/pagsh.*
-%{_mandir}/man1/pts.*
-%{_mandir}/man1/pts_*.*
-%{_mandir}/man1/restorevol.*
-%{_mandir}/man1/rxdebug.*
-%{_mandir}/man1/scout.*
-%{_mandir}/man1/sys.*
-%{_mandir}/man1/tokens.*
-%{_mandir}/man1/translate_et.*
-%{_mandir}/man1/udebug.*
-%{_mandir}/man1/unlog.*
-%{_mandir}/man1/vos.*
-%{_mandir}/man1/vos_*.*
-%{_mandir}/man1/xstat_cm_test.*
-%{_mandir}/man1/xstat_fs_test.*
-%{_mandir}/man5/CellServDB.*
-%{_mandir}/man5/ThisCell.*
-%{_mandir}/man5/afsmonitor.*
-%{_mandir}/man5/butc.*
-%{_mandir}/man5/butc_logs.*
-%{_mandir}/man5/uss.*
-%{_mandir}/man5/uss_bulk.*
-%{_mandir}/man8/backup.*
-%{_mandir}/man8/backup_*.*
-%{_mandir}/man8/bos.*
-%{_mandir}/man8/bos_*.*
-%{_mandir}/man8/bosserver.*
-%{_mandir}/man8/butc.*
-%{_mandir}/man8/dafssync-debug.*
-%{_mandir}/man8/dafssync-debug_*.*
-%{_mandir}/man8/fms.*
-%{_mandir}/man8/fssync-debug.*
-%{_mandir}/man8/fssync-debug_*.*
-%{_mandir}/man8/fstrace.*
-%{_mandir}/man8/fstrace_*.*
-%{_mandir}/man8/kas.*
-%{_mandir}/man8/kas_*.*
-%{_mandir}/man8/kaserver.*
-%{_mandir}/man8/read_tape.*
-%{_mandir}/man8/uss.*
-%{_mandir}/man8/uss_*.*
+%{_mandir}/man1/afs.1.gz
+%{_mandir}/man1/afsmonitor.1.gz
+%{_mandir}/man1/fs.1.gz
+%{_mandir}/man1/fs_*.1.gz
+%{_mandir}/man1/pagsh.1.gz
+%{_mandir}/man1/pts.1.gz
+%{_mandir}/man1/pts_*.1.gz
+%{_mandir}/man1/restorevol.1.gz
+%{_mandir}/man1/rxdebug.1.gz
+%{_mandir}/man1/scout.1.gz
+%{_mandir}/man1/sys.1.gz
+%{_mandir}/man1/tokens.1.gz
+%{_mandir}/man1/translate_et.1.gz
+%{_mandir}/man1/udebug.1.gz
+%{_mandir}/man1/unlog.1.gz
+%{_mandir}/man1/vos.1.gz
+%{_mandir}/man1/vos_*.1.gz
+%{_mandir}/man1/xstat_cm_test.1.gz
+%{_mandir}/man1/xstat_fs_test.1.gz
+%{_mandir}/man5/CellServDB.5.gz
+%{_mandir}/man5/ThisCell.5.gz
+%{_mandir}/man5/afsmonitor.5.gz
+%{_mandir}/man5/butc.5.gz
+%{_mandir}/man5/butc_logs.5.gz
+%{_mandir}/man5/uss.5.gz
+%{_mandir}/man5/uss_bulk.5.gz
+%{_mandir}/man8/backup.8.gz
+%{_mandir}/man8/backup_*.8.gz
+%{_mandir}/man8/bos.8.gz
+%{_mandir}/man8/bos_*.8.gz
+%{_mandir}/man8/butc.8.gz
+%{_mandir}/man8/fms.8.gz
+%{_mandir}/man8/fstrace.8.gz
+%{_mandir}/man8/fstrace_*.8.gz
+%{_mandir}/man8/read_tape.8.gz
+%{_mandir}/man8/uss.8.gz
+%{_mandir}/man8/uss_*.8.gz
 
 %files docs
 %defattr(-,root,root)
@@ -1182,27 +1194,22 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 %{_prefix}/vice/etc/C/afszcm.cat
 %{_libdir}/libuafs.a
 %{_libdir}/libuafs_pic.a
-%{pamdir}/pam_afs.krb.so.1
-%{pamdir}/pam_afs.krb.so
-%{pamdir}/pam_afs.so.1
-%{pamdir}/pam_afs.so
 %if 0%{?fedora} < 15 && 0%{?rhel} < 7
 %{initdir}/openafs-client
 %else
 %{_unitdir}/openafs-client.service
 %{_sysconfdir}/sysconfig/modules/openafs-client.modules
 %endif
-%{_mandir}/man1/cmdebug.*
-%{_mandir}/man1/up.*
-%{_mandir}/man3/AFS::ukernel.*
+%{_mandir}/man1/cmdebug.1.gz
+%{_mandir}/man1/up.1.gz
 %{_mandir}/man5/afs.5.gz
 %{_mandir}/man5/afs_cache.5.gz
 %{_mandir}/man5/afs_volume_header.5.gz
 %{_mandir}/man5/afszcm.cat.5.gz
-%{_mandir}/man5/cacheinfo.*
-%{_mandir}/man8/afsd.*
-%{_mandir}/man8/vsys.*
-%{_mandir}/man5/CellAlias.*
+%{_mandir}/man5/cacheinfo.5.gz
+%{_mandir}/man8/afsd.8.gz
+%{_mandir}/man8/vsys.8.gz
+%{_mandir}/man5/CellAlias.5.gz
 
 %files server
 %defattr(-,root,root)
@@ -1219,9 +1226,6 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 %{_prefix}/afs/bin/davolserver
 %{_prefix}/afs/bin/fileserver
 %{_prefix}/afs/bin/fssync-debug
-# Should we support KAServer?
-%{_prefix}/afs/bin/kaserver
-%{_prefix}/afs/bin/ka-forwarder
 %{_prefix}/afs/bin/pt_util
 %{_prefix}/afs/bin/ptserver
 %{_prefix}/afs/bin/salvager
@@ -1234,7 +1238,6 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 %{_prefix}/afs/bin/volinfo
 %{_prefix}/afs/bin/volscan
 %{_prefix}/afs/bin/volserver
-%{_sbindir}/kadb_check
 %{_sbindir}/prdb_check
 %{_sbindir}/vldb_check
 %{_sbindir}/vldb_convert
@@ -1244,56 +1247,56 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 %else
 %{_unitdir}/openafs-server.service
 %endif
-%{_mandir}/man5/AuthLog.*
-%{_mandir}/man5/BackupLog.*
-%{_mandir}/man5/BosConfig.*
-%{_mandir}/man5/BosLog.*
-%{_mandir}/man5/FORCESALVAGE.*
-%{_mandir}/man5/FileLog.*
-%{_mandir}/man5/KeyFile.*
-%{_mandir}/man5/KeyFileExt.*
-%{_mandir}/man5/NetInfo.*
-%{_mandir}/man5/NetRestrict.*
-%{_mandir}/man5/NoAuth.*
-%{_mandir}/man5/PtLog.*
-%{_mandir}/man5/SALVAGE.fs.*
-%{_mandir}/man5/SalvageLog.*
-%{_mandir}/man5/sysid.*
-%{_mandir}/man5/UserList.*
-%{_mandir}/man5/VLLog.*
-%{_mandir}/man5/VolserLog.*
-%{_mandir}/man5/bdb.DB0.*
-%{_mandir}/man5/fms.log.*
-%{_mandir}/man5/kaserver.DB0.*
-%{_mandir}/man5/kaserverauxdb.*
-%{_mandir}/man5/krb.conf.*
-%{_mandir}/man5/krb.excl.*
-%{_mandir}/man5/prdb.DB0.*
-%{_mandir}/man5/salvage.lock.*
-%{_mandir}/man5/tapeconfig.*
-%{_mandir}/man5/vldb.DB0.*
-%{_mandir}/man8/buserver.*
-%{_mandir}/man8/fileserver.*
-%{_mandir}/man8/dafileserver.*
-%{_mandir}/man8/dasalvager.*
-%{_mandir}/man8/davolserver.*
-%{_mandir}/man8/kadb_check.*
-%{_mandir}/man8/ka-forwarder.*
-%{_mandir}/man8/prdb_check.*
-%{_mandir}/man8/ptserver.*
-%{_mandir}/man8/pt_util.*
-%{_mandir}/man8/salvager.*
-%{_mandir}/man8/salvageserver.*
-%{_mandir}/man8/state_analyzer.*
-%{_mandir}/man8/upclient.*
-%{_mandir}/man8/upserver.*
-%{_mandir}/man8/vldb_check.*
-%{_mandir}/man8/vldb_convert.*
-%{_mandir}/man8/vlserver.*
-%{_mandir}/man8/voldump.*
-%{_mandir}/man8/volinfo.*
-%{_mandir}/man8/volscan.*
-%{_mandir}/man8/volserver.*
+%{_mandir}/man5/BackupLog.5.gz
+%{_mandir}/man5/BosConfig.5.gz
+%{_mandir}/man5/BosLog.5.gz
+%{_mandir}/man5/FORCESALVAGE.5.gz
+%{_mandir}/man5/FileLog.5.gz
+%{_mandir}/man5/KeyFile.5.gz
+%{_mandir}/man5/KeyFileExt.5.gz
+%{_mandir}/man5/NetInfo.5.gz
+%{_mandir}/man5/NetRestrict.5.gz
+%{_mandir}/man5/NoAuth.5.gz
+%{_mandir}/man5/PtLog.5.gz
+%{_mandir}/man5/SALVAGE.fs.5.gz
+%{_mandir}/man5/SalvageLog.5.gz
+%{_mandir}/man5/sysid.5.gz
+%{_mandir}/man5/UserList.5.gz
+%{_mandir}/man5/VLLog.5.gz
+%{_mandir}/man5/VolserLog.5.gz
+%{_mandir}/man5/bdb.DB0.5.gz
+%{_mandir}/man5/fms.log.5.gz
+%{_mandir}/man5/krb.conf.5.gz
+%{_mandir}/man5/krb.excl.5.gz
+%{_mandir}/man5/prdb.DB0.5.gz
+%{_mandir}/man5/salvage.lock.5.gz
+%{_mandir}/man5/tapeconfig.5.gz
+%{_mandir}/man5/vldb.DB0.5.gz
+%{_mandir}/man8/bosserver.8.gz
+%{_mandir}/man8/buserver.8.gz
+%{_mandir}/man8/fileserver.8.gz
+%{_mandir}/man8/dafileserver.8.gz
+%{_mandir}/man8/dafssync-debug.8.gz
+%{_mandir}/man8/dafssync-debug_*.8.gz
+%{_mandir}/man8/dasalvager.8.gz
+%{_mandir}/man8/davolserver.8.gz
+%{_mandir}/man8/fssync-debug.8.gz
+%{_mandir}/man8/fssync-debug_*.8.gz
+%{_mandir}/man8/prdb_check.8.gz
+%{_mandir}/man8/ptserver.8.gz
+%{_mandir}/man8/pt_util.8.gz
+%{_mandir}/man8/salvager.8.gz
+%{_mandir}/man8/salvageserver.8.gz
+%{_mandir}/man8/state_analyzer.8.gz
+%{_mandir}/man8/upclient.8.gz
+%{_mandir}/man8/upserver.8.gz
+%{_mandir}/man8/vldb_check.8.gz
+%{_mandir}/man8/vldb_convert.8.gz
+%{_mandir}/man8/vlserver.8.gz
+%{_mandir}/man8/voldump.8.gz
+%{_mandir}/man8/volinfo.8.gz
+%{_mandir}/man8/volscan.8.gz
+%{_mandir}/man8/volserver.8.gz
 
 %if %{build_authlibs}
 %files authlibs
@@ -1342,8 +1345,13 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 %{_libdir}/librxkad.a
 %{_libdir}/librxstat.a
 %{_libdir}/libubik.a
-%{_mandir}/man1/rxgen.*
-%{_mandir}/man1/afs_compile_et.*
+%{_mandir}/man1/rxgen.1.gz
+%{_mandir}/man1/afs_compile_et.1.gz
+%if 0%{?fedora} >= 15 || 0%{?rhel} >= 6
+%{_libdir}/perl/AFS/ukernel.pm
+%{_libdir}/perl/ukernel.so
+%{_mandir}/man3/AFS::ukernel.3.gz
+%endif
 
 %if %{build_dkmspkg}
 %files -n dkms-%{name}
@@ -1360,14 +1368,74 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 
 %files compat
 %defattr(-,root,root)
-%{_prefix}/afsws
+%{_prefix}/afsws/bin/afsmonitor
+%{_prefix}/afsws/bin/bos
+%{_prefix}/afsws/bin/fs
+%{_prefix}/afsws/bin/pagsh
+%{_prefix}/afsws/bin/pts
+%{_prefix}/afsws/bin/restorevol
+%{_prefix}/afsws/bin/scout
+%{_prefix}/afsws/bin/sys
+%{_prefix}/afsws/bin/tokens
+%{_prefix}/afsws/bin/translate_et
+%{_prefix}/afsws/bin/udebug
+%{_prefix}/afsws/bin/unlog
+%{_prefix}/afsws/bin/xstat_cm_test
+%{_prefix}/afsws/bin/xstat_fs_test
+%{_prefix}/afsws/etc/backup
+%{_prefix}/afsws/etc/butc
+%{_prefix}/afsws/etc/fms
+%{_prefix}/afsws/etc/fstrace
+%{_prefix}/afsws/etc/read_tape
+%{_prefix}/afsws/etc/rxdebug
+%{_prefix}/afsws/etc/uss
+%{_prefix}/afsws/etc/vos
+%{_prefix}/afsws/etc/vsys
+%if %{kauth_support}
+%{_prefix}/afsws/bin/pagsh.krb
+%{_prefix}/afsws/bin/tokens.krb
+%endif
 
-%files kpasswd
+%if %{kauth_support}
+%files kauth-client
 %defattr(-,root,root)
+%{_sbindir}/kas
+%{_bindir}/klog
+%{_bindir}/klog.krb
+%{pamdir}/pam_afs.krb.so.1
+%{pamdir}/pam_afs.krb.so
+%{pamdir}/pam_afs.so.1
+%{pamdir}/pam_afs.so
 %{_bindir}/kapasswd
 %{_bindir}/kpwvalid
-%{_mandir}/man1/kapasswd.*
-%{_mandir}/man8/kpwvalid.*
+%{_bindir}/pagsh.krb
+%{_bindir}/tokens.krb
+%{_prefix}/afsws/bin/kapasswd
+%{_prefix}/afsws/bin/klog
+%{_prefix}/afsws/bin/klog.krb
+%{_prefix}/afsws/etc/kas
+%{_mandir}/man1/kapasswd.1.gz
+%{_mandir}/man1/klog.1.gz
+%{_mandir}/man1/klog.krb.1.gz
+%{_mandir}/man1/pagsh.krb.1.gz
+%{_mandir}/man1/tokens.krb.1.gz
+%{_mandir}/man8/kpwvalid.8.gz
+%{_mandir}/man8/kas.8.gz
+%{_mandir}/man8/kas_*.8.gz
+
+%files kauth-server
+%defattr(-,root,root)
+%{_prefix}/afs/bin/kaserver
+%{_prefix}/afs/bin/ka-forwarder
+%{_sbindir}/kadb_check
+%{_mandir}/man5/AuthLog.5.gz
+%{_mandir}/man5/AuthLog.dir.5.gz
+%{_mandir}/man5/kaserver.DB0.5.gz
+%{_mandir}/man5/kaserverauxdb.5.gz
+%{_mandir}/man8/kadb_check.8.gz
+%{_mandir}/man8/ka-forwarder.8.gz
+%{_mandir}/man8/kaserver.8.gz
+%endif
 
 %if %{krb5support}
 %files krb5
@@ -1376,13 +1444,13 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 %{_bindir}/klog.krb5
 %{_sbindir}/akeyconvert
 %{_sbindir}/asetkey
-%{_mandir}/man1/aklog.*
-%{_mandir}/man1/klog.krb5.*
-%{_mandir}/man8/akeyconvert.*
-%{_mandir}/man8/asetkey.*
+%{_mandir}/man1/aklog.1.gz
+%{_mandir}/man1/klog.krb5.1.gz
+%{_mandir}/man8/akeyconvert.8.gz
+%{_mandir}/man8/asetkey.8.gz
 %endif
+%endif  # build_userspace
 
-%endif
 ##############################################################################
 ###
 ### openafs.spec change log