Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gu Zheng <gzheng@ddn.com>
- Loading branch information
Gu Zheng
committed
Mar 6, 2017
1 parent
7ca66ab
commit 5374889
Showing
3 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
. /usr/local/tools/dotkit/init.sh | ||
use mvapich2-gnu | ||
|
||
set -x | ||
|
||
export topdir=`pwd` | ||
export installdir=$topdir/install | ||
export PATH="${topdir}/autotools/install/bin:$PATH" | ||
|
||
./autogen.sh | ||
|
||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${installdir}/lib/pkgconfig" | ||
|
||
# TODO: avoid this step | ||
# necessary so configure test of dtcmp links with MPI | ||
export CC=mpicc | ||
|
||
# hack to get things to build after common library | ||
export CFLAGS="-I${topdir}/src/common -DDCOPY_USE_XATTRS" | ||
export LDFLAGS="-Wl,-rpath,${topdir}/install/lib -L${topdir}/install/lib -lcircle" | ||
|
||
|
||
#./configure \ | ||
# --enable-lustre \ | ||
# --prefix=$installdir \ | ||
# --disable-silent-rules \ | ||
# --with-dtcmp=$installdir && \ | ||
./configure --enable-dist && \ | ||
make dist && \ | ||
make rpm | ||
if [ $? -ne 0 ] ; then | ||
echo "failed to configure, build, or build file utils rpm" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Name: mpifileutils | ||
Version: 0.6 | ||
Release: 1%{?dist} | ||
Summary: File utilities designed for scalability and performance. | ||
|
||
Group: System Environment/Libraries | ||
License: Copyright and BSD License | ||
URL: http://fileutils.io/ | ||
Source: %{name}-%{version}.tar.gz | ||
BuildRoot: %_topdir/BUILDROOT | ||
Requires: libcircle, lwgrp, dtcmp, libarchive, openssl, openssl-devel | ||
|
||
%description | ||
File utilities designed for scalability and performance. | ||
|
||
%prep | ||
%setup -q | ||
|
||
%build | ||
#topdir=`pwd` | ||
#installdir=$topdir/install | ||
|
||
#export PATH="${topdir}/autotools/install/bin:$PATH" | ||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${installdir}/lib/pkgconfig" | ||
export CC=mpicc | ||
# hack to get things to build after common library | ||
export CFLAGS="-I${topdir}/src/common -DDCOPY_USE_XATTRS" | ||
export LDFLAGS="-Wl,-rpath,-lcircle" | ||
|
||
%configure \ | ||
--bindir=%{_bindir} \ | ||
--enable-lustre \ | ||
--disable-silent-rules \ | ||
--with-dtcmp=${installdir} && \ | ||
make %{?_smp_mflags} | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
make install DESTDIR=%{buildroot} | ||
|
||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%{_bindir}/* | ||
%{_includedir}/* | ||
%{_libdir}/* | ||
%{_mandir}/* | ||
|
||
%changelog | ||
|