diff --git a/python-threadpoolctl.spec b/python-threadpoolctl.spec index 4bb63ab..136a771 100644 --- a/python-threadpoolctl.spec +++ b/python-threadpoolctl.spec @@ -3,11 +3,11 @@ Name: python-%{pypi_name} Version: 2.1.0 -Release: 1 +Release: 2 Summary: Python helpers to limit the number of threads License: BSD 3-Clause URL: https://github.com/joblib/threadpoolctl/ -Source0: https://github.com/joblib/threadpoolctl/archive/%{version}/%{pypi_name}-%{version}.tar.gz +Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel python3-flit python3-pip @@ -35,10 +35,10 @@ Summary: %{summary} %autosetup -n %{pypi_name}-%{version} %build -FLIT_NO_NETWORK=1 FLIT_ROOT_INSTALL=1 flit build --format=wheel +%py3_build %install -%py3_install_wheel threadpoolctl-*.whl +%py3_install %if %{with test} %check @@ -49,11 +49,13 @@ py.test-%{python3_version} %license LICENSE %doc README.md CHANGES.md %{python3_sitelib}/threadpoolctl.py -%{python3_sitelib}/%{pypi_name}-*.dist-info/ +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/__pycache__/%{pypi_name}.* - %changelog +* Fri Jan 28 2022 shixuantong - 2.1.0-2 +- change source0 and modify build and install + * Thu Jan 28 2021 liudabo - 2.1.0-1 - upgrade version to 2.1.0 diff --git a/threadpoolctl-2.1.0.tar.gz b/threadpoolctl-2.1.0.tar.gz index 0f6bff0..d65d2af 100644 Binary files a/threadpoolctl-2.1.0.tar.gz and b/threadpoolctl-2.1.0.tar.gz differ