]> git.pld-linux.org Git - packages/xxHash.git/commitdiff
- new auto/th/xxHash-0.7.3-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 19 Apr 2020 12:39:30 +0000 (14:39 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 19 Apr 2020 12:39:30 +0000 (14:39 +0200)
xxHash-pc.patch [new file with mode: 0644]
xxHash.spec [new file with mode: 0644]

diff --git a/xxHash-pc.patch b/xxHash-pc.patch
new file mode 100644 (file)
index 0000000..a1afbd0
--- /dev/null
@@ -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
diff --git a/xxHash.spec b/xxHash.spec
new file mode 100644 (file)
index 0000000..f95b7c6
--- /dev/null
@@ -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
This page took 0.101018 seconds and 4 git commands to generate.