diff --git a/python-pid.spec b/python-pid.spec index 6f64fc8443f055d9599c671bd4f7e0e731fbb63f..0b192c61169d492595c8b7a174e580cfb05bc35b 100644 --- a/python-pid.spec +++ b/python-pid.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global srcname pid %global common_description %{expand: @@ -40,6 +40,14 @@ BuildRequires: python%{python3_pkgversion}-pytest %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} %{common_description} + +%package -n python%{python3_pkgversion}-%{srcname}-doc +Summary: doc files for python%{python3_pkgversion}-%{srcname} +Requires: python%{python3_pkgversion}-%{srcname} = %{version}-%{release} + +%description -n python%{python3_pkgversion}-%{srcname}-doc +doc files for python%{python3_pkgversion}-%{srcname} + %endif %prep @@ -48,14 +56,17 @@ BuildRequires: python%{python3_pkgversion}-pytest rm -rf %{srcname}.egg-info +%generate_buildrequires +%pyproject_buildrequires + %build %if %{with python3} -%py3_build +%pyproject_wheel %endif %install %if %{with python3} -%py3_install +%pyproject_install %endif %check @@ -66,11 +77,16 @@ rm -rf %{srcname}.egg-info %if %{with python3} %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE -%doc AUTHORS CHANGELOG README.rst %{python3_sitelib}/%{srcname} -%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/%{srcname}-%{version}.dist-info/ %endif +%files -n python%{python3_pkgversion}-%{srcname}-doc +%doc AUTHORS CHANGELOG README.rst + %changelog +* Mon Feb 27 2023 mgb01105731 - 3.0.4-2 +- optimise dependency + * Mon Apr 18 2022 Chunmei Xu - 3.0.4-1 - init from upstream