2 # TODO: disable non-FIPS (md*), currently fails with "Error ensuring FIPS mode."
4 Summary: Tools for computing and checking HMAC values for files
10 Source0: https://fedorahosted.org/released/hmaccalc/%{name}-%{version}.tar.gz
11 # Source0-md5: 93cde34427cfbedfbdf8a468cfa65d20
12 URL: https://fedorahosted.org/hmaccalc/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: nss-devel
17 BuildRequires: pkgconfig
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 The hmaccalc package contains tools which can calculate HMAC
22 (hash-based message authentication code) values for files. The names
23 and interfaces are meant to mimic the sha*sum tools provided by the
35 --enable-sum-directory=%{_libdir}/%{name} \
41 rm -rf $RPM_BUILD_ROOT
44 DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %attr(755,root,root) %{_bindir}/md2hmac
53 %attr(755,root,root) %{_bindir}/md5hmac
54 %attr(755,root,root) %{_bindir}/sha1hmac
55 %attr(755,root,root) %{_bindir}/sha256hmac
56 %attr(755,root,root) %{_bindir}/sha384hmac
57 %attr(755,root,root) %{_bindir}/sha512hmac
58 %dir %{_libdir}/%{name}
59 %{_libdir}/%{name}/md2hmac.hmac
60 %{_libdir}/%{name}/md5hmac.hmac
61 %{_libdir}/%{name}/sha1hmac.hmac
62 %{_libdir}/%{name}/sha256hmac.hmac
63 %{_libdir}/%{name}/sha384hmac.hmac
64 %{_libdir}/%{name}/sha512hmac.hmac
65 %{_mandir}/man8/*hmac.8*