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
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 The hmaccalc package contains tools which can calculate HMAC
23 (hash-based message authentication code) values for files. The names
24 and interfaces are meant to mimic the sha*sum tools provided by the
35 PRELINK_CMD=/usr/sbin/prelink \
37 --enable-sum-directory=%{_libdir}/%{name} \
43 rm -rf $RPM_BUILD_ROOT
46 DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %attr(755,root,root) %{_bindir}/md2hmac
55 %attr(755,root,root) %{_bindir}/md5hmac
56 %attr(755,root,root) %{_bindir}/sha1hmac
57 %attr(755,root,root) %{_bindir}/sha256hmac
58 %attr(755,root,root) %{_bindir}/sha384hmac
59 %attr(755,root,root) %{_bindir}/sha512hmac
60 %dir %{_libdir}/%{name}
61 %{_libdir}/%{name}/md2hmac.hmac
62 %{_libdir}/%{name}/md5hmac.hmac
63 %{_libdir}/%{name}/sha1hmac.hmac
64 %{_libdir}/%{name}/sha256hmac.hmac
65 %{_libdir}/%{name}/sha384hmac.hmac
66 %{_libdir}/%{name}/sha512hmac.hmac
67 %{_mandir}/man8/*hmac.8*