lustre-2.4.3 for SLES11 SP2 x86-64 bit spec file

Source: Internet
Author: User

# Lustre.spec

%define _depmod/sbin/depmod

%define _sed/usr/bin/sed


Summary:lustre File System

Name:lustre-client

version:2.4.3

Release:1%{?dist}

License:gpl

Group:utilities/system

Source:lustre-%{version}.tar.gz

url:http://wiki.whamcloud.com/

BuildRoot:%{_tmppath}/lustre-%{version}-root

Obsoletes:lustre-lite, Lustre-lite-utils, Lustre-ldap nfs-utils-lustre


Buildrequires:gcc,gcc-c++,libstdc++-devel,make,kernel-default-devel

Requires:%{name}-modules =%{version}


Requires (POST):%{_depmod},%{_sed}

Requires (Postun):%{_depmod},%{_sed}


Provides:lustre-lite =%{version}, lustre-lite-utils =%{version}


%description

Userspace tools and files for the Lustre file system.



%package Modules

Summary:lustre Client Modules

Group:applications/file

Requires:%{name} =%{version}


%description Modules

Luster Client Modules


%prep

%SETUP-QN Lustre-%{version}


%build

# if Rpm_build_ncpus unset, set it

If [-Z "$RPM _build_ncpus"]; Then

rpm_build_ncpus=$ (egrep-c "^cpu[0-9]+"/proc/stat 2>/dev/null | | echo 0:)

If [$RPM _build_ncpus-eq 0]; Then

Rpm_build_ncpus=1

Fi

If [$RPM _build_ncpus-gt 8]; Then

Rpm_build_ncpus=8

Fi

Fi


RM-RF $RPM _build_root

./configure--prefix=/usr \

--EXEC-PREFIX=/USR \

--bindir=/usr/bin \

--sbindir=/usr/sbin \

--SYSCONFDIR=/ETC \

--datadir=/usr/share \

--includedir=/usr/include \

--LIBDIR=/USR/LIB64 \

--LIBEXECDIR=/USR/LIB64 \

--localstatedir=/var \

--sharedstatedir=/usr/com \

--mandir=/usr/share/man \

--infodir=/usr/share/info \

--with-linux=/usr/src/linux-3.0.13-0.27 \

--with-linux-obj=/usr/src/linux-3.0.13-0.27-obj/x86_64/default \

--with-release=3.0.13_0.27_default \

--disable-server


Make-j $RPM _build_ncpus-s%{?make_args}


%install

Make install destdir= $RPM _build_root


%files

%defattr (-,root,root,-)

%{_sysconfdir}/ha.d/resource.d/lustre.ha_v2

%{_sysconfdir}/init.d/lnet

%{_sysconfdir}/init.d/lustre

%config (Noreplace)%{_sysconfdir}/ldev.conf

%config (Noreplace)%{_sysconfdir}/sysconfig/lustre

%config (Noreplace)%{_sysconfdir}/udev/rules.d/99-lustre.rules

/sbin/mount.lustre

/usr/


%files Modules

%defattr (-,root,root,-)

/lib/


%pre Modules


%post Modules

/sbin/depmod-a

/usr/bin/sed-i "S/0/1/g"/etc/modprobe.d/unsupported-modules


%preun Modules


%postun Modules

/usr/bin/sed-i "S/1/0/g"/etc/modprobe.d/unsupported-modules

/sbin/depmod-a


%clean

RM-RF $RPM _build_root


%changelog

* Mon Jul [email protected]

-First Release


lustre-2.4.3 for SLES11 SP2 x86-64 bit spec file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.