diff --git a/python-joblib.spec b/python-joblib.spec index 9e29f0c36778b4fcea45177e563e477c661c8d75..c9d6e2429c0825287ef49ec9152276bb40470857 100644 --- a/python-joblib.spec +++ b/python-joblib.spec @@ -1,6 +1,8 @@ -%define anolis_release 1 +%define anolis_release 2 %bcond_with check %global srcname joblib +%define python3_pkgversion 38 +%define python3_bin python3.8 Name: python-%{srcname} Version: 1.2.0 @@ -12,7 +14,8 @@ URL: https://joblib.readthedocs.io Source0: %{pypi_source} BuildArch: noarch -BuildRequires: python3-devel +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-rpm-macros %description Joblib is a set of tools to provide lightweight pipelining in Python. @@ -22,10 +25,10 @@ In particular, joblib offers: * easy simple parallel computing * logging and tracing of the execution -%package -n python3-%{srcname} +%package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} -%description -n python3-%{srcname} +%description -n python%{python3_pkgversion}-%{srcname} Joblib is a set of tools to provide lightweight pipelining in Python. In particular, joblib offers: * transparent disk-caching of the output values and lazy @@ -33,12 +36,12 @@ In particular, joblib offers: * easy simple parallel computing * logging and tracing of the execution -%package -n python3-%{srcname}-doc +%package -n python%{python3_pkgversion}-%{srcname}-doc Summary: Documentation files for %{name} -Requires: python3-%{srcname} = %{version}-%{release} +Requires: python%{python3_pkgversion}-%{srcname} = %{version}-%{release} BuildArch: noarch -%description -n python3-%{srcname}-doc +%description -n python%{python3_pkgversion}-%{srcname}-doc The python3-%{srcname}-doc package contains documentation files for python3-%{srcname}. # Testing @@ -60,10 +63,10 @@ Provides: bundled(python3dist(cloudpickle)) = 1.6.0 %autosetup -n %{srcname}-%{version} %build -%py3_build +%{_bindir}/%{python3_bin} setup.py build %install -%py3_install +%{_bindir}/%{python3_bin} setup.py install --root=%{buildroot} %if %{with check} %check @@ -76,14 +79,17 @@ Provides: bundled(python3dist(cloudpickle)) = 1.6.0 %endif -%files -n python3-%{srcname} +%files -n python%{python3_pkgversion}-%{srcname} %license LICENSE.txt %{python3_sitelib}/%{srcname}-*.egg-info %{python3_sitelib}/%{srcname} -%files -n python3-%{srcname}-doc +%files -n python%{python3_pkgversion}-%{srcname}-doc %doc README.rst %changelog +* Mon Dec 05 2022 happy_orange - 1.2.0-2 +- add python38 support + * Mon Nov 28 2022 happy_orange - 1.2.0-1 - init package from upstream