From: Stefan Schantl Date: Mon, 20 Mar 2023 19:06:24 +0000 (+0100) Subject: xxhash: New package X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e6ef4c802cdcbd61b857de495cb579f8a227c62;p=people%2Fstevee%2Fipfire-3.x.git xxhash: New package Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- diff --git a/xxhash/xxhash.nm b/xxhash/xxhash.nm new file mode 100644 index 000000000..d551178ae --- /dev/null +++ b/xxhash/xxhash.nm @@ -0,0 +1,60 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +name = xxhash +version = 0.8.1 +release = 1 + +groups = System/Libraries +url = https://www.xxhash.com/ +license = BSD and GPLv2+ +summary = Extremely fast hash algorithm + +description + xxHash is an Extremely fast Hash algorithm, running at RAM speed + limits. +end + +source_dl = https://github.com/Cyan4973/xxHash/archive/v%{version}/ +sources = %{thisapp}.tar.gz + +build + DIR_APP = %{DIR_SRC}/xxHash-%{version} + + make_build_targets += \ + MOREFLAGS="%{CFLAGS} %{LDFLAGS}" + + test + make check + make test-xxhsum-c + end + + make_install_targets += \ + PREFIX=%{prefix} \ + LIBDIR=%{libdir} + + install_cmds + # Fix broken symlinks. + for bit in 32 64 128; do + ln -svf xxhsum.1 %{BUILDROOT}%{mandir}/man1/xxh${bit}sum.1 + done + end +end + +packages + package %{name} + + package %{name}-libs + template LIBS + end + + package %{name}-devel + template DEVEL + end + + package %{name}-debuginfo + template DEBUGINFO + end +end