!7 Use the built-in process of rpm to provide pythonX.Ydist (M)

From: @chendingjian 
Reviewed-by: @qwei_8848, @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2023-02-08 03:32:39 +00:00 committed by Gitee
commit 064bf19e6f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -19,13 +19,13 @@ Summary: GUI test tool and automation framework - python3 installation
BuildRequires: python3-devel python3-setuptools
Requires: python3-pyatspi python3-gobject python3-cairo rpm-python3
Requires: xorg-x11-xinit hicolor-icon-theme
Provides: python%{python3_pkgversion}dist(dogtail) = %{version}
Provides: python%{python3_version}dist(dogtail) = %{version}
%description -n python3-dogtail
GUI test tool and automation framework that uses assistive technologies to
communicate with desktop applications.
%package_help
%prep
%autosetup -n %{name}-DOGTAIL_0_9_10 -p1
rm -rf %{py3dir}
@ -39,8 +39,6 @@ cd -
%install
cd %{py3dir}
%{__python3} ./setup.py install -O2 --root=$RPM_BUILD_ROOT --record=%{name}.files
rm -rf $RPM_BUILD_ROOT/%{_docdir}/dogtail
rm -rf $RPM_BUILD_ROOT/%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
cd -
find examples -type f -exec chmod 0644 \{\} \;
@ -65,11 +63,15 @@ fi
%{_datadir}/applications/*
%{_datadir}/dogtail/
%{_datadir}/icons/hicolor/*/apps/%{name}*.*
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
%doc COPYING README NEWS
%doc examples/
%files help
%{_docdir}/dogtail
%changelog
* Mon Feb 06 2023 chendingjian <chendingjian@kylinsec.com.cn> - 0.9.10-4
* Wed Feb 08 2023 chendingjian <chendingjian@kylinsec.com.cn> - 0.9.10-4
- Add python%{python3_version}dist(dogtail) to solve the problem that the package cannot be provided.
* Thu Oct 22 2020 huanghaitao <huanghaitao8@huawei.com> - 0.9.10-3