Пакет libhugetlbfs: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | # BEGIN SourceDeps(oneline): BuildRequires: perl(Exporter.pm) perl(FindBin.pm) perl(base.pm) perl(sigtrap.pm) # END SourceDeps(oneline) %add_optflags %optflags_shared Name: libhugetlbfs Version: 2.18 Release: alt1_4.E2K.1 Summary: A library which provides easy access to huge pages of memory Group: System/Libraries License: LGPLv2+ URL: http://libhugetlbfs.sourceforge.net/ Source0: http://downloads.sourceforge.net/libhugetlbfs/%{name}-%{version}.tar.gz Patch0: libhugetlbfs-2.18-s390.patch # mcst Patch2000: 0000-init.add.patch Patch2001: 0004-fix-function-prototype.patch Patch2002: 0006-sleep-after-test.patch Patch2003: 0007-skip-test-if-sizeof-ulong-8.patch Patch2004: 0010-reduce-running-time.patch BuildRequires: glibc-devel BuildRequires: glibc-devel-static %define ldscriptdir %{_datadir}/%{name}/ldscripts Source44: import.info %description libhugetlbfs is a library which provides easy access to huge pages of memory. It is a wrapper for the hugetlbfs file system. Applications can use huge pages to fulfill malloc() requests without being recompiled by using LD_PRELOAD. Alternatively, applications can be linked against libhugetlbfs without source modifications to load BSS or BSS, data, and text segments into large pages. %package devel Summary: Header files for libhugetlbfs Group: Development/C Requires: %{name} = %{version}-%{release} %description devel Contains header files for building with libhugetlbfs. %package utils Summary: Userspace utilities for configuring the hugepage environment Group: File tools Requires: %{name} = %{version}-%{release} %description utils This packages contains a number of utilities that will help administrate the use of huge pages on your system. hugeedit modifies binaries to set default segment remapping behavior. hugectl sets environment variables for using huge pages and then execs the target program. hugeadm gives easy access to huge page pool size control. pagesize lists page sizes available on the machine. %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b .s390 %ifarch %e2k %patch2000 -p1 %patch2001 -p1 %patch2002 -p1 %patch2003 -p1 %patch2004 -p1 # became a keyword in gcc5/lcc1.23 sed -i "s#restrict#restricted#g" hugeutils.c %endif %build # Parallel builds are not reliable CFLAGS="%{optflags}" make BUILDTYPE=NATIVEONLY %install make install PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT 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 # remove statically built libraries: rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a # remove unused sbin directory rm -fr $RPM_BUILD_ROOT/%{_sbindir}/ %files %{_libdir}/libhugetlbfs.so* %{_datadir}/%{name}/ %{_mandir}/man7/libhugetlbfs.7* %ghost %config(noreplace) %{_sysconfdir}/security/limits.d/hugepages.conf %exclude %{_libdir}/libhugetlbfs_privutils.so %doc README HOWTO LGPL-2.1 NEWS %files devel %{_includedir}/hugetlbfs.h %{_mandir}/man3/getpagesizes.3* %{_mandir}/man3/free_huge_pages.3* %{_mandir}/man3/get_huge_pages.3* %{_mandir}/man3/gethugepagesize.3* %{_mandir}/man3/gethugepagesizes.3* %{_mandir}/man3/free_hugepage_region.3* %{_mandir}/man3/get_hugepage_region.3* %{_mandir}/man3/hugetlbfs_find_path.3* %{_mandir}/man3/hugetlbfs_find_path_for_size.3* %{_mandir}/man3/hugetlbfs_test_path.3* %{_mandir}/man3/hugetlbfs_unlinked_fd.3* %{_mandir}/man3/hugetlbfs_unlinked_fd_for_size.3* %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 %{_mandir}/man8/hugeedit.8* %{_mandir}/man8/hugectl.8* %{_mandir}/man8/hugeadm.8* %{_mandir}/man1/pagesize.1* %{_mandir}/man1/ld.hugetlbfs.1* %exclude %{_mandir}/man8/cpupcstat.8* %exclude %{_libdir}/perl5/TLBC %changelog * Sun Jul 12 2020 Michael Shigorin <mike@altlinux.org> 2.18-alt1_4.E2K.1 - E2K: applied mcst patches from OSL 5.0-rc2 * Wed Dec 17 2014 Igor Vlasenko <viy@altlinux.ru> 2.18-alt1_4 - update to new release by fcimport * Tue Jul 08 2014 Igor Vlasenko <viy@altlinux.ru> 2.18-alt1_3 - update to new release by fcimport * Fri Jun 06 2014 Igor Vlasenko <viy@altlinux.ru> 2.18-alt1_2 - converted for ALT Linux by srpmconvert tools * Thu Mar 06 2014 Igor Vlasenko <viy@altlinux.ru> 2.17-alt1_1 - update to new release by fcimport * Wed Jul 31 2013 Igor Vlasenko <viy@altlinux.ru> 2.16-alt1_2 - update to new release by fcimport * Sat May 04 2013 Igor Vlasenko <viy@altlinux.ru> 2.16-alt1_1 - update to new release by fcimport * Fri Feb 22 2013 Igor Vlasenko <viy@altlinux.ru> 2.15-alt1_2 - update to new release by fcimport * Wed Dec 12 2012 Igor Vlasenko <viy@altlinux.ru> 2.15-alt1_1 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 2.13-alt1_2 - update to new release by fcimport * Fri May 11 2012 Igor Vlasenko <viy@altlinux.ru> 2.13-alt1_1 - update to new release by fcimport * Wed Feb 01 2012 Igor Vlasenko <viy@altlinux.ru> 2.12-alt2_3 - update to new release by fcimport * Fri Dec 23 2011 Igor Vlasenko <viy@altlinux.ru> 2.12-alt2_2 - spec cleanup thanks to ldv@ * Mon Dec 19 2011 Igor Vlasenko <viy@altlinux.ru> 2.12-alt1_2 - initial import by fcimport |