Thomas Renninger
92718c3446
- Add zero_filesize_segment.patch to fix testcase on s390x - Fixes bnc#919680 - Latest version from git next branch OBS-URL: https://build.opensuse.org/request/show/342704 OBS-URL: https://build.opensuse.org/package/show/Base:System/libhugetlbfs?expand=0&rev=44
105 lines
3.1 KiB
RPMSpec
105 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package libhugetlbfs
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define my_make_flags V=1 CFLAGS="%{optflags} -fPIC" BUILDTYPE=NATIVEONLY PREFIX=%{_prefix} LIBDIR32=%{_libdir} DESTDIR=%{buildroot}
|
|
Name: libhugetlbfs
|
|
Version: 2.18.99
|
|
Release: 0
|
|
Summary: Hugetlbfs helper library
|
|
License: LGPL-2.1+
|
|
Group: Development/Libraries/Other
|
|
Url: https://github.com/libhugetlbfs/libhugetlbfs
|
|
Source0: %{name}-%{version}.tar.xz
|
|
Source1: baselibs.conf
|
|
Patch2: libhugetlbfs.s390.patch
|
|
Patch4: libhugetlbfs.tests-malloc.patch
|
|
Patch7: libhugetlbfs_ia64_fix_missing_test.patch
|
|
Patch8: libhugetlbfs_fix_tests.patch
|
|
Patch13: ignore-perl-modules.diff
|
|
Patch14: disable-rw-on-non-ldscripts.diff
|
|
Patch15: zero_filesize_segment.patch
|
|
BuildRequires: doxygen
|
|
BuildRequires: glibc-devel-static
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libhugetlbfs-64bit
|
|
%endif
|
|
|
|
%description
|
|
The libhugetlbfs package interacts with the Linux hugetlbfs to
|
|
make large pages available to applications in a transparent manner.
|
|
|
|
%package devel
|
|
Summary: Devel package for libhugetlb
|
|
Group: Development/Libraries/Other
|
|
Requires: libhugetlbfs
|
|
|
|
%description devel
|
|
Devel package, header and static library, of libhugetlb
|
|
|
|
%package tests
|
|
Summary: Tests for package libhugetlb
|
|
Group: Development/Libraries/Other
|
|
|
|
%description tests
|
|
The testsuite for libhugetlb. Binaries can be found in %{_libdir}/libhugetlbfs/tests
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch2 -p1
|
|
%patch4 -p1
|
|
%patch7 -p1
|
|
%patch8 -p1
|
|
%patch13
|
|
%patch14
|
|
%patch15 -p1
|
|
|
|
%build
|
|
echo %{version} > version
|
|
make %{my_make_flags}
|
|
|
|
%install
|
|
make %{my_make_flags} install
|
|
make %{my_make_flags} install-tests
|
|
mkdir -p %{buildroot}%{_prefix}/include
|
|
cp -avL hugetlbfs.h %{buildroot}%{_prefix}/include
|
|
chmod 644 %{buildroot}%{_libdir}/*.a
|
|
[ ! -f %{buildroot}%{_libdir}/libhugetlbfs/tests/obj64/dummy.ldscript ] || chmod -f a-x %{buildroot}%{_libdir}/libhugetlbfs/tests/obj64/dummy.ldscript
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc LGPL-2.1 HOWTO README NEWS
|
|
%{_datadir}/libhugetlbfs
|
|
%{_bindir}/*
|
|
%{_mandir}/man*/*.gz
|
|
%{_libdir}/libhugetlbfs_privutils.so
|
|
%{_libdir}/libhugetlbfs.so
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%{_includedir}/hugetlbfs.h
|
|
%{_libdir}/libhugetlbfs.a
|
|
|
|
%files tests
|
|
%defattr(-,root,root)
|
|
%dir %{_libdir}/libhugetlbfs
|
|
%{_libdir}/libhugetlbfs/*
|
|
|
|
%changelog
|