[freetiger/el5] Initial import (#969387)
Björn Esser
besser82 at fedoraproject.org
Thu Aug 29 06:54:25 UTC 2013
commit 51eb0f9c62ba194c9e6b592ddf73902791bd0209
Author: Björn Esser <bjoern.esser at gmail.com>
Date: Thu Aug 29 08:35:57 2013 +0200
Initial import (#969387)
.gitignore | 4 ++
freetiger-v5.tar.bz | Bin 0 -> 36637 bytes
freetiger.spec | 102 ++++++++++++++++++++++++++++++++++++++++++
freetiger_fix_testprog.patch | 10 ++++
sources | 1 +
5 files changed, 117 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4a406bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*~
+*.rpm
+*.tar*
+results_*/
diff --git a/freetiger-v5.tar.bz b/freetiger-v5.tar.bz
new file mode 100644
index 0000000..fccdecd
Binary files /dev/null and b/freetiger-v5.tar.bz differ
diff --git a/freetiger.spec b/freetiger.spec
new file mode 100644
index 0000000..cb77ca8
--- /dev/null
+++ b/freetiger.spec
@@ -0,0 +1,102 @@
+Name: freetiger
+Version: 5
+Release: 2%{?dist}
+Summary: Free implementation of the tiger hash algorithm
+%{?el5:Group: System Environment/Libraries}
+
+License: BSD
+URL: http://klondike.es/%{name}
+Source0: http://klondike.es/%{name}/%{name}-v%{version}.tar.bz
+Source1: http://besser82.fedorapeople.org/%{name}/%{name}-v%{version}_cmake.tar.gz
+
+# no need to submit, just make test-prog return 0.
+Patch0: freetiger_fix_testprog.patch
+
+%{?el5:BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)}
+BuildRequires: cmake
+
+%description
+%{name} is an implementation of the tiger hash algorithm made looking
+only at the tiger reference paper (thus ignoring the reference code until
+a working implementation was made). It also includes a modified version
+of the main program included with the tiger reference implementation which
+was used for benchmarking purposes.
+
+It has been optimized for usage in the TTH calculation algorithm and
+includes optimized versions that will calculate the hashes for the
+1024 byte file chunks and the 48 byte hash concatenation appending the
+proper suffix automatically thus minimizing memory to memory copying.
+
+Also %{name} features interleaved hashing where the hashes of two
+different blocks are calculated at the same time interleaving the
+operations of one and the other. Using this increases the
+implementation performance.
+
+%{name} also supports SSE2 for key scheduling during the tiger rounds
+which also increases performance on processors supporting it and
+provides an implementation of the partial hashing scheme for a more
+secure password storage when authenticating clients using the GPA
+command in ADC.
+
+%package devel
+Summary: Development files for %{name}
+%{?el5:Group: Development/Libraries}
+
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q -b 1 -n tiger
+%patch0
+
+
+%build
+mkdir -p build
+pushd build
+%cmake \
+ -DCMAKE_SKIP_RPATH:BOOL=OFF \
+ ..
+make %{?_smp_mflags}
+
+
+%check
+pushd build
+make check
+
+
+%install
+pushd build
+%{?el5:rm -rf %{buildroot}}
+make install DESTDIR=%{buildroot}
+
+
+%clean
+%{?el5:rm -rf %{buildroot}}
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc CHANGELOG DISCLAIMER LICENSE README THANKS
+%{_libdir}/*.so.*
+
+%files devel
+%doc C/README C/tigermain.c C/TODO
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/%{name}.pc
+%{_libdir}/cmake
+
+%changelog
+* Fri May 31 2013 Björn Esser <bjoern.esser at gmail.com> - 5-2
+- devel shouldn't require cmake, owning %%{_libdir}/cmake is enough.
+
+* Fri May 31 2013 Björn Esser <bjoern.esser at gmail.com> - 5-1
+- Initial rpm release (#969387)
diff --git a/freetiger_fix_testprog.patch b/freetiger_fix_testprog.patch
new file mode 100644
index 0000000..c37d5ae
--- /dev/null
+++ b/freetiger_fix_testprog.patch
@@ -0,0 +1,10 @@
+Index: tiger/C/tigermain.c
+===================================================================
+--- C/tigermain.c
++++ C/tigermain.c
+@@ -329,4 +329,5 @@ printf("rate _sse2_1025 = %.0lf bit/s\n"
+ #endif
+ #endif
+
++return 0;
+ }
diff --git a/sources b/sources
index e69de29..9e84bf0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+40a82c6789cf2f2dde8e3bdabe8125e3 freetiger-v5_cmake.tar.gz
More information about the scm-commits
mailing list