162 lines
4.4 KiB
RPMSpec
162 lines
4.4 KiB
RPMSpec
%global ldscriptdir %{_datadir}/%{name}/ldscripts
|
|
|
|
Name: libhugetlbfs
|
|
Version: 2.23
|
|
Release: 7
|
|
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
|
|
|
|
Patch0: 0000-build_flags.patch
|
|
Patch1: Disable-hugepage-backed-malloc-if-__morecore-is-not-.patch
|
|
Patch2: libhugetlbfs-2.23-sw.patch
|
|
Patch3: add-loongarch-support.patch
|
|
Patch4: Add-support-for-loongarch64-architecture-in-ld.hugetlbfs.patch
|
|
Patch5: libhugetlbfs-sw_64-package-library-files-to-usr-lib64.patch
|
|
|
|
Patch9001:libhugetlbfs-make-cflags.patch
|
|
Patch9002:libhugetlbfs-fix-max-segment-cannot-adopt-the-x86.patch
|
|
|
|
BuildRequires: gcc glibc-devel glibc-static
|
|
|
|
%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
|
|
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*
|
|
%{_libdir}/libhugetlbfs_privutils.so*
|
|
%{_datadir}/%{name}/
|
|
%ghost %config(noreplace) %{_sysconfdir}/security/limits.d/hugepages.conf
|
|
%exclude %{_libdir}/*.a
|
|
|
|
%files devel
|
|
%{_includedir}/hugetlbfs.h
|
|
|
|
%files utils
|
|
%{_bindir}/hugeedit
|
|
%{_bindir}/hugeadm
|
|
%{_bindir}/hugectl
|
|
%{_bindir}/pagesize
|
|
%{_bindir}/huge_page_setup_helper.py
|
|
%exclude %{_bindir}/cpupcstat
|
|
%exclude %{_bindir}/oprofile_map_events.pl
|
|
%exclude %{_bindir}/oprofile_start.sh
|
|
%exclude %{_libdir}/perl5/TLBC
|
|
|
|
%files help
|
|
%doc README HOWTO NEWS
|
|
%{_mandir}/man1/*.gz
|
|
%{_mandir}/man3/*.gz
|
|
%{_mandir}/man7/libhugetlbfs.7.gz
|
|
%{_mandir}/man8/*.gz
|
|
|
|
|
|
%changelog
|
|
* Wed Mar 19 2025 yueyuankun <yueyuankun@kylinos.cn> - 2.23-7
|
|
- sw_64: move library files to /usr/lib64, consistent with libdir macros
|
|
|
|
* Tue Oct 29 2024 wangqiang <wangqiang1@kylinos.cn> - 2.23-6
|
|
- Add support for loongarch64 architecture in ld.hugetlbfs
|
|
|
|
* Fri Sep 27 2024 wangqiang <wangqiang1@kylinos.cn> - 2.23-5
|
|
- Re-enable patch libhugetlbfs-fix-max-segment-cannot-adopt-the-x86.patch
|
|
|
|
* Mon May 6 2024 yueyaoqiang <yueyaoqiang@kylinos.cn> - 2.23-4
|
|
- add libhugetlbfs_privutils.so for libhugetlbfs test
|
|
|
|
* Fri Dec 2 2022 huajingyun<huajingyun@loongson.cn> - 2.23-3
|
|
- add loongarch support
|
|
|
|
* Fri Oct 21 2022 wuzx<wuzx1226@qq.com> - 2.23-2
|
|
- add sw64 patch
|
|
|
|
* Tue Nov 16 2021 Qingqing Li <liqingqing3@huawei.com> - 2.23-1
|
|
- upgrade to 2.23
|
|
|
|
* Tue Dec 15 2020 wuxu<wuxu.wu@hotmail.com> - 2.22-2
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:restart
|
|
- DESC: fix max segment cannot adopt the x86
|
|
|
|
* Fri Apr 24 2020 lihongjiang<lihongjiang6@huawei.com> - 2.22-1
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:restart
|
|
- DESC:update version to 2.22
|
|
|
|
* Tue Feb 25 2020 lihongjiang<lihongjiang6@huawei.com> - 2.20-14
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:restart
|
|
- DESC:change script from py2 to py3
|
|
|
|
* Mon Dec 30 2019 lihongjiang<lihongjiang6@huawei.com> - 2.20-13
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:restart
|
|
- DESC:update source code
|
|
|
|
* Mon Dec 30 2019 lihongjiang<lihongjiang6@huawei.com> - 2.20-12
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:restart
|
|
- DESC:update spec
|
|
|
|
* Mon Apr 22 2019 lihongjiang<lihongjiang6@huawei.com> - 2.20-11
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:restart
|
|
- DESC:fix-tests-with-heapshrink-fail
|
|
|
|
* Thu Mar 21 2019 lihongjiang<lihongjiang6@huawei.com> - 2.20-10
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:restart
|
|
- DESC:backport patches
|
|
|
|
* Tue Jan 22 2019 xiashuang<xiashuang1@huawei.com> - 2.20-9
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:restart
|
|
- DESC:sync patches from 7.3
|
|
|
|
* Sat Jul 18 2018 openEuler Buildteam <buildteam@openeuler.org> - 2.20-8
|
|
- Package init
|