Summary: A persistent key-value database
Name: redis
-Version: 5.0.0
+Version: 6.2.5
Release: 1
License: BSD
Group: Applications/Databases
Source0: http://download.redis.io/releases/%{name}-%{version}.tar.gz
-# Source0-md5: c3010fcb5cd370778430bb4f2cd8dcd8
+# Source0-md5: db8a2b45eafbf1ead4353044fb70f581
Source1: %{name}.logrotate
Source2: %{name}.init
Source3: %{name}.tmpfiles
Patch0: %{name}.conf.patch
Patch1: %{name}-tcl.patch
Patch2: 0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch
-Patch3: 0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch
+Patch3: arm-arch-check.patch
URL: http://www.redis.io/
%{?with_perftools:BuildRequires: gperftools-devel}
BuildRequires: jemalloc-static
+%ifarch %{arm}
+BuildRequires: libatomic-devel
+%endif
BuildRequires: rpm >= 4.4.9-56
BuildRequires: rpmbuild(macros) >= 1.202
BuildRequires: sed >= 4.0
%build
%define specflags -std=c99 -pedantic
-%define _make_opts CC="%{__cc}" CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" OPTIMIZATION="" DEBUG="" V=1
+%define _make_opts CC="%{__cc}" CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" OPTIMIZATION="" DEBUG="" V=1 uname_M=%{_target_cpu}
%{__make} -C src all