python3: remove files provide by python3-rpm-generators

This reverts commit 840b26b514.

python* files in /usr/lib/rpm/ are live in python3-rpm-generators
now, remove them to let python2 rpm-build be compatible with
python3-rpm-generators

refer to: https://git.centos.org/rpms/rpm/blob/c8/f/SPECS/rpm.spec

Story: 2007106
Task: 39147

Change-Id: I6b502887321db579992316224131f21980de56e9
Signed-off-by: SidneyAn <ran1.an@intel.com>
This commit is contained in:
Ran An 2020-05-15 01:34:56 +00:00 committed by SidneyAn
parent 840b26b514
commit 243243af9b
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
TAR_NAME=rpm
VERSION=4.14.0
TIS_PATCH_VER=1
TIS_PATCH_VER=2
COPY_LIST="$CGCS_BASE/downloads/$TAR_NAME-$VERSION.tar.bz2 patches/*"

View File

@ -311,6 +311,11 @@ done
find $RPM_BUILD_ROOT -name "*.la"|xargs rm -f
# These live in python3-rpm-generators now
rm -f $RPM_BUILD_ROOT/%{rpmhome}/pythond*
rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/python*
%clean
rm -rf $RPM_BUILD_ROOT