1
0
Andreas Stieger 2017-04-10 08:28:01 +00:00 committed by Git OBS Bridge
parent 1d7ca93b81
commit eaf1a9e28a
6 changed files with 55 additions and 29 deletions

View File

@ -1,15 +0,0 @@
<services>
<service mode="disabled" name="tar_scm">
<param name="url">https://github.com/cr-marcstevens/sha1collisiondetection.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="filename">sha1collisiondetection</param>
<param name="versionformat">%cd.%h</param>
</service>
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version"/>
</services>

View File

@ -1,4 +0,0 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/cr-marcstevens/sha1collisiondetection.git</param>
<param name="changesrevision">ec0ddf3d6041989463a584fe2ca0d241f7248e43</param></service></servicedata>

BIN
sha1collisiondetection-1.0.3.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:943388ca93f85c843e6346801ec4d6cce1c894caccb7a58eae59bf8a33344f74
size 398424

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Apr 10 08:27:43 UTC 2017 - astieger@suse.com
- update to 1.0.3:
* SIMD code removed
* performance improvements
- package library
-------------------------------------------------------------------
Tue Feb 28 20:59:56 UTC 2017 - astieger@suse.com

View File

@ -18,14 +18,13 @@
Name: sha1collisiondetection
Version: 20170228.ec0ddf3
Version: 1.0.3
Release: 0
Summary: Command line tool to detect SHA-1 collision in a file
Summary: Detection of SHA-1 collisions
License: MIT
Group: Productivity/Security
Url: https://github.com/cr-marcstevens/sha1collisiondetection
Source: %{name}-%{version}.tar.xz
BuildRequires: fdupes
Source: https://github.com/cr-marcstevens/sha1collisiondetection/archive/stable-v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: libtool
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -35,27 +34,65 @@ implementations. It will compute the SHA-1 hash of any given file and additional
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 libsha1detectcoll1
Summary: Library that can detect SHA-1 collisions
Group: Development/Libraries/C and C++
%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.
%prep
%setup -q
%setup -q -n %{name}-stable-v%{version}
%build
export TARGETCFLAGS="%{optflags}"
make %{?_smp_mflags} PREFIX=%{_prefix}
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
make install \
%make_install \
INCLUDEDIR=%{buildroot}%{_includedir} \
BINDIR=%{buildroot}%{_bindir} \
LIBDIR=%{buildroot}%{_libdir}
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}%{_bindir}
find %{buildroot} -type f -name "*.a" -delete -print
chmod -x %{buildroot}%{_includedir}/sha1.h
%check
make %{?_smp_mflags} test
%post -n libsha1detectcoll1 -p /sbin/ldconfig
%postun -n libsha1detectcoll1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc LICENSE.txt README.md
%{_bindir}/*
%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
%{_includedir}/sha1.h
%{_libdir}/libsha1detectcoll.so
%changelog