From 306e82f7a03c48e83eb221f0d820398c0bdde1e9 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Thu, 19 Sep 2024 11:09:04 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ valkey.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .abf.yml create mode 100644 valkey.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..d483b33 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + valkey-8.0.0.tar.gz: b824298257d889f5271b3f46440106f6ebc702e5 diff --git a/valkey.spec b/valkey.spec new file mode 100644 index 0000000..5666609 --- /dev/null +++ b/valkey.spec @@ -0,0 +1,60 @@ +Name: valkey +Version: 8.0.0 +Release: 1 +Summary: key-value datastore +URL: https://valkey.io +Source0: https://github.com/valkey-io/valkey/archive/%{version}/%{name}-%{version}.tar.gz +License: BSD +Group: Databases +BuildRequires: gcc +BuildRequires: tcl >= 8.5 +BuildRequires: procps-ng +BuildRequires: pkgconfig(openssl3.3) +BuildRequires: pkgconfig(systemd) +BuildRequires: pkgconfig(jemalloc) +BuildRequires: pkgconfig(lua) +Provides: valkey-benchmark +Provides: valkey-check-aof +Provides: valkey-check-rdb@ +Provides: valkey-cli +Provides: valkey-sentinel +Provides: valkey-server + + +%description +This project was forked from the open source Redis project +right before the transition to their new source available +licenses. + +Valkey is a high-performance data structure server that +primarily serves key/value workloads. It supports a wide +range of native structures and an extensible plugin +system for adding new data structures and access patterns. + +%prep +%setup -q + +%build +%make \ + USE_SYSTEMD=yes \ + PREFIX=%{_prefix} \ + OPENSSL_PREFIX=/opt/openssl3.3 \ + MALLOC=jemalloc + +%install +%make PREFIX=%{buildroot}%{_prefix} install + +# remove redis links +rm -f %{buildroot}%{_bindir}/redis* + + +%check +%make test + + +%files +%doc README.md COPYING +%{_bindir}/%{name}* + + +