Skip to content

Commit

Permalink
move spec file to right directory
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDuartePT committed Aug 27, 2023
1 parent c552ea3 commit 8fad938
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deploy/build_deb_rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ echo "Dkms deb located at ${BUILD_DIR}/lenovolegionlinux-dkms_1.0.0_amd64.deb"
cd ${BUILD_DIR_RPM_DKMS}
mkdir -p rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
cp -r ${REPODIR}/kernel_module ./lenovolegionlinux-kmod-1.0.0-x86_64
sudo mv lenovolegionlinux-kmod-1.0.0-x86_64/lenovolegionlinux.spec rpmbuild/SPECS
tar --create --file lenovolegionlinux-kmod-1.0.0-x86_64.tar.gz lenovolegionlinux-kmod-1.0.0-x86_64 && rm --recursive lenovolegionlinux-kmod-1.0.0-x86_64
mv lenovolegionlinux-kmod-1.0.0-x86_64.tar.gz rpmbuild/SOURCES
cd rpmbuild && rpmbuild --define "_topdir `pwd`" -bs SPECS/lenovolegionlinux.spec
Expand Down

0 comments on commit 8fad938

Please sign in to comment.