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
|
|
|
#
|
2012-04-12 10:43:47 +02:00
|
|
|
# Copyright (c) 2012 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
|
|
|
|
#
|
2012-04-12 10:43:47 +02:00
|
|
|
Version: 2.13
|
|
|
|
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
|
2011-10-14 16:10:07 +02:00
|
|
|
Source0: libhugetlbfs-%{version}.tar.gz
|
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
|
|
|
Patch4: libhugetlbfs.tests-malloc.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
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2008-10-22 18:13:52 +02:00
|
|
|
%patch4 -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
|
2010-06-18 16:41:55 +02:00
|
|
|
for file in $RPM_BUILD_ROOT/%_libdir/libhugetlbfs/tests/*/*; do
|
|
|
|
strip $file || :
|
|
|
|
done
|
2011-05-30 11:29:54 +02:00
|
|
|
# Do not pack in a 268MB file..
|
|
|
|
rm $RPM_BUILD_ROOT/%_libdir/libhugetlbfs/tests/obj32/linkhuge_rw || :
|
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
|
2010-10-08 00:20:12 +02:00
|
|
|
%dir %{_libdir}/libhugetlbfs
|
2009-11-16 17:17:15 +01:00
|
|
|
%{_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
|
2010-10-08 00:20:12 +02:00
|
|
|
/usr/lib/perl5/TLBC/PerfCollect.pm
|
2009-11-16 17:17:15 +01:00
|
|
|
|
|
|
|
%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
|