Enable riscv64 arch

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
David Abdurachmanov 2021-11-10 12:17:53 +02:00
parent c5260c37ca
commit 1d4d276544
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB

View File

@ -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 <david.abdurachmanov@gmail.com> - 2.0.14-1.0.riscv64
- Enable riscv64
* Thu Sep 17 2020 Filipe Brandenburger <filbranden@gmail.com> - 2.0.14-1
- Upgrade to 2.0.14
- Re-enabled LTO, now that upstream has been fixed to support it.