From 4072df3c1e52b1e8a4422be9b66fafc7d6c675c9a332b2bb91564281412ac1d0 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Sun, 18 Mar 2018 13:09:27 +0000 Subject: [PATCH] Accepting request 588300 from home:Heinervdm:branches:science This package is required for the latest version of root OBS-URL: https://build.opensuse.org/request/show/588300 OBS-URL: https://build.opensuse.org/package/show/science/xxhash?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + v0.6.4.tar.gz | 3 ++ xxhash.changes | 4 +++ xxhash.spec | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 115 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 v0.6.4.tar.gz create mode 100644 xxhash.changes create mode 100644 xxhash.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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/v0.6.4.tar.gz b/v0.6.4.tar.gz new file mode 100644 index 0000000..34fc00b --- /dev/null +++ b/v0.6.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4570ccd111df6b6386502791397906bf69b7371eb209af7d41debc2f074cdb22 +size 28995 diff --git a/xxhash.changes b/xxhash.changes new file mode 100644 index 0000000..9ccde95 --- /dev/null +++ b/xxhash.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Jan 21 18:49:27 UTC 2018 - bugs@vdm-design.de + +- Initial package of version 0.6.4 diff --git a/xxhash.spec b/xxhash.spec new file mode 100644 index 0000000..3aed478 --- /dev/null +++ b/xxhash.spec @@ -0,0 +1,84 @@ +# +# spec file for package xxhash +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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: xxhash +Version: 0.6.4 +Release: 0 +License: GPL-2.0 +Summary: Extremely fast non-cryptographic hash algorithm +Url: https://github.com/Cyan4973/xxHash +Group: System/Tools +Source0: https://github.com/Cyan4973/xxHash/archive/v%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +xxHash is an Extremely fast Hash algorithm, running at RAM speed limits. It successfully completes the SMHasher test suite which evaluates collision, dispersion and randomness qualities of hash functions. Code is highly portable, and hashes are identical on all platforms (little / big endian). + +%package -n libxxhash0 +Summary: The password hash library Argon2 +Group: System/Libraries +License: BSD-2-Clause + +%description -n libxxhash0 +The password hash library Argon2, winner of PHC + +%package devel +Summary: Development files for the password hash algorithm Argon2 +Group: Development/Libraries/C and C++ +License: BSD-2-Clause +Requires: %{name} = %{version} +Requires: libxxhash0 = %{version} + +%description devel +Development files for the password hash algorithm Argon2, winner of PHC + +%prep +%setup -q -n xxHash-%{version} + +%build +make %{?_smp_mflags} prefix=%{_prefix} libdir=%{_libdir} + +%install +%make_install prefix=%{_prefix} libdir=%{_libdir} +rm -rf %{buildroot}%{_libdir}/libxxhash.a + + +%post -n libxxhash0 -p /sbin/ldconfig + +%postun -n libxxhash0 -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc README.md LICENSE +%{_bindir}/xxhsum +%{_bindir}/xxh32sum +%{_bindir}/xxh64sum +%{_mandir}/man1/xxh32sum.* +%{_mandir}/man1/xxh64sum.* +%{_mandir}/man1/xxhsum.* + +%files -n libxxhash0 +%defattr(-,root,root,-) +%{_libdir}/libxxhash.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/xxhash.h +%{_libdir}/libxxhash.so + +%changelog