Thomas Renninger
16c537a6e3
- Add libhugelbfs-2.18-restrict-is-a-reserved-word.patch which fixes compilation with GCC 5 (and C99/C11 in general). OBS-URL: https://build.opensuse.org/request/show/313325 OBS-URL: https://build.opensuse.org/package/show/Base:System/libhugetlbfs?expand=0&rev=41
106 lines
3.0 KiB
RPMSpec
106 lines
3.0 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/
|
|
#
|
|
|
|
|
|
Name: libhugetlbfs
|
|
|
|
%if 0%{?suse_version} > 1140
|
|
BuildRequires: glibc-devel-static
|
|
%endif
|
|
BuildRequires: doxygen
|
|
|
|
Summary: Hugetlbfs helper library
|
|
License: LGPL-2.1+
|
|
Group: Development/Libraries/Other
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libhugetlbfs-64bit
|
|
%endif
|
|
#
|
|
Version: 2.18
|
|
Release: 0
|
|
Url: http://libhugetlbfs.sourceforge.net/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%define my_make_flags V=1 CFLAGS="$RPM_OPT_FLAGS -fPIC" BUILDTYPE=NATIVEONLY PREFIX=/usr LIBDIR32=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
|
Source0: http://downloads.sourceforge.net/project/libhugetlbfs/libhugetlbfs/%{version}/libhugetlbfs-%{version}.tar.gz
|
|
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: fix_plt_extrasz_always_returning_0_on_ppc64le.patch
|
|
# PATCH-FIX-UPSTREAM libhugetlbfs-2.18-restrict-is-a-reserved-word.patch -- Fix compilation with GCC 5 (and C99/C11 in general)
|
|
Patch16: libhugetlbfs-2.18-restrict-is-a-reserved-word.patch
|
|
|
|
%description
|
|
The libhugetlbfs package interacts with the Linux hugetlbfs to
|
|
make large pages available to applications in a transparent manner.
|
|
|
|
%package libhugetlb-devel
|
|
Summary: Devel package for libhugetlb
|
|
Group: Development/Libraries/Other
|
|
Requires: libhugetlbfs
|
|
|
|
%description libhugetlb-devel
|
|
Devel package, header and static library, of libhugetlb
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch2 -p1
|
|
%patch4 -p1
|
|
%patch7 -p1
|
|
%patch8 -p1
|
|
%patch13
|
|
%patch14
|
|
%patch15 -p1
|
|
%patch16 -p1
|
|
|
|
%build
|
|
make %{my_make_flags}
|
|
|
|
%install
|
|
make %{my_make_flags} install
|
|
make \
|
|
%ifarch sparc sparcv9
|
|
CC32="gcc" CC64="" NATIVEONLY=1 \
|
|
%endif
|
|
%{my_make_flags} install
|
|
mkdir -p $RPM_BUILD_ROOT/usr/include
|
|
cp -avL hugetlbfs.h $RPM_BUILD_ROOT/usr/include
|
|
chmod 644 $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc LGPL-2.1 HOWTO README NEWS
|
|
/usr/share/libhugetlbfs
|
|
/usr/bin/*
|
|
%{_mandir}/man*/*.gz
|
|
%{_libdir}/libhugetlbfs_privutils.so
|
|
%{_libdir}/libhugetlbfs.so
|
|
|
|
%files libhugetlb-devel
|
|
%defattr(-, root, root)
|
|
/usr/include/hugetlbfs.h
|
|
%{_libdir}/libhugetlbfs.a
|
|
|
|
%changelog
|