]> git.pld-linux.org Git - packages/redis.git/blobdiff - redis.spec
patch to make arm arch check more consistent
[packages/redis.git] / redis.spec
index 151b716297c9660dc6b51015fd4ebba876136604..3ee5a25755a9fa4abcb8e018d59ee757f532d523 100644 (file)
@@ -25,9 +25,13 @@ 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:                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
@@ -74,6 +78,7 @@ disk.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 # Remove integration tests
 %{__sed} -i -e '/    integration\/replication/d' tests/test_helper.tcl
@@ -91,7 +96,7 @@ ln -s %{_includedir} deps/jemalloc/include
 
 %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
 
This page took 2.391828 seconds and 4 git commands to generate.