diff --git a/packages/build-rpm-packages.sh b/packages/build-rpm-packages.sh index 698110c..42fe77a 100755 --- a/packages/build-rpm-packages.sh +++ b/packages/build-rpm-packages.sh @@ -131,7 +131,7 @@ ex cd ${TOP_DIR_PATH} ex mkdir -p $tmpdir/gdrcopy ex rm -rf $tmpdir/gdrcopy/* -ex cp -r packages/dkms.conf packages/rhel/init.d packages/rhel/gdrcopy.service insmod.sh Makefile README.md include src tests config_arch LICENSE packages/gdrcopy.spec $tmpdir/gdrcopy/ +ex cp -r packages/dkms.conf packages/rhel/init.d packages/rhel/gdrcopy.service scripts/ insmod.sh Makefile README.md include src tests config_arch LICENSE packages/gdrcopy.spec $tmpdir/gdrcopy/ ex rm -f $tmpdir/gdrcopy-$VERSION.tar.gz ex cd $tmpdir/gdrcopy diff --git a/packages/gdrcopy.spec b/packages/gdrcopy.spec index 1013648..8cf51a0 100644 --- a/packages/gdrcopy.spec +++ b/packages/gdrcopy.spec @@ -182,6 +182,7 @@ cp -a $RPM_BUILD_DIR/%{name}-%{version}/src/gdrdrv/gdrdrv.h $RPM_BUILD_ROOT%{usr cp -a $RPM_BUILD_DIR/%{name}-%{version}/src/gdrdrv/Makefile $RPM_BUILD_ROOT%{usr_src_dir}/gdrdrv-%{version}/ cp -a $RPM_BUILD_DIR/%{name}-%{version}/src/gdrdrv/nv-p2p-dummy.c $RPM_BUILD_ROOT%{usr_src_dir}/gdrdrv-%{version}/ cp -a $RPM_BUILD_DIR/%{name}-%{version}/dkms.conf $RPM_BUILD_ROOT%{usr_src_dir}/gdrdrv-%{version} +cp -a -r $RPM_BUILD_DIR/%{name}-%{version}/scripts $RPM_BUILD_ROOT%{usr_src_dir}/gdrdrv-%{version}/ %if 0%{!?suse_version:1} # RHEL @@ -341,6 +342,7 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version} %{usr_src_dir}/gdrdrv-%{version}/Makefile %{usr_src_dir}/gdrdrv-%{version}/nv-p2p-dummy.c %{usr_src_dir}/gdrdrv-%{version}/dkms.conf +%{usr_src_dir}/gdrdrv-%{version}/scripts/* %if %{BUILD_KMOD} > 0