From 7d67fac81f0fcbbc1d31aadb71c108b786ec3dcf0e65a2d0512c4b9435e115c2 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 14 Apr 2014 09:19:02 +0000 Subject: [PATCH] - new package, generate HMACs for FIPS usage. OBS-URL: https://build.opensuse.org/package/show/security/hmaccalc?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ hmaccalc-0.9.13.tar.gz | 3 ++ hmaccalc-0.9.13.tar.gz.sig | Bin 0 -> 280 bytes hmaccalc.changes | 5 +++ hmaccalc.keyring | 59 ++++++++++++++++++++++++++ hmaccalc.spec | 82 +++++++++++++++++++++++++++++++++++++ 6 files changed, 172 insertions(+) create mode 100644 .gitattributes create mode 100644 hmaccalc-0.9.13.tar.gz create mode 100644 hmaccalc-0.9.13.tar.gz.sig create mode 100644 hmaccalc.changes create mode 100644 hmaccalc.keyring create mode 100644 hmaccalc.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/hmaccalc-0.9.13.tar.gz b/hmaccalc-0.9.13.tar.gz new file mode 100644 index 0000000..f10a978 --- /dev/null +++ b/hmaccalc-0.9.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a00b507555e45f58c1659d28f4d27e63373735a30cfe70e2c939f679cd266cc +size 106979 diff --git a/hmaccalc-0.9.13.tar.gz.sig b/hmaccalc-0.9.13.tar.gz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..fdbc7cce5db27169894a02232cad67337fa6a5e4b2e78743cc13b95f62413fe8 GIT binary patch literal 280 zcmV+z0q6dS0TlxU08(5!4+0CFx#dr2mjMFSeh2&udH#8-d3bljX=EDRYrXX~alP-n za8!30gO6n_7C=mRe1l!+PpTPrO&3hssf#5_<|^I;cUKwCs3jY_Rw((ETYQCj1;~4x z*j*A?IhJCSb_yN94GORl^KkSD}mi-zp%DS_Q74YW>3V*>! zI< \\\ + $RPM_BUILD_ROOT/%{_libdir}/%{name}/sha${length}hmac.hmac \ + done \ + %{nil} + +Name: hmaccalc +Version: 0.9.13 +Release: 0 +Summary: Tools for computing and checking HMAC values for files +License: BSD +Group: System Environment/Base +Url: https://fedorahosted.org/hmaccalc/ +Source0: https://fedorahosted.org/released/hmaccalc/hmaccalc-%{version}.tar.gz +Source1: https://fedorahosted.org/released/hmaccalc/hmaccalc-%{version}.tar.gz.sig +Source2: %name.keyring +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%ifarch %{ix86} x86_64 ppc ppc64 s390 s390x +BuildRequires: nss-devel +BuildRequires: prelink +%else +BuildRequires: nss-devel +%endif + +%description +The hmaccalc package contains tools which can calculate HMAC (hash-based +message authentication code) values for files. The names and interfaces are +meant to mimic the sha*sum tools provided by the coreutils package. + +%prep +%setup -q + +%build +%configure --enable-sum-directory=%{_libdir}/%{name} +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +%check +make check + +%files +%defattr(-,root,root,-) +%doc README LICENSE +%{_bindir}/sha1hmac +%{_bindir}/sha256hmac +%{_bindir}/sha384hmac +%{_bindir}/sha512hmac +%dir %{_libdir}/%{name} +%{_libdir}/%{name}/sha1hmac.hmac +%{_libdir}/%{name}/sha256hmac.hmac +%{_libdir}/%{name}/sha384hmac.hmac +%{_libdir}/%{name}/sha512hmac.hmac +%{_mandir}/*/* + +%changelog