1 %bcond_with krb5 # build with MIT kerberos if asked
3 # Crypt::PBKDF2 isn't in base or EPEL on rhel8 so this won't work there frex
4 %bcond_with history # build heimdal-history tool
9 Summary: Kerberos password strength checking plugin
10 Group: System Environment/Daemons
13 URL: https://www.eyrie.org/~eagle/software/%{name}/
14 Source0: https://archives.eyrie.org/software/kerberos/%{name}-%{version}.tar.gz
17 BuildRequires: krb5-devel
19 BuildRequires: heimdal-devel
20 BuildRequires: libcom_err-devel
21 BuildRequires: ncurses-devel
23 BuildRequires: sqlite-devel
24 BuildRequires: tinycdb-devel
26 Requires: perl(autodie)
27 Requires: perl(Getopt::Long)
33 Requires: heimdal-server
36 %package -n %{name}-history
37 Summary: Kerberos password strength checking plugin history tool
38 Group: System Environment/Daemons
40 Requires: perl(autodie)
41 Requires: perl(Crypt::PBKDF2)
42 Requires: perl(DB_File::Lock)
43 Requires: perl(Getopt::Long::Descriptive)
44 Requires: perl(IPC::Run)
46 Requires: perl(Readonly)
47 %description -n %{name}-history
48 Heimdal password history tool for Kerberos password strength checking plugin
52 Kerberos password strength checking plugin and program for Heimdal KDC
57 # in theory a system could have Heimdal and krb5
60 export PATH_KRB5_CONFIG=/usr/bin/krb5-config
62 export PATH_KRB5_CONFIG=/usr/bin/heimdal-krb5-config
70 rm -f $RPM_BUILD_ROOT%{_bindir}/heimdal-history
71 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/heimdal-history.*
78 %{_bindir}/heimdal-strength
79 %{_bindir}/krb5-strength-wordlist
80 %{_mandir}/man1/heimdal-strength.*
81 %{_mandir}/man1/krb5-strength-wordlist.*
83 %{_libdir}/krb5/plugins/pwqual/strength.so
84 %{_libdir}/krb5/plugins/pwqual/strength.la
87 %files -n %{name}-history
89 %{_bindir}/heimdal-history
90 %{_mandir}/man1/heimdal-history.*
94 * Wed Nov 15 2023 Daria Phoebe Brashear <dariaphoebe@auristor.com> 3.2-1