1 # RPM spec file for krb5-strength.
3 # Written by Daria Phoebe Brashear
4 # Copyright 2023 Daria Phoebe Brashear
5 # Copyright 2023 Russ Allbery <eagle@eyrie.org>
7 # SPDX-License-Identifier: MIT
9 %bcond_with krb5 # build with MIT kerberos if asked
11 # Crypt::PBKDF2 isn't in base or EPEL on rhel8 so this won't work there frex
12 %bcond_with history # build heimdal-history tool
17 Summary: Kerberos password strength checking plugin
18 Group: System Environment/Daemons
21 URL: https://www.eyrie.org/~eagle/software/%{name}/
22 Source0: https://archives.eyrie.org/software/kerberos/%{name}-%{version}.tar.gz
25 BuildRequires: krb5-devel
27 BuildRequires: heimdal-devel
28 BuildRequires: libcom_err-devel
29 BuildRequires: ncurses-devel
31 BuildRequires: sqlite-devel
32 BuildRequires: tinycdb-devel
34 Requires: perl(autodie)
35 Requires: perl(Getopt::Long)
41 Requires: heimdal-server
44 %package -n %{name}-history
45 Summary: Kerberos password strength checking plugin history tool
46 Group: System Environment/Daemons
48 Requires: perl(autodie)
49 Requires: perl(Const::Fast)
50 Requires: perl(Crypt::PBKDF2)
51 Requires: perl(DB_File::Lock)
52 Requires: perl(Getopt::Long::Descriptive)
53 Requires: perl(IPC::Run)
54 Requires: perl(JSON::MaybeXS)
55 %description -n %{name}-history
56 Heimdal password history tool for Kerberos password strength checking plugin
60 Kerberos password strength checking plugin and program for Heimdal KDC
65 # in theory a system could have Heimdal and krb5
68 export PATH_KRB5_CONFIG=/usr/bin/krb5-config
70 export PATH_KRB5_CONFIG=/usr/bin/heimdal-krb5-config
78 rm -f $RPM_BUILD_ROOT%{_bindir}/heimdal-history
79 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/heimdal-history.*
86 %{_bindir}/heimdal-strength
87 %{_bindir}/krb5-strength-wordlist
88 %{_mandir}/man1/heimdal-strength.*
89 %{_mandir}/man1/krb5-strength-wordlist.*
91 %{_libdir}/krb5/plugins/pwqual/strength.so
92 %{_libdir}/krb5/plugins/pwqual/strength.la
95 %files -n %{name}-history
97 %{_bindir}/heimdal-history
98 %{_mandir}/man1/heimdal-history.*
102 * Mon Dec 25 2023 Russ Allbery <eagle@eyrie.org> 3.3-1
104 - Update Perl dependencies for history package
106 * Wed Nov 15 2023 Daria Phoebe Brashear <dariaphoebe@auristor.com> 3.2-1