62 lines
1.9 KiB
RPMSpec
62 lines
1.9 KiB
RPMSpec
|
#
|
||
|
# spec file for package sha1collisiondetection
|
||
|
#
|
||
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||
|
# Copyright (c) 2017 Andreas Stieger <astieger@suse.com>
|
||
|
#
|
||
|
# All modifications and additions to the file contributed by third parties
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
Name: sha1collisiondetection
|
||
|
Version: 20170228.ec0ddf3
|
||
|
Release: 0
|
||
|
Summary: Command line tool to detect SHA-1 collision in a file
|
||
|
License: MIT
|
||
|
Group: Productivity/Security
|
||
|
Url: https://github.com/cr-marcstevens/sha1collisiondetection
|
||
|
Source: %{name}-%{version}.tar.xz
|
||
|
BuildRequires: fdupes
|
||
|
BuildRequires: libtool
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
This command line tool was designed as near drop-in replacements for other sha1sum
|
||
|
implementations. It will compute the SHA-1 hash of any given file and additionally
|
||
|
will detect cryptanalytic collision attacks against SHA-1 present in each file.
|
||
|
It is very fast and takes less than twice the amount of time as regular SHA-1.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
make %{?_smp_mflags} PREFIX=%{_prefix}
|
||
|
|
||
|
%install
|
||
|
mkdir -p %{buildroot}%{_bindir}
|
||
|
mkdir -p %{buildroot}%{_libdir}
|
||
|
make install \
|
||
|
BINDIR=%{buildroot}%{_bindir} \
|
||
|
LIBDIR=%{buildroot}%{_libdir}
|
||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||
|
%fdupes %{buildroot}%{_bindir}
|
||
|
|
||
|
%check
|
||
|
make %{?_smp_mflags} test
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc LICENSE.txt README.md
|
||
|
%{_bindir}/*
|
||
|
|
||
|
%changelog
|