modify rpm build file

This commit is contained in:
tsthght 2018-07-09 19:51:05 +08:00
parent 3b4e5dad5f
commit 099dafd217
2 changed files with 6 additions and 4 deletions

View File

@ -66,3 +66,8 @@ cd $basedir
mv ~/rpmbuild/RPMS/x86_64/cetus-${version_no}-${release_no}.el6.x86_64.rpm ./
mv ~/rpmbuild/RPMS/x86_64/cetus-debuginfo-${version_no}-${release_no}.el6.x86_64.rpm ./
mv ~/rpmbuild/SRPMS/cetus-${version_no}-${release_no}.el6.src.rpm ./
rm -rf ~/rpmbuild/SOURCES/cetus-${version_no}
rm -rf ~/rpmbuild/SOURCES/cetus-${version_no}.tar.gz
rm -rf ~/rpmbuild/BUILD/cetus-${version_no}
rm -rf ~/rpmbuild/SPECS/cetus-${version_no}.spec

View File

@ -46,10 +46,7 @@ cd bld
%{__make} DESTDIR=%{buildroot} install
%clean
%{__rm} -rfv %_sourcedir/*
%{__rm} -rfv %_builddir/*
%{__rm} -rfv %_buildrootdir/*
%{__rm} -rfv %_specdir/*
%{__rm} -rfv %{buildroot}
%post