代码拉取完成,页面将自动刷新
%global ldscriptdir %{_datadir}/%{name}/ldscripts
Name: libhugetlbfs
Version: 2.24
Release: 3
Summary: A library which provides easy access to huge pages of memory
License: LGPLv2+
URL: https://github.com/libhugetlbfs/libhugetlbfs
Source0: https://github.com/libhugetlbfs/libhugetlbfs/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch1: 0001-add-support-sw64.patch
Patch2: Add-support-for-loongarch64-architecture-in-ld.hugetlbfs.patch
BuildRequires: gcc glibc-devel glibc-static
BuildRequires: autoconf automake
%description
The libhugetlbfs package interacts with the Linux hugetlbfs to make large
pages available to applications in a transparent manner.The library also
comes with several userspace tools to help with huge page usability,
environment setup, and control.
%package devel
Summary: The devel for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
Header files for libhugetlbfs
%package utils
Summary: The utils for %{name}
Requires: %{name} = %{version}-%{release}
%description utils
Userspace utilities for configuring the hugepage environment
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%set_build_flags
./autogen.sh
%{configure}
make BUILDTYPE=NATIVEONLY
%install
%make_install PREFIX=%{_prefix} LDSCRIPTDIR=%{ldscriptdir} BUILDTYPE=NATIVEONLY
make install-helper PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT LDSCRIPTDIR=%{ldscriptdir} BUILDTYPE=NATIVEONLY
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d
touch $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d/hugepages.conf
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license LGPL-2.1
%{_libdir}/libhugetlbfs.so*
%{_datadir}/%{name}/
%ghost %config(noreplace) %{_sysconfdir}/security/limits.d/hugepages.conf
%{_libdir}/libhugetlbfs_privutils.so
%{_libdir}/*.a
%files devel
%{_includedir}/hugetlbfs.h
%files utils
%{_bindir}/hugeedit
%{_bindir}/hugeadm
%{_bindir}/hugectl
%{_bindir}/pagesize
%{_bindir}/huge_page_setup_helper.py
%files help
%doc README HOWTO NEWS
%{_mandir}/man1/*.gz
%{_mandir}/man3/*.gz
%{_mandir}/man7/libhugetlbfs.7.gz
%{_mandir}/man8/*.gz
%changelog
* Tue Oct 29 2024 wangqiang <[email protected]> - 2.24-3
- Add support for loongarch64 architecture in ld.hugetlbfs
* Mon Aug 26 2024 Weifeng Su <[email protected]> - 2.24-2
- Add missing build dependencies in the self-build.
* Tue May 07 2024 liweigang <[email protected]> - 2.24-1
- upgrade to version 2.24
* Fri Dec 2 2022 huajingyun<[email protected]> - 2.23-3
- add loongarch support
* Fri Oct 21 2022 wuzx<[email protected]> - 2.23-2
- add sw64 patch
* Tue Nov 16 2021 Qingqing Li <[email protected]> - 2.23-1
- upgrade to 2.23
* Tue Dec 15 2020 wuxu<[email protected]> - 2.22-2
- Type:enhancement
- ID:NA
- SUG:restart
- DESC: fix max segment cannot adopt the x86
* Fri Apr 24 2020 lihongjiang<[email protected]> - 2.22-1
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:update version to 2.22
* Tue Feb 25 2020 lihongjiang<[email protected]> - 2.20-14
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:change script from py2 to py3
* Mon Dec 30 2019 lihongjiang<[email protected]> - 2.20-13
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:update source code
* Mon Dec 30 2019 lihongjiang<[email protected]> - 2.20-12
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:update spec
* Mon Apr 22 2019 lihongjiang<[email protected]> - 2.20-11
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:fix-tests-with-heapshrink-fail
* Thu Mar 21 2019 lihongjiang<[email protected]> - 2.20-10
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:backport patches
* Tue Jan 22 2019 xiashuang<[email protected]> - 2.20-9
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:sync patches from 7.3
* Sat Jul 18 2018 openEuler Buildteam <[email protected]> - 2.20-8
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。