]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
xxhash: New package
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 20 Mar 2023 19:06:24 +0000 (20:06 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Mar 2023 18:19:05 +0000 (18:19 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
xxhash/xxhash.nm [new file with mode: 0644]

diff --git a/xxhash/xxhash.nm b/xxhash/xxhash.nm
new file mode 100644 (file)
index 0000000..d551178
--- /dev/null
@@ -0,0 +1,60 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+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