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 BuildRequires: python3-devel python3-setuptools
Requires: python3-pyatspi python3-gobject python3-cairo rpm-python3 Requires: python3-pyatspi python3-gobject python3-cairo rpm-python3
Requires: xorg-x11-xinit hicolor-icon-theme 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 %description -n python3-dogtail
GUI test tool and automation framework that uses assistive technologies to GUI test tool and automation framework that uses assistive technologies to
communicate with desktop applications. communicate with desktop applications.
%package_help
%prep %prep
%autosetup -n %{name}-DOGTAIL_0_9_10 -p1 %autosetup -n %{name}-DOGTAIL_0_9_10 -p1
rm -rf %{py3dir} rm -rf %{py3dir}
@ -39,8 +39,6 @@ cd -
%install %install
cd %{py3dir} cd %{py3dir}
%{__python3} ./setup.py install -O2 --root=$RPM_BUILD_ROOT --record=%{name}.files %{__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 - cd -
find examples -type f -exec chmod 0644 \{\} \; find examples -type f -exec chmod 0644 \{\} \;
@ -65,11 +63,15 @@ fi
%{_datadir}/applications/* %{_datadir}/applications/*
%{_datadir}/dogtail/ %{_datadir}/dogtail/
%{_datadir}/icons/hicolor/*/apps/%{name}*.* %{_datadir}/icons/hicolor/*/apps/%{name}*.*
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
%doc COPYING README NEWS %doc COPYING README NEWS
%doc examples/ %doc examples/
%files help
%{_docdir}/dogtail
%changelog %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. - 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 * Thu Oct 22 2020 huanghaitao <huanghaitao8@huawei.com> - 0.9.10-3