From 1d4d276544b69fe224a204c555d4f663059d50a3 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 10 Nov 2021 12:17:53 +0200 Subject: [PATCH] Enable riscv64 arch Signed-off-by: David Abdurachmanov --- numactl.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/numactl.spec b/numactl.spec index 479ae70..a1dbe1c 100644 --- a/numactl.spec +++ b/numactl.spec @@ -1,7 +1,7 @@ Name: numactl Summary: Library for tuning for Non Uniform Memory Access machines Version: 2.0.14 -Release: 1%{dist} +Release: 1.0.riscv64%{dist} # libnuma is LGPLv2 and GPLv2 # numactl binaries are GPLv2 only License: GPLv2 @@ -9,8 +9,11 @@ URL: https://github.com/numactl/numactl Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz BuildRequires: libtool automake autoconf +%ifarch riscv64 +BuildRequires: libatomic +%endif -ExcludeArch: s390 %{arm} +ExcludeArch: s390 %{arm} riscv64 %description Simple NUMA policy support. It consists of a numactl program to run @@ -37,6 +40,10 @@ Provides development headers for numa library calls %autosetup %build +%ifarch riscv64 +export LDFLAGS="${build_ldflags} -latomic" +%endif + %configure --prefix=/usr --libdir=%{_libdir} # Using recipe to fix rpaths, from here: # https://fedoraproject.org/wiki/RPath_Packaging_Draft#Removing_Rpath @@ -77,6 +84,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/*.3* %changelog +* Wed Nov 10 2021 David Abdurachmanov - 2.0.14-1.0.riscv64 +- Enable riscv64 + * Thu Sep 17 2020 Filipe Brandenburger - 2.0.14-1 - Upgrade to 2.0.14 - Re-enabled LTO, now that upstream has been fixed to support it.