Signed-off-by: herengui <herengui@kylinsec.com.cn> (cherry picked from commit c1e0d2531366b473da77c1f4e26709aad89ea98a)
101 lines
2.8 KiB
RPMSpec
101 lines
2.8 KiB
RPMSpec
Name: memkind
|
|
Summary: Extensible Heap Manager for User
|
|
Version: 1.13.0
|
|
Release: 2
|
|
License: BSD
|
|
URL: http://memkind.github.io/memkind
|
|
Source0: https://github.com/memkind/memkind/archive/v1.13.0/%{name}-%{version}.tar.gz
|
|
|
|
Patch1000: 1000-add-loongarch-support-upstream.patch
|
|
Patch1001: 1001-add-sw_64-support-not-upstream.patch
|
|
|
|
BuildRequires: automake libtool numactl-devel systemd gcc gcc-c++
|
|
ExclusiveArch: x86_64 aarch64 loongarch64 sw_64
|
|
|
|
%description
|
|
The kinds of memory are defined by operating system memory policies that have been applied
|
|
to virtual address ranges. Memory characteristics supported by memkind without user extension
|
|
include control of NUMA and page size features.
|
|
|
|
%package devel
|
|
Summary: Development lib and tools for Memkind User Extensible Heap Manager
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
Development lib and tools for Memkind User Extensible Heap Manager.
|
|
|
|
%package help
|
|
Summary: Help documents for memkind
|
|
|
|
%description help
|
|
Help documents for memkind.
|
|
|
|
%prep
|
|
%autosetup -a 0 -n %{name}-%{version} -p1
|
|
|
|
%build
|
|
%ifarch loongarch64 sw_64
|
|
%_update_config_guess
|
|
%_update_config_sub
|
|
%endif
|
|
pushd %{_builddir}/memkind-1.13.0
|
|
echo 1.13.0 > %{_builddir}/memkind-1.13.0/VERSION
|
|
./build.sh --prefix=%{_prefix} --includedir=%{_includedir} --libdir=%{_libdir} \
|
|
--bindir=%{_bindir} --docdir=%{_docdir}/memkind --mandir=%{_mandir} \
|
|
--sbindir=%{_sbindir}
|
|
popd
|
|
|
|
%install
|
|
pushd %{_builddir}/memkind-1.13.0
|
|
%make_install
|
|
popd
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
|
|
%files
|
|
%{_libdir}/libmemkind.so.*
|
|
%{_libdir}/libmemtier.so.*
|
|
%{_libdir}/libautohbw.so.*
|
|
%{_bindir}/memkind-hbw-nodes
|
|
%{_bindir}/memkind-auto-dax-kmem-nodes
|
|
%dir %{_docdir}/memkind
|
|
%doc %{_docdir}/memkind/COPYING
|
|
|
|
%files devel
|
|
%{_includedir}/fixed_allocator.h
|
|
%{_includedir}/memkind*.h
|
|
%{_includedir}/hbwmalloc.h
|
|
%{_includedir}/hbw_allocator.h
|
|
%{_includedir}/pmem_allocator.h
|
|
%{_libdir}/libmemkind.so
|
|
%{_libdir}/libmemtier.so
|
|
%{_libdir}/libautohbw.so
|
|
%exclude %{_libdir}/libmemkind.{l,}a
|
|
%exclude %{_libdir}/libmemtier.{l,}a
|
|
%exclude %{_libdir}/libautohbw.{l,}a
|
|
%exclude %{_libdir}/pkgconfig/memkind.pc
|
|
%exclude %{_docdir}/memkind/VERSION
|
|
|
|
%files help
|
|
%doc %{_docdir}/memkind/README
|
|
%{_mandir}/man1/*
|
|
%{_mandir}/man3/*
|
|
%{_mandir}/man7/*
|
|
|
|
%changelog
|
|
* Tue Aug 29 2023 herengui <herengui@kylinsec.com.cn> - 1.13.0-2
|
|
- add support for loongarch64 and sw_64
|
|
|
|
* Mon Jun 6 2022 Hesham Almatary <hesham.almatary@huawei.com> - 1.13.0-1
|
|
- Upgrade to version 1.13.0 and allow building for aarch64
|
|
|
|
* Mon Aug 2 2021 luweitao <luweitaobe@163.com> - 2.7.1-12
|
|
- fix compile failure by GCC-10
|
|
|
|
* Thu Apr 23 2020 leiju <leiju4@huawei.com> - 1.7.0-4
|
|
- Package init
|