%global debug_package %{nil} %global _build_id_links none %if 0%{?rhel} && 0%{?rhel} < 10 %global gcc_toolset_enable source /opt/rh/gcc-toolset-15/enable %else %global gcc_toolset_enable source /usr/lib/gcc-toolset/15-env.source %endif Name: valkey Version: 9.1.2 Release: 1%{?dist} Summary: Persistent key-value database License: BSD-3-Clause URL: https://valkey.io/ Source0: https://github.com/valkey-io/valkey/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc-toolset-15-gcc BuildRequires: gcc-toolset-15-gcc-c++ BuildRequires: gcc-toolset-15-gcc-plugin-annobin BuildRequires: make BuildRequires: jemalloc-devel BuildRequires: openssl-devel BuildRequires: systemd-devel Requires(pre): shadow-utils %description Valkey is a high-performance key/value datastore that supports multiple data structures and workloads. It is maintained as an open source project under the Linux Foundation. %prep %autosetup # BUILD_LUA=module adds an RPATH containing both /usr/local/lib and # the build directory. Remove only that RPATH from the linker flags. sed -i \ 's|-Wl,-rpath,$(PREFIX)/lib:$(current_dir)/modules/lua ||' \ src/Makefile %build %{gcc_toolset_enable} %make_build \ BUILD_WITH_SYSTEMD=yes \ BUILD_TLS=yes \ BUILD_RDMA=no \ BUILD_LUA=module \ MALLOC=jemalloc \ USE_REDIS_SYMLINKS=no \ PREFIX=%{_prefix} %install %{gcc_toolset_enable} install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_includedir}/valkey install -d %{buildroot}%{_libdir}/valkey/modules install -pm755 \ src/valkey-server \ src/valkey-cli \ src/valkey-benchmark \ src/valkey-check-aof \ src/valkey-check-rdb \ src/valkey-sentinel \ %{buildroot}%{_bindir}/ install -pm644 \ src/valkeymodule.h \ %{buildroot}%{_includedir}/valkey/ install -pm755 \ src/modules/lua/*.so \ %{buildroot}%{_libdir}/valkey/modules/ %files %{_bindir}/valkey-server %{_bindir}/valkey-cli %{_bindir}/valkey-benchmark %{_bindir}/valkey-check-aof %{_bindir}/valkey-check-rdb %{_bindir}/valkey-sentinel %dir %{_includedir}/valkey %{_includedir}/valkey/valkeymodule.h %dir %{_libdir}/valkey %dir %{_libdir}/valkey/modules %{_libdir}/valkey/modules/*.so %changelog %autochangelog