|
|
371c5ce |
# We need to regenerate the HMAC values after the buildroot policies have
|
|
|
371c5ce |
# mucked around with binaries. This overrides the default which was in place
|
|
|
371c5ce |
# at least from Red Hat Linux 9 through Fedora 11's development cycle.
|
|
|
371c5ce |
%define __spec_install_post \
|
|
|
371c5ce |
%{?__debug_package:%{__debug_install_post}} \
|
|
|
371c5ce |
%{__arch_install_post} \
|
|
|
371c5ce |
%{__os_install_post} \
|
|
|
371c5ce |
for length in 1 256 384 512 ; do \
|
|
|
371c5ce |
$RPM_BUILD_ROOT/%{_bindir}/sha${length}hmac -S > \\\
|
|
|
371c5ce |
$RPM_BUILD_ROOT/%{_libdir}/%{name}/sha${length}hmac.hmac \
|
|
|
371c5ce |
done \
|
|
|
371c5ce |
%{nil}
|
|
|
371c5ce |
|
|
|
371c5ce |
Name: hmaccalc
|
|
|
fcf4227 |
Version: 0.9.12
|
|
Nalin Dahyabhai |
9bd1299 |
Release: 7%{?dist}
|
|
|
371c5ce |
Summary: Tools for computing and checking HMAC values for files
|
|
|
371c5ce |
|
|
|
371c5ce |
Group: System Environment/Base
|
|
Nalin Dahyabhai |
9bd1299 |
License: BSD
|
|
|
371c5ce |
URL: https://fedorahosted.org/hmaccalc/
|
|
|
371c5ce |
Source0: https://fedorahosted.org/released/hmaccalc/hmaccalc-%{version}.tar.gz
|
|
|
371c5ce |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
371c5ce |
|
|
|
dd600f8 |
BuildRequires: nss-devel, prelink
|
|
|
371c5ce |
|
|
|
371c5ce |
%description
|
|
|
371c5ce |
The hmaccalc package contains tools which can calculate HMAC (hash-based
|
|
|
371c5ce |
message authentication code) values for files. The names and interfaces are
|
|
|
371c5ce |
meant to mimic the sha*sum tools provided by the coreutils package.
|
|
|
371c5ce |
|
|
|
371c5ce |
%prep
|
|
|
371c5ce |
%setup -q
|
|
|
371c5ce |
|
|
|
371c5ce |
%build
|
|
|
371c5ce |
%configure --enable-sum-directory=%{_libdir}/%{name}
|
|
|
371c5ce |
make %{?_smp_mflags}
|
|
|
371c5ce |
|
|
|
371c5ce |
%install
|
|
|
371c5ce |
rm -rf $RPM_BUILD_ROOT
|
|
|
371c5ce |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
371c5ce |
|
|
|
371c5ce |
%clean
|
|
|
371c5ce |
rm -rf $RPM_BUILD_ROOT
|
|
|
371c5ce |
|
|
|
371c5ce |
%check
|
|
|
371c5ce |
make check
|
|
|
371c5ce |
|
|
|
371c5ce |
%files
|
|
|
371c5ce |
%defattr(-,root,root,-)
|
|
|
371c5ce |
%doc README LICENSE
|
|
|
371c5ce |
%{_bindir}/sha1hmac
|
|
|
371c5ce |
%{_bindir}/sha256hmac
|
|
|
371c5ce |
%{_bindir}/sha384hmac
|
|
|
371c5ce |
%{_bindir}/sha512hmac
|
|
|
371c5ce |
%dir %{_libdir}/%{name}
|
|
|
371c5ce |
%{_libdir}/%{name}/sha1hmac.hmac
|
|
|
371c5ce |
%{_libdir}/%{name}/sha256hmac.hmac
|
|
|
371c5ce |
%{_libdir}/%{name}/sha384hmac.hmac
|
|
|
371c5ce |
%{_libdir}/%{name}/sha512hmac.hmac
|
|
|
371c5ce |
%{_mandir}/*/*
|
|
|
371c5ce |
|
|
|
371c5ce |
%changelog
|
|
Nalin Dahyabhai |
9bd1299 |
* Fri Aug 9 2013 Nalin Dahyabhai <nalin@redhat.com> - 0.9.12-7
|
|
Nalin Dahyabhai |
9bd1299 |
- correct License: tag - it's closer to BSD (no advertising, 3 clause) than
|
|
Nalin Dahyabhai |
9bd1299 |
proper MIT (rcritten)
|
|
Nalin Dahyabhai |
9bd1299 |
|
|
|
8337cbd |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.12-6
|
|
|
8337cbd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
8337cbd |
|
|
|
c159ef7 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.12-5
|
|
|
c159ef7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
c159ef7 |
|
|
|
94ca637 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.12-4
|
|
|
94ca637 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
94ca637 |
|
|
|
8f068f5 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.12-3
|
|
|
8f068f5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
8f068f5 |
|
|
|
afde178 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.12-2
|
|
|
afde178 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
afde178 |
|
|
|
fcf4227 |
* Tue Dec 15 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.12-1
|
|
|
fcf4227 |
- fix regression of #512275 -- we looked for prelink, but didn't record
|
|
|
3dd2a36 |
its location properly (#559458)
|
|
|
fcf4227 |
|
|
|
29a3409 |
* Tue Sep 8 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.11-1
|
|
|
29a3409 |
- error out when we previously skipped a check entry because the value to be
|
|
|
29a3409 |
checked is the wrong size
|
|
|
29a3409 |
- fix estimation of the expected length for truncated values
|
|
|
29a3409 |
|
|
|
d14edef |
* Thu Sep 3 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.10-1
|
|
|
d14edef |
- refuse to truncate output below half the size of the hash length, or 80
|
|
|
d14edef |
bits, whichever is higher, in case we get used in a situation where
|
|
|
d14edef |
not doing so would make us vulnerable to CVE-2009-0217, in which an
|
|
|
d14edef |
attacker manages to convince a party doing verification to truncate
|
|
|
d14edef |
both the just-computed value and the value to be checked before
|
|
|
d14edef |
comparing them, as comparing just 1 bit would make detecting forgeries
|
|
|
d14edef |
close to impossible
|
|
|
d14edef |
|
|
|
04f04e9 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9-2
|
|
|
04f04e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
04f04e9 |
|
|
Nalin Dahyabhai |
4db4028 |
* Fri Jul 10 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.9-1
|
|
|
dd600f8 |
- look for prelink at compile-time, and if we find it try to invoke it
|
|
|
dd600f8 |
using a full pathname before trying with $PATH (#512275)
|
|
|
dd600f8 |
- buildrequires: prelink so that it will be found at compile-time
|
|
|
dd600f8 |
|
|
|
5995371 |
* Tue Jun 9 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.8-1
|
|
|
5995371 |
- when checking, skip input lines which don't look like valid input lines
|
|
|
5995371 |
|
|
|
e759432 |
* Tue Jun 9 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.7-1
|
|
|
e759432 |
- add a binary (-b) mode when summing
|
|
|
e759432 |
|
|
|
371c5ce |
* Wed Apr 8 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.6-1
|
|
|
371c5ce |
- fix 'make check' by using binaries built with a different path for their
|
|
|
371c5ce |
own check files
|
|
|
371c5ce |
- add a non-fips compile-time option, which we don't use
|
|
|
371c5ce |
|
|
|
371c5ce |
* Mon Mar 30 2009 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
371c5ce |
- handle '-' as indicating that stdin should be used for the input file
|
|
|
371c5ce |
|
|
|
371c5ce |
* Fri Mar 27 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.5-1
|
|
|
371c5ce |
- add a -t option, for truncating HMAC outputs
|
|
|
371c5ce |
|
|
|
371c5ce |
* Wed Mar 25 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.4-1
|
|
|
371c5ce |
- use a longer default key, when we use the default key
|
|
|
371c5ce |
|
|
|
371c5ce |
* Tue Mar 24 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.3-1
|
|
|
371c5ce |
- fix the -k option
|
|
|
371c5ce |
- move self-check files to %%{_libdir}/%{name}
|
|
|
371c5ce |
|
|
|
371c5ce |
* Tue Mar 24 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.2-1
|
|
|
371c5ce |
- provide a way to override the directory which will be searched for self-check
|
|
|
371c5ce |
values (part of #491719)
|
|
|
371c5ce |
|
|
|
371c5ce |
* Tue Mar 24 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9.1-1
|
|
|
371c5ce |
- store self-check values in hex rather than in binary form (part of #491719)
|
|
|
371c5ce |
|
|
|
371c5ce |
* Tue Mar 24 2009 Nalin Dahyabhai <nalin@redhat.com> 0.9-2
|
|
|
371c5ce |
- add URL to fedorahosted home page, and mention it in the man page as a means
|
|
|
371c5ce |
to report bugs and whatnot (part of #491719)
|
|
|
371c5ce |
- correct the license tag: "X11" -> "MIT" (part of #491719)
|
|
|
371c5ce |
- expand the acronym HMAC in the description (part of #491719)
|
|
|
371c5ce |
- disable the sumfile prefix (part of #491719)
|
|
|
371c5ce |
|
|
|
371c5ce |
* Fri Mar 20 2009 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
371c5ce |
- initial .spec file
|