|
|
abde39 |
Name: libhugetlbfs
|
|
|
abde39 |
Version: 2.16
|
|
|
abde39 |
Release: 2%{?dist}
|
|
|
abde39 |
Summary: A library which provides easy access to huge pages of memory
|
|
|
abde39 |
Group: System Environment/Libraries
|
|
|
abde39 |
License: LGPLv2+
|
|
|
abde39 |
URL: http://libhugetlbfs.sourceforge.net/
|
|
|
abde39 |
Source0: http://downloads.sourceforge.net/libhugetlbfs/%{name}-%{version}.tar.gz
|
|
|
abde39 |
Patch0: libhugetlbfs-2.16-s390.patch
|
|
|
abde39 |
Patch1: libhugetlbfs-2.15-fortify.patch
|
|
|
abde39 |
BuildRequires: glibc-devel
|
|
|
abde39 |
BuildRequires: glibc-static
|
|
|
abde39 |
|
|
|
abde39 |
%define ldscriptdir %{_datadir}/%{name}/ldscripts
|
|
|
abde39 |
|
|
|
abde39 |
%description
|
|
|
abde39 |
libhugetlbfs is a library which provides easy access to huge pages of memory.
|
|
|
abde39 |
It is a wrapper for the hugetlbfs file system. Applications can use huge pages
|
|
|
abde39 |
to fulfill malloc() requests without being recompiled by using LD_PRELOAD.
|
|
|
abde39 |
Alternatively, applications can be linked against libhugetlbfs without source
|
|
|
abde39 |
modifications to load BSS or BSS, data, and text segments into large pages.
|
|
|
abde39 |
|
|
|
abde39 |
%package devel
|
|
|
abde39 |
Summary: Header files for libhugetlbfs
|
|
|
abde39 |
Group: Development/Libraries
|
|
|
abde39 |
Requires: %{name} = %{version}-%{release}
|
|
|
abde39 |
%description devel
|
|
|
abde39 |
Contains header files for building with libhugetlbfs.
|
|
|
abde39 |
|
|
|
abde39 |
%package utils
|
|
|
abde39 |
Summary: Userspace utilities for configuring the hugepage environment
|
|
|
abde39 |
Group: Applications/System
|
|
|
abde39 |
Requires: %{name} = %{version}-%{release}
|
|
|
abde39 |
%description utils
|
|
|
abde39 |
This packages contains a number of utilities that will help administrate the
|
|
|
abde39 |
use of huge pages on your system. hugeedit modifies binaries to set default
|
|
|
abde39 |
segment remapping behavior. hugectl sets environment variables for using huge
|
|
|
abde39 |
pages and then execs the target program. hugeadm gives easy access to huge page
|
|
|
abde39 |
pool size control. pagesize lists page sizes available on the machine.
|
|
|
abde39 |
|
|
|
abde39 |
%prep
|
|
|
abde39 |
%setup -q -n %{name}-%{version}
|
|
|
abde39 |
%patch0 -p1 -b .s390
|
|
|
abde39 |
%patch1 -p1 -b .fortify
|
|
|
abde39 |
|
|
|
abde39 |
%build
|
|
|
abde39 |
# Parallel builds are not reliable
|
|
|
abde39 |
make BUILDTYPE=NATIVEONLY
|
|
|
abde39 |
|
|
|
abde39 |
%install
|
|
|
abde39 |
make install PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT LDSCRIPTDIR=%{ldscriptdir} BUILDTYPE=NATIVEONLY
|
|
|
abde39 |
make install-helper PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT LDSCRIPTDIR=%{ldscriptdir} BUILDTYPE=NATIVEONLY
|
|
|
abde39 |
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d
|
|
|
abde39 |
touch $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d/hugepages.conf
|
|
|
abde39 |
|
|
|
abde39 |
# remove statically built libraries:
|
|
|
abde39 |
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
|
|
|
abde39 |
# remove unused sbin directory
|
|
|
abde39 |
rm -fr $RPM_BUILD_ROOT/%{_sbindir}/
|
|
|
abde39 |
|
|
|
abde39 |
%post -p /sbin/ldconfig
|
|
|
abde39 |
|
|
|
abde39 |
%postun -p /sbin/ldconfig
|
|
|
abde39 |
|
|
|
abde39 |
%files
|
|
|
abde39 |
%{_libdir}/libhugetlbfs.so*
|
|
|
abde39 |
%{_datadir}/%{name}/
|
|
|
abde39 |
%{_mandir}/man7/libhugetlbfs.7.gz
|
|
|
abde39 |
%ghost %config(noreplace) %{_sysconfdir}/security/limits.d/hugepages.conf
|
|
|
abde39 |
%exclude %{_libdir}/libhugetlbfs_privutils.so
|
|
|
abde39 |
%doc README HOWTO LGPL-2.1 NEWS
|
|
|
abde39 |
|
|
|
abde39 |
%files devel
|
|
|
abde39 |
%{_includedir}/hugetlbfs.h
|
|
|
abde39 |
%{_mandir}/man3/getpagesizes.3.gz
|
|
|
abde39 |
%{_mandir}/man3/free_huge_pages.3.gz
|
|
|
abde39 |
%{_mandir}/man3/get_huge_pages.3.gz
|
|
|
abde39 |
%{_mandir}/man3/gethugepagesize.3.gz
|
|
|
abde39 |
%{_mandir}/man3/gethugepagesizes.3.gz
|
|
|
abde39 |
%{_mandir}/man3/free_hugepage_region.3.gz
|
|
|
abde39 |
%{_mandir}/man3/get_hugepage_region.3.gz
|
|
|
abde39 |
%{_mandir}/man3/hugetlbfs_find_path.3.gz
|
|
|
abde39 |
%{_mandir}/man3/hugetlbfs_find_path_for_size.3.gz
|
|
|
abde39 |
%{_mandir}/man3/hugetlbfs_test_path.3.gz
|
|
|
abde39 |
%{_mandir}/man3/hugetlbfs_unlinked_fd.3.gz
|
|
|
abde39 |
%{_mandir}/man3/hugetlbfs_unlinked_fd_for_size.3.gz
|
|
|
abde39 |
|
|
|
abde39 |
%files utils
|
|
|
abde39 |
%{_bindir}/hugeedit
|
|
|
abde39 |
%{_bindir}/hugeadm
|
|
|
abde39 |
%{_bindir}/hugectl
|
|
|
abde39 |
%{_bindir}/pagesize
|
|
|
abde39 |
%{_bindir}/huge_page_setup_helper.py
|
|
|
abde39 |
%exclude %{_bindir}/cpupcstat
|
|
|
abde39 |
%exclude %{_bindir}/oprofile_map_events.pl
|
|
|
abde39 |
%exclude %{_bindir}/oprofile_start.sh
|
|
|
abde39 |
%{_mandir}/man8/hugeedit.8.gz
|
|
|
abde39 |
%{_mandir}/man8/hugectl.8.gz
|
|
|
abde39 |
%{_mandir}/man8/hugeadm.8.gz
|
|
|
abde39 |
%{_mandir}/man1/pagesize.1.gz
|
|
|
abde39 |
%{_mandir}/man1/ld.hugetlbfs.1.gz
|
|
|
abde39 |
%exclude %{_mandir}/man8/cpupcstat.8.gz
|
|
|
abde39 |
%exclude /usr/lib/perl5/TLBC
|
|
|
abde39 |
|
|
|
abde39 |
%changelog
|
|
|
abde39 |
* Sun May 12 2013 Anton Arapov <anton@redhat.com> - 2.16-2
|
|
|
abde39 |
- Fortify code
|
|
|
abde39 |
- Fix s390 build issues (#960107)
|
|
|
abde39 |
|
|
|
abde39 |
* Mon Apr 29 2013 Peter Robinson <pbrobinson@fedoraproject.org> - 2.16-1
|
|
|
abde39 |
- Upstream 2.16 release (adds ARM support)
|
|
|
abde39 |
|
|
|
abde39 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.15-2
|
|
|
abde39 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
abde39 |
|
|
|
abde39 |
* Sat Dec 08 2012 Eric B Munson <emunson@mgebm.net> - 2.15
|
|
|
abde39 |
- Update for upstream 2.15 release
|
|
|
abde39 |
|
|
|
abde39 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.13-2
|
|
|
abde39 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
abde39 |
|
|
|
abde39 |
* Sat Mar 24 2012 Eric B Munson <emunson@mgebm.net>
|
|
|
abde39 |
- Update for upstream 2.13 release
|
|
|
abde39 |
|
|
|
abde39 |
* Wed Jul 20 2011 Eric B Munson <emunson@mgebm.net>
|
|
|
abde39 |
- Update for upstream 2.12 release
|
|
|
abde39 |
|
|
|
abde39 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9-2
|
|
|
abde39 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
abde39 |
|
|
|
abde39 |
* Mon Apr 05 2010 Eric B Munson <ebmunson@us.ibm.com> 2.8-1
|
|
|
abde39 |
- Update for upstream 2.8 release
|
|
|
abde39 |
|
|
|
abde39 |
* Wed Feb 10 2010 Eric B Munson <ebmunson@us.ibm.com> 2.7-2
|
|
|
abde39 |
- Include patch that fixes build on ppc
|
|
|
abde39 |
|
|
|
abde39 |
* Tue Jan 05 2010 Eric B Munson <ebmunson@us.ibm.com> 2.7-1
|
|
|
abde39 |
- Update for upstream 2.7 release
|
|
|
abde39 |
|
|
|
abde39 |
* Fri Oct 02 2009 Jarod Wilson <jarod@redhat.com> 2.6-3
|
|
|
abde39 |
- Add hopefully-about-to-be-merged-upstream hugeadm enhancements
|
|
|
abde39 |
- Add huge pages setup helper script, using new hugeadm enhancements
|
|
|
abde39 |
|
|
|
abde39 |
* Thu Sep 03 2009 Nils Philippsen <nils@redhat.com> 2.6-2
|
|
|
abde39 |
- fix building on s390x
|
|
|
abde39 |
|
|
|
abde39 |
* Mon Aug 31 2009 Eric Munson <ebmunson@us.ibm.com> 2.6-1
|
|
|
abde39 |
- Updating for the libhugetlbfs-2.6 release
|
|
|
abde39 |
|
|
|
abde39 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-3
|
|
|
abde39 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
abde39 |
|
|
|
abde39 |
* Mon Jul 20 2009 Eric Munson <ebmunson@us.ibm.com> 2.5-2
|
|
|
abde39 |
- Update Group for -utils package to Applications/System
|
|
|
abde39 |
|
|
|
abde39 |
* Tue Jun 30 2009 Eric Munson <ebmunson@us.ibm.com> 2.5-1
|
|
|
abde39 |
- Updating for the libhugetlbfs-2.5 release
|
|
|
abde39 |
|
|
|
abde39 |
* Tue Jun 02 2009 Eric Munson <ebmunson@us.ibm.com> 2.4-2
|
|
|
abde39 |
- Adding patch to remove S390 32 bit build
|
|
|
abde39 |
|
|
|
abde39 |
* Fri May 29 2009 Eric Munson <ebmunson@us.ibm.com> 2.4-1
|
|
|
abde39 |
- Updating for the libhugetlbfs-2.4 release
|
|
|
abde39 |
|
|
|
abde39 |
* Wed Apr 15 2009 Eric Munson <ebmunson@us.ibm.com> 2.3-1
|
|
|
abde39 |
- Updating for the libhugetlbfs-2.3 release
|
|
|
abde39 |
|
|
|
abde39 |
* Wed Feb 11 2009 Eric Munson <ebmunson@us.ibm.com> 2.2-1
|
|
|
abde39 |
- Updating for the libhugetlbfs-2.2 release
|
|
|
abde39 |
|
|
|
abde39 |
* Fri Dec 19 2008 Eric Munson <ebmunson@us.ibm.com> 2.1.2-1
|
|
|
abde39 |
- Updating for libhugetlbfs-2.1.2 release
|
|
|
abde39 |
|
|
|
abde39 |
* Fri Dec 19 2008 Eric Munson <ebmunson@us.ibm.com> 2.1.1-1
|
|
|
abde39 |
- Updating for libhugetlbfs-2.1.1 release
|
|
|
abde39 |
|
|
|
abde39 |
* Thu Dec 18 2008 Josh Boyer <jwboyer@gmail.com> 2.1-2
|
|
|
abde39 |
- Fix broken dependency caused by just dropping -test
|
|
|
abde39 |
subpackage
|
|
|
abde39 |
|
|
|
abde39 |
* Thu Oct 16 2008 Eric Munson <ebmunson@us.ibm.com> 2.1-1
|
|
|
abde39 |
- Updating for libhuge-2.1 release
|
|
|
abde39 |
- Adding -devel and -utils subpackages for various utilities
|
|
|
abde39 |
and devel files.
|
|
|
abde39 |
|
|
|
abde39 |
* Wed May 14 2008 Eric Munson <ebmunson@us.ibm.com> 1.3-1
|
|
|
abde39 |
- Updating for libhuge-1.3 release
|
|
|
abde39 |
|
|
|
abde39 |
* Tue Mar 25 2008 Eric Munson <ebmunson@us.ibm.com> 1.2-1
|
|
|
abde39 |
- Removing test rpm target, and excluding test files
|
|
|
abde39 |
|
|
|
abde39 |
* Mon Mar 26 2007 Steve Fox <drfickle@k-lug.org> - 1.1-1
|
|
|
abde39 |
- New release (1.1)
|
|
|
abde39 |
- Fix directory ownership
|
|
|
abde39 |
|
|
|
abde39 |
* Wed Aug 30 2006 Steve Fox <drfickle@k-lug.org> - 0.20060825-1
|
|
|
abde39 |
- New release (1.0-preview4)
|
|
|
abde39 |
- patch0 (Makefile-ldscript.diff) merged upstream
|
|
|
abde39 |
|
|
|
abde39 |
* Tue Jul 25 2006 Steve Fox <drfickle@k-lug.org> - 0.20060706-4
|
|
|
abde39 |
- Bump for build system
|
|
|
abde39 |
|
|
|
abde39 |
* Tue Jul 25 2006 Steve Fox <drfickle@k-lug.org> - 0.20060706-3
|
|
|
abde39 |
- Don't use parallel build as it has random failures
|
|
|
abde39 |
|
|
|
abde39 |
* Thu Jul 20 2006 Steve Fox <drfickle@k-lug.org> - 0.20060706-2
|
|
|
abde39 |
- Fix the Makefile so that the ld.hugetlbfs script doesn't store the
|
|
|
abde39 |
DESTDIR in the path to the ldscripts dir
|
|
|
abde39 |
|
|
|
abde39 |
* Fri Jul 7 2006 Steve Fox <drfickle@k-lug.org> - 0.20060706-1
|
|
|
abde39 |
- New release which includes a fix for the syscall macro removal in the
|
|
|
abde39 |
Rawhide kernels
|
|
|
abde39 |
|
|
|
abde39 |
* Thu Jun 29 2006 Steve Fox <drfickle@k-lug.org> - 0.20060628-1
|
|
|
abde39 |
- First Fedora package
|