2007-01-16 00:22:07 +01:00
|
|
|
#
|
2009-11-16 17:17:15 +01:00
|
|
|
# spec file for package libhugetlbfs (Version 2.5)
|
2007-01-16 00:22:07 +01:00
|
|
|
#
|
2010-02-05 15:22:33 +01:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 14:28:59 +02:00
|
|
|
|
2007-01-16 00:22:07 +01:00
|
|
|
Name: libhugetlbfs
|
|
|
|
BuildRequires: doxygen
|
2010-02-05 15:22:33 +01:00
|
|
|
License: LGPLv2.1+
|
2007-01-16 00:22:07 +01:00
|
|
|
Group: Development/Libraries/Other
|
2009-11-16 17:17:15 +01:00
|
|
|
Summary: Hugetlbfs helper library
|
2009-01-08 18:36:50 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libhugetlbfs-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2009-11-16 17:17:15 +01:00
|
|
|
Version: 2.5
|
2010-02-11 21:12:56 +01:00
|
|
|
Release: 3
|
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
|
2008-06-25 20:52:49 +02:00
|
|
|
Source0: libhugetlbfs-%{version}.tar.bz2
|
2010-02-05 15:22:33 +01:00
|
|
|
Source1: baselibs.conf
|
2008-08-28 12:39:19 +02:00
|
|
|
Patch1: libhugetlbfs.ia64-libdir.patch
|
|
|
|
Patch2: libhugetlbfs.s390.patch
|
2009-11-16 17:17:15 +01:00
|
|
|
Patch3: libhugetlbfs.exchange_library_order.patch
|
|
|
|
Patch4: libhugetlbfs.tests-malloc.patch
|
|
|
|
Patch5: libhugetlbfs.run_test_fix.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
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David Gibson <dwg@au1.ibm.com>
|
|
|
|
Adam Litke <agl@us.ibm.com>
|
|
|
|
|
2009-11-16 17:17:15 +01:00
|
|
|
%package libhugetlb-devel
|
2010-02-05 15:22:33 +01:00
|
|
|
License: LGPLv2.1+
|
2009-11-16 17:17:15 +01:00
|
|
|
Summary: Devel package for libhugetlb
|
|
|
|
Requires: libhugetlbfs
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
AutoReqProv: on
|
|
|
|
|
|
|
|
%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
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2008-10-22 18:13:52 +02:00
|
|
|
%patch4 -p1
|
2008-11-06 22:14:38 +01:00
|
|
|
%patch5 -p1
|
2009-11-16 17:17:15 +01:00
|
|
|
#%patch7 -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
|
2008-01-15 10:01:42 +01:00
|
|
|
tests=
|
2007-01-16 00:22:07 +01:00
|
|
|
%ifarch ppc ppc64 %ix86 x86_64
|
|
|
|
tests=install-tests
|
|
|
|
%endif
|
2010-02-11 21:12:56 +01:00
|
|
|
make \
|
|
|
|
%ifarch sparc sparcv9
|
|
|
|
CC32="gcc" CC64="" NATIVEONLY=1 \
|
|
|
|
%endif
|
|
|
|
%{my_make_flags} install $tests
|
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
|
|
|
|
%{_libdir}/libhugetlbfs
|
|
|
|
%{_libdir}/libhugetlbfs/*
|
|
|
|
# ToDo: What are these for...
|
|
|
|
%dir /usr/lib/perl5/TLBC
|
|
|
|
/usr/lib/perl5/TLBC/DataCollect.pm
|
|
|
|
/usr/lib/perl5/TLBC/OpCollect.pm
|
|
|
|
/usr/lib/perl5/TLBC/Report.pm
|
|
|
|
|
|
|
|
%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
|