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
|
|
|
#
|
2015-02-20 13:41:40 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products 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
|
|
|
|
2007-01-16 00:22:07 +01:00
|
|
|
Name: libhugetlbfs
|
2011-10-14 16:10:07 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
BuildRequires: glibc-devel-static
|
|
|
|
%endif
|
2007-01-16 00:22:07 +01:00
|
|
|
BuildRequires: doxygen
|
2011-10-14 16:10:07 +02:00
|
|
|
|
2009-11-16 17:17:15 +01:00
|
|
|
Summary: Hugetlbfs helper library
|
2012-04-12 10:43:47 +02:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Development/Libraries/Other
|
2009-01-08 18:36:50 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libhugetlbfs-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2015-02-20 13:41:40 +01:00
|
|
|
Version: 2.18
|
2012-04-12 10:43:47 +02:00
|
|
|
Release: 0
|
2008-01-15 10:01:42 +01:00
|
|
|
Url: http://libhugetlbfs.sourceforge.net/
|
2007-01-16 00:22:07 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-11-16 17:17:15 +01:00
|
|
|
%define my_make_flags V=1 CFLAGS="$RPM_OPT_FLAGS -fPIC" BUILDTYPE=NATIVEONLY PREFIX=/usr LIBDIR32=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
2014-04-09 11:58:06 +02:00
|
|
|
Source0: http://downloads.sourceforge.net/project/libhugetlbfs/libhugetlbfs/%{version}/libhugetlbfs-%{version}.tar.gz
|
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
|
|
|
Patch13: ignore-perl-modules.diff
|
|
|
|
Patch14: disable-rw-on-non-ldscripts.diff
|
2015-02-20 13:41:40 +01:00
|
|
|
Patch15: fix_plt_extrasz_always_returning_0_on_ppc64le.patch
|
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
|
|
|
|
2009-11-16 17:17:15 +01:00
|
|
|
%package libhugetlb-devel
|
|
|
|
Summary: Devel package for libhugetlb
|
|
|
|
Group: Development/Libraries/Other
|
2012-04-12 10:43:47 +02:00
|
|
|
Requires: libhugetlbfs
|
2009-11-16 17:17:15 +01:00
|
|
|
|
|
|
|
%description libhugetlb-devel
|
|
|
|
Devel package, header and static library, of libhugetlb
|
|
|
|
|
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
|
|
|
%patch13
|
|
|
|
%patch14
|
2015-02-20 13:41:40 +01:00
|
|
|
%patch15 -p1
|
2007-01-16 00:22:07 +01:00
|
|
|
|
|
|
|
%build
|
2009-11-16 17:17:15 +01:00
|
|
|
make %{my_make_flags}
|
2007-01-16 00:22:07 +01:00
|
|
|
|
|
|
|
%install
|
2014-04-09 11:58:06 +02:00
|
|
|
make %{my_make_flags} install
|
2010-02-11 21:12:56 +01:00
|
|
|
make \
|
|
|
|
%ifarch sparc sparcv9
|
|
|
|
CC32="gcc" CC64="" NATIVEONLY=1 \
|
|
|
|
%endif
|
2014-04-09 11:58:06 +02:00
|
|
|
%{my_make_flags} install
|
2007-01-16 00:22:07 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/include
|
|
|
|
cp -avL hugetlbfs.h $RPM_BUILD_ROOT/usr/include
|
2007-07-10 18:54:10 +02:00
|
|
|
chmod 644 $RPM_BUILD_ROOT%{_libdir}/*.a
|
2007-01-16 00:22:07 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc LGPL-2.1 HOWTO README NEWS
|
|
|
|
/usr/share/libhugetlbfs
|
2008-08-28 12:39:19 +02:00
|
|
|
/usr/bin/*
|
2009-11-16 17:17:15 +01:00
|
|
|
%{_mandir}/man*/*.gz
|
|
|
|
%{_libdir}/libhugetlbfs_privutils.so
|
|
|
|
%{_libdir}/libhugetlbfs.so
|
|
|
|
|
|
|
|
%files libhugetlb-devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
/usr/include/hugetlbfs.h
|
|
|
|
%{_libdir}/libhugetlbfs.a
|
2007-01-16 00:22:07 +01:00
|
|
|
|
2007-04-15 20:16:24 +02:00
|
|
|
%changelog
|