diff --git a/python-partd.spec b/python-partd.spec index 6ae4409..1187b7b 100644 --- a/python-partd.spec +++ b/python-partd.spec @@ -6,62 +6,49 @@ Release: %autorelease Summary: Appendable key-value storage License: BSD -URL: https://pypi.python.org/pypi/%{srcname} -Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz +URL: https://github.com/dask/partd +Source0: %pypi_source %{srcname} BuildArch: noarch -%global _description \ -Key-value byte store with appendable values: Partd stores key-value pairs. \ -Values are raw bytes. We append on old values. Partd excels at shuffling \ -operations. +%global _description %{expand: +Key-value byte store with appendable values: Partd stores key-value pairs. +Values are raw bytes. We append on old values. Partd excels at shuffling +operations.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) BuildRequires: python3dist(pytest) -BuildRequires: python3dist(locket) -BuildRequires: python3dist(toolz) -BuildRequires: python3dist(numpy) >= 1.9 -BuildRequires: python3dist(pandas) >= 0.19 -BuildRequires: python3dist(pyzmq) -BuildRequires: python3dist(blosc) - -Recommends: python3dist(numpy) >= 1.9 -Recommends: python3dist(pandas) >= 0.19 -Recommends: python3dist(pyzmq) -Recommends: python3dist(blosc) + +Recommends: python3-%{srcname}+complete %description -n python3-%{srcname} %{_description} +%pyproject_extras_subpkg -n python3-%{srcname} complete %prep %autosetup -n %{srcname}-%{version} +%generate_buildrequires +%pyproject_buildrequires -rx complete %build -%py3_build - +%pyproject_wheel %install -%py3_install - +%pyproject_install +%pyproject_save_files %{srcname} %check %{pytest} - -%files -n python3-%{srcname} -%license LICENSE.txt +%files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst -%{python3_sitelib}/%{srcname}/ -%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ - +%license LICENSE.txt %changelog %autochangelog