2017-03-07 16:35:32 +01:00
|
|
|
#
|
|
|
|
# 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
|
2017-04-10 10:28:01 +02:00
|
|
|
Version: 1.0.3
|
2017-03-07 16:35:32 +01:00
|
|
|
Release: 0
|
2017-04-10 10:28:01 +02:00
|
|
|
Summary: Detection of SHA-1 collisions
|
2017-03-07 16:35:32 +01:00
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Security
|
|
|
|
Url: https://github.com/cr-marcstevens/sha1collisiondetection
|
2017-04-10 10:28:01 +02:00
|
|
|
Source: https://github.com/cr-marcstevens/sha1collisiondetection/archive/stable-v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2017-05-22 18:22:08 +02:00
|
|
|
Patch0: sha1collisiondetection-1.0.3-io-fixes.patch
|
2017-03-07 16:35:32 +01:00
|
|
|
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.
|
|
|
|
|
2017-04-10 10:28:01 +02:00
|
|
|
%package -n libsha1detectcoll1
|
|
|
|
Summary: Library that can detect SHA-1 collisions
|
2017-04-12 13:46:04 +02:00
|
|
|
Group: System/Libraries
|
2017-04-10 10:28:01 +02:00
|
|
|
|
|
|
|
%description -n libsha1detectcoll1
|
|
|
|
This library 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.
|
|
|
|
|
|
|
|
%package -n libsha1detectcoll-devel
|
|
|
|
Summary: Development files for
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libsha1detectcoll1 = %{version}
|
|
|
|
|
|
|
|
%description -n libsha1detectcoll-devel
|
|
|
|
This library 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.
|
|
|
|
|
2017-03-07 16:35:32 +01:00
|
|
|
%prep
|
2017-04-10 10:28:01 +02:00
|
|
|
%setup -q -n %{name}-stable-v%{version}
|
2017-05-22 18:22:08 +02:00
|
|
|
%patch0 -p1
|
2017-03-07 16:35:32 +01:00
|
|
|
|
|
|
|
%build
|
2017-04-10 10:28:01 +02:00
|
|
|
export TARGETCFLAGS="%{optflags}"
|
2017-03-07 16:35:32 +01:00
|
|
|
make %{?_smp_mflags} PREFIX=%{_prefix}
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
2017-04-10 10:28:01 +02:00
|
|
|
%make_install \
|
2017-08-14 15:49:27 +02:00
|
|
|
PREFIX=%{buildroot}%{_prefix} \
|
2017-03-07 16:35:32 +01:00
|
|
|
LIBDIR=%{buildroot}%{_libdir}
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2017-04-10 10:28:01 +02:00
|
|
|
find %{buildroot} -type f -name "*.a" -delete -print
|
2017-08-14 15:49:27 +02:00
|
|
|
chmod -x %{buildroot}%{_includedir}/sha1dc/sha1.h
|
2017-03-07 16:35:32 +01:00
|
|
|
|
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} test
|
|
|
|
|
2017-04-10 10:28:01 +02:00
|
|
|
%post -n libsha1detectcoll1 -p /sbin/ldconfig
|
|
|
|
%postun -n libsha1detectcoll1 -p /sbin/ldconfig
|
|
|
|
|
2017-03-07 16:35:32 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE.txt README.md
|
|
|
|
%{_bindir}/*
|
|
|
|
|
2017-04-10 10:28:01 +02:00
|
|
|
%files -n libsha1detectcoll1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE.txt README.md
|
|
|
|
%{_libdir}/libsha1detectcoll.so.*
|
|
|
|
|
|
|
|
%files -n libsha1detectcoll-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE.txt README.md
|
2017-08-14 15:49:27 +02:00
|
|
|
%{_includedir}/sha1dc
|
2017-04-10 10:28:01 +02:00
|
|
|
%{_libdir}/libsha1detectcoll.so
|
|
|
|
|
2017-03-07 16:35:32 +01:00
|
|
|
%changelog
|