2007-01-16 00:22:07 +01:00
|
|
|
#
|
2011-04-21 13:39:15 +02:00
|
|
|
# spec file for package libhugetlbfs
|
2007-01-16 00:22:07 +01:00
|
|
|
#
|
2018-10-02 11:41:43 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:22:07 +01:00
|
|
|
#
|
2008-08-28 12:39:19 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:22:07 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-04-10 14:28:59 +02:00
|
|
|
|
2015-11-06 14:33:32 +01:00
|
|
|
%define my_make_flags V=1 CFLAGS="%{optflags} -fPIC" BUILDTYPE=NATIVEONLY PREFIX=%{_prefix} LIBDIR32=%{_libdir} DESTDIR=%{buildroot}
|
2007-01-16 00:22:07 +01:00
|
|
|
Name: libhugetlbfs
|
2018-10-02 11:41:43 +02:00
|
|
|
Version: 2.21
|
2015-11-06 14:33:32 +01:00
|
|
|
Release: 0
|
2017-04-27 17:06:17 +02:00
|
|
|
Summary: Helper library for the Huge Translation Lookaside Buffer Filesystem
|
2018-10-02 11:41:43 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2017-04-27 17:06:17 +02:00
|
|
|
Group: System/Libraries
|
2015-11-06 14:33:32 +01:00
|
|
|
Url: https://github.com/libhugetlbfs/libhugetlbfs
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2010-02-05 15:22:33 +01:00
|
|
|
Source1: baselibs.conf
|
2008-08-28 12:39:19 +02:00
|
|
|
Patch2: libhugetlbfs.s390.patch
|
2009-11-16 17:17:15 +01:00
|
|
|
Patch4: libhugetlbfs.tests-malloc.patch
|
2013-01-23 11:39:58 +01:00
|
|
|
Patch7: libhugetlbfs_ia64_fix_missing_test.patch
|
|
|
|
Patch8: libhugetlbfs_fix_tests.patch
|
2014-04-09 11:58:06 +02:00
|
|
|
Patch14: disable-rw-on-non-ldscripts.diff
|
2015-11-06 14:33:32 +01:00
|
|
|
Patch15: zero_filesize_segment.patch
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: glibc-devel-static
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libhugetlbfs-64bit
|
|
|
|
%endif
|
2007-01-16 00:22:07 +01:00
|
|
|
|
|
|
|
%description
|
2009-11-16 17:17:15 +01:00
|
|
|
The libhugetlbfs package interacts with the Linux hugetlbfs to
|
|
|
|
make large pages available to applications in a transparent manner.
|
2007-01-16 00:22:07 +01:00
|
|
|
|
2015-11-06 14:33:32 +01:00
|
|
|
%package devel
|
2017-04-27 17:06:17 +02:00
|
|
|
Summary: Development files for libhugetlbfs
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-04-12 10:43:47 +02:00
|
|
|
Requires: libhugetlbfs
|
2009-11-16 17:17:15 +01:00
|
|
|
|
2015-11-06 14:33:32 +01:00
|
|
|
%description devel
|
2017-04-27 17:06:17 +02:00
|
|
|
Devel package, header and static library, of libhugetlbfs.
|
2009-11-16 17:17:15 +01:00
|
|
|
|
2015-11-06 14:33:32 +01:00
|
|
|
%package tests
|
2017-04-27 17:06:17 +02:00
|
|
|
Summary: Tests for package libhugetlbfs
|
|
|
|
Group: Development/Tools/Other
|
2015-11-06 14:33:32 +01:00
|
|
|
|
|
|
|
%description tests
|
2017-04-27 17:06:17 +02:00
|
|
|
The testsuite for libhugetlbfs. Binaries can be found in
|
|
|
|
%{_libdir}/libhugetlbfs/tests.
|
2015-11-06 14:33:32 +01:00
|
|
|
|
2007-01-16 00:22:07 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2008-08-28 12:39:19 +02:00
|
|
|
%patch2 -p1
|
2008-10-22 18:13:52 +02:00
|
|
|
%patch4 -p1
|
2013-01-23 11:39:58 +01:00
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
2014-04-09 11:58:06 +02:00
|
|
|
%patch14
|
2015-02-20 13:41:40 +01:00
|
|
|
%patch15 -p1
|
2007-01-16 00:22:07 +01:00
|
|
|
|
|
|
|
%build
|
2015-11-06 14:33:32 +01:00
|
|
|
echo %{version} > version
|
2009-11-16 17:17:15 +01:00
|
|
|
make %{my_make_flags}
|
2007-01-16 00:22:07 +01:00
|
|
|
|
|
|
|
%install
|
2017-10-07 12:09:41 +02:00
|
|
|
make %{my_make_flags} PMDIR="%{perl_vendorlib}/TLBC" \
|
2018-10-02 11:41:43 +02:00
|
|
|
install install-tests
|
2015-11-06 14:33:32 +01:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/include
|
|
|
|
cp -avL hugetlbfs.h %{buildroot}%{_prefix}/include
|
|
|
|
chmod 644 %{buildroot}%{_libdir}/*.a
|
2017-04-27 17:06:17 +02:00
|
|
|
if [ -f %{buildroot}%{_libdir}/libhugetlbfs/tests/obj64/dummy.ldscript ]; then
|
|
|
|
chmod -f a-x %{buildroot}%{_libdir}/libhugetlbfs/tests/obj64/dummy.ldscript
|
|
|
|
fi
|
2007-01-16 00:22:07 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc LGPL-2.1 HOWTO README NEWS
|
2015-11-06 14:33:32 +01:00
|
|
|
%{_datadir}/libhugetlbfs
|
|
|
|
%{_bindir}/*
|
2017-04-27 17:06:17 +02:00
|
|
|
%{_mandir}/man[178]/*%{?ext_man}
|
2009-11-16 17:17:15 +01:00
|
|
|
%{_libdir}/libhugetlbfs_privutils.so
|
|
|
|
%{_libdir}/libhugetlbfs.so
|
|
|
|
|
2015-11-06 14:33:32 +01:00
|
|
|
%files devel
|
2009-11-16 17:17:15 +01:00
|
|
|
%defattr(-, root, root)
|
2015-11-06 14:33:32 +01:00
|
|
|
%{_includedir}/hugetlbfs.h
|
2009-11-16 17:17:15 +01:00
|
|
|
%{_libdir}/libhugetlbfs.a
|
2017-04-27 17:06:17 +02:00
|
|
|
%{_mandir}/man3/*%{?ext_man}
|
2007-01-16 00:22:07 +01:00
|
|
|
|
2015-11-06 14:33:32 +01:00
|
|
|
%files tests
|
|
|
|
%defattr(-,root,root)
|
2017-04-27 17:06:17 +02:00
|
|
|
%{_libdir}/libhugetlbfs/
|
2015-11-06 14:33:32 +01:00
|
|
|
|
2007-04-15 20:16:24 +02:00
|
|
|
%changelog
|