Skip to content
Snippets Groups Projects
Commit de14b520 authored by gord-fig's avatar gord-fig
Browse files

Use make distdir to generate a pristine source tree because we need to keep...

Use make distdir to generate a pristine source tree because we need to keep around some files that are clobbered by distclean.
parent b8ca825f
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,8 @@ KINCFLAGS='-I. -I$(top_srcdir)/include -I$(PORTALS)/include -I$(LINUX)/include' ...@@ -49,7 +49,8 @@ KINCFLAGS='-I. -I$(top_srcdir)/include -I$(PORTALS)/include -I$(LINUX)/include'
CPPFLAGS="$KINCFLAGS $ARCHCPPFLAGS" CPPFLAGS="$KINCFLAGS $ARCHCPPFLAGS"
portalsdir_def='$(top_srcdir)/../portals' portalsdir_def='$(top_srcdir)/../portals'
AC_ARG_ENABLE(portalsdir, [ --enable-portalsdir=[path] set path to Portals source (default=../portals)],, enable_portalsdir=$portalsdir_def) AC_ARG_WITH(portals, [ --with-portals=[path] set path to Portals source (default=../portals)], enable_portalsdir=$withval)
AC_ARG_ENABLE(portalsdir, [ --enable-portalsdir=[path] (deprecated) set path to Portals source (default=../portals)],, enable_portalsdir=$portalsdir_def)
PORTALS=$enable_portalsdir PORTALS=$enable_portalsdir
AC_SUBST(PORTALS) AC_SUBST(PORTALS)
......
...@@ -26,22 +26,22 @@ Group: Development/Kernel ...@@ -26,22 +26,22 @@ Group: Development/Kernel
%description -n lustre-modules %description -n lustre-modules
Lustre file System, server and network drivers for Linux %{kversion}. Lustre file System, server and network drivers for Linux %{kversion}.
%package -n lustre-source
Summary: Object-Based Disk storage driver source
Group: Development/Kernel
%description -n lustre-source
Lustre Lite Source for further development
%package -n lustre-doc %package -n lustre-doc
Summary: Documentation and sample configuration files Summary: Documentation and sample configuration files
Group: Documentation Group: Documentation
# FIXME: BuildArch overrides all the packages in rpm 4.0.4-7x # FIXME: BuildArch overrides all the packages in rpm 4.0.4-7x
#BuildArch: noarch BuildArch: noarch
%description -n lustre-doc %description -n lustre-doc
Documentation and sample configuration files for Lustre Documentation and sample configuration files for Lustre
%package -n lustre-source
Summary: Object-Based Disk storage driver source
Group: Development/Kernel
%description -n lustre-source
Lustre Lite Source for further development
%prep %prep
%setup -qn lustre-%{version} %setup -qn lustre-%{version}
...@@ -56,10 +56,10 @@ make ...@@ -56,10 +56,10 @@ make
make install prefix=$RPM_BUILD_ROOT make install prefix=$RPM_BUILD_ROOT
# Create the pristine source directory. # Create the pristine source directory.
make distclean mkdir -p $RPM_BUILD_ROOT/usr/src
mkdir -p $RPM_BUILD_ROOT/usr/src/lustre-%{version} rm -f lustre-source
find . -print | cpio -ap $RPM_BUILD_ROOT/usr/src/lustre-%{version} ln -s $RPM_BUILD_ROOT/usr/src lustre-source
make distdir distdir=lustre-source/lustre-%{version}
%files %files
%attr(-, root, root) /usr/sbin/lmc %attr(-, root, root) /usr/sbin/lmc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment