libhugetlbfs/libhugetlbfs.spec
Thomas Renninger aed53fc815 - Update to version 2.11
Bugfixes and new features are listed in the NEWS file in
  /usr/share/doc/packages/libhugetlbfs/NEWS

OBS-URL: https://build.opensuse.org/package/show/Base:System/libhugetlbfs?expand=0&rev=18
2010-12-17 11:47:57 +00:00

110 lines
2.9 KiB
RPMSpec

#
# spec file for package libhugetlbfs (Version 2.9)
#
# Copyright (c) 2010 SUSE LINUX Products 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/
#
# norootforbuild
Name: libhugetlbfs
BuildRequires: doxygen
License: LGPLv2.1+
Group: Development/Libraries/Other
Summary: Hugetlbfs helper library
# bug437293
%ifarch ppc64
Obsoletes: libhugetlbfs-64bit
%endif
#
Version: 2.11
Release: 1
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: libhugetlbfs-%{version}.tar.bz2
Source1: baselibs.conf
Patch1: libhugetlbfs.ia64-libdir.patch
Patch2: libhugetlbfs.s390.patch
Patch4: libhugetlbfs.tests-malloc.patch
Patch5: libhugetlbfs.run_test_fix.patch
%description
The libhugetlbfs package interacts with the Linux hugetlbfs to
make large pages available to applications in a transparent manner.
%package libhugetlb-devel
License: LGPLv2.1+
Summary: Devel package for libhugetlb
Requires: libhugetlbfs
Group: Development/Libraries/Other
AutoReqProv: on
%description libhugetlb-devel
Devel package, header and static library, of libhugetlb
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch4 -p1
%patch5 -p1
%build
make %{my_make_flags}
%install
tests=
%ifarch ppc ppc64 %ix86 x86_64
tests=install-tests
%endif
make \
%ifarch sparc sparcv9
CC32="gcc" CC64="" NATIVEONLY=1 \
%endif
%{my_make_flags} install $tests
mkdir -p $RPM_BUILD_ROOT/usr/include
cp -avL hugetlbfs.h $RPM_BUILD_ROOT/usr/include
chmod 644 $RPM_BUILD_ROOT%{_libdir}/*.a
for file in $RPM_BUILD_ROOT/%_libdir/libhugetlbfs/tests/*/*; do
strip $file || :
done
%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
%dir %{_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
/usr/lib/perl5/TLBC/PerfCollect.pm
%files libhugetlb-devel
%defattr(-, root, root)
/usr/include/hugetlbfs.h
%{_libdir}/libhugetlbfs.a
%changelog