From 42f2651fb713bc7ace7c8432e1cae84b5e62ccd0 Mon Sep 17 00:00:00 2001 From: chendingjian Date: Wed, 8 Feb 2023 10:05:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(spec)=20:=20Use=20the=20built-in=20process?= =?UTF-8?q?=20of=20rpm=20to=20provide=20pythonX.=20Ydist=20(M)=20-=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8rpm=E7=9A=84=E5=86=85=E7=BD=AE=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E6=8F=90=E4=BE=9BpythonX.Ydist(M)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chendingjian --- dogtail.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dogtail.spec b/dogtail.spec index aee9e06..098ff01 100644 --- a/dogtail.spec +++ b/dogtail.spec @@ -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 - 0.9.10-4 +* Wed Feb 08 2023 chendingjian - 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 - 0.9.10-3