[packages/xxHash] - new

qboosh qboosh at pld-linux.org
Sun Apr 19 14:39:28 CEST 2020


commit 678fe8f6bfd1ff764aaf4a674c98d6fd52330310
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 19 14:39:30 2020 +0200

    - new

 xxHash-pc.patch |  21 ++++++++++++
 xxHash.spec     | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)
---
diff --git a/xxHash.spec b/xxHash.spec
new file mode 100644
index 0000000..f95b7c6
--- /dev/null
+++ b/xxHash.spec
@@ -0,0 +1,103 @@
+Summary:	xxHash - extremely fast hash algorithm
+Summary(pl.UTF-8):	xxHash - bardzo szybki algorytm haszowania
+Name:		xxHash
+Version:	0.7.3
+Release:	1
+License:	BSD
+Group:		Libraries
+#Source0Download: https://github.com/Cyan4973/xxHash/releases
+Source0:	https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	9ec918b4f8fd4532b1687a211aecc014
+Patch0:		%{name}-pc.patch
+URL:		https://github.com/Cyan4973/xxHash
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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).
+
+%description -l pl.UTF-8
+xxHash to niezwykle szybki algorytm haszowania, dochodzący do
+ograniczeń szybkości pamięci RAM. Przechodzi zestaw testów SMHasher,
+oceniający współczynniki kolizji, dyspersji i losowości funkcji
+haszujących. Kod jest przenośny, a wartości haszy identyczne na
+wszystkich platformach (little- i big-endian).
+
+%package devel
+Summary:	Header files for xxHash library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki xxHash
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for xxHash library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki xxHash.
+
+%package static
+Summary:	Static xxHash library
+Summary(pl.UTF-8):	Statyczna biblioteka xxHash
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static xxHash library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka xxHash.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+CFLAGS="%{rpmcflags}" \
+CPPFLAGS="%{rpmcflags}" \
+LDFLAGS="%{rpmldflags}" \
+%{__make} \
+	prefix=%{_prefix} \
+	libdir=%{_libdir}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	prefix=%{_prefix} \
+	libdir=%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG LICENSE README.md
+%attr(755,root,root) %{_bindir}/xxhsum
+%attr(755,root,root) %{_bindir}/xxh32sum
+%attr(755,root,root) %{_bindir}/xxh64sum
+%attr(755,root,root) %{_bindir}/xxh128sum
+%attr(755,root,root) %{_libdir}/libxxhash.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libxxhash.so.0
+%{_mandir}/man1/xxhsum.1*
+%{_mandir}/man1/xxh32sum.1*
+%{_mandir}/man1/xxh64sum.1*
+%{_mandir}/man1/xxh128sum.1*
+
+%files devel
+%defattr(644,root,root,755)
+%doc doc/xxhash_spec.md
+%attr(755,root,root) %{_libdir}/libxxhash.so
+%{_includedir}/xxh3.h
+%{_includedir}/xxhash.h
+%{_pkgconfigdir}/libxxhash.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libxxhash.a
diff --git a/xxHash-pc.patch b/xxHash-pc.patch
new file mode 100644
index 0000000..a1afbd0
--- /dev/null
+++ b/xxHash-pc.patch
@@ -0,0 +1,21 @@
+--- xxHash-0.7.3/libxxhash.pc.in.orig	2020-03-05 03:37:01.000000000 +0100
++++ xxHash-0.7.3/libxxhash.pc.in	2020-04-19 14:17:42.057372398 +0200
+@@ -4,7 +4,7 @@
+ prefix=@PREFIX@
+ exec_prefix=${prefix}
+ includedir=${prefix}/include
+-libdir=${exec_prefix}/lib
++libdir=@LIBDIR@
+ 
+ Name: xxhash
+ Description: extremely fast hash algorithm
+--- xxHash-0.7.3/Makefile.orig	2020-03-05 03:37:01.000000000 +0100
++++ xxHash-0.7.3/Makefile	2020-04-19 14:18:05.167247201 +0200
+@@ -124,6 +124,7 @@
+ 
+ pkgconfig:
+ 	@sed -e 's|@PREFIX@|$(PREFIX)|' \
++		-e 's|@LIBDIR@|$(LIBDIR)|' \
+ 		-e 's|@VERSION@|$(LIBVER)|' \
+ 		libxxhash.pc.in >libxxhash.pc
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xxHash.git/commitdiff/678fe8f6bfd1ff764aaf4a674c98d6fd52330310



More information about the pld-cvs-commit mailing list