fix(spec) : Use the built-in process of rpm to provide pythonX. Ydist (M)

- 使用rpm的内置流程提供pythonX.Ydist(M)

Signed-off-by: chendingjian <chendingjian@kylinsec.com.cn>
This commit is contained in:
chendingjian 2023-02-08 10:05:22 +08:00
parent ac674e699c
commit 42f2651fb7

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