Add meta-subpackages for individual features.

This commit is contained in:
Elliott Sales de Andrade 2019-03-06 20:38:30 -05:00
parent 325cfc4fc4
commit 0e49bd2d45

View File

@ -7,7 +7,7 @@
Name: python-%{srcname}
Version: 1.1.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Parallel PyData with Task Scheduling
License: BSD
@ -45,14 +45,87 @@ BuildRequires: python3dist(toolz) >= 0.7.3
BuildRequires: python3dist(distributed) >= 1.22
%endif
Recommends: python3-%{srcname}+array = %{version}-%{release}
Recommends: python3-%{srcname}+bag = %{version}-%{release}
Recommends: python3-%{srcname}+dataframe = %{version}-%{release}
Recommends: python3-%{srcname}+delayed = %{version}-%{release}
Recommends: python3-%{srcname}+distributed = %{version}-%{release}
%description -n python3-%{srcname}
Dask is a flexible parallel computing library for analytics.
%package -n python3-%{srcname}+array
Summary: Meta-package for python3-%{srcname} with array feature
BuildArch: noarch
%{?python_provide:%python_provide python3-%{srcname}+array}
Requires: python3-%{srcname} = %{version}-%{release}
Requires: python3dist(numpy) >= 1.11.0
Requires: python3dist(toolz) >= 0.7.3
%description -n python3-%{srcname}+array
This package installs dask with dependencies required for its array feature.
Dask is a flexible parallel computing library for analytics.
%package -n python3-%{srcname}+bag
Summary: Meta-package for python3-%{srcname} with bag feature
BuildArch: noarch
%{?python_provide:%python_provide python3-%{srcname}+bag}
Requires: python3-%{srcname} = %{version}-%{release}
Requires: python3dist(cloudpickle) >= 0.2.1
Requires: python3dist(partd) >= 0.3.8
Requires: python3dist(toolz) >= 0.7.3
%description -n python3-%{srcname}+bag
This package installs dask with dependencies required for its bag feature.
Dask is a flexible parallel computing library for analytics.
%package -n python3-%{srcname}+dataframe
Summary: Meta-package for python3-%{srcname} with dataframe feature
BuildArch: noarch
%{?python_provide:%python_provide python3-%{srcname}+dataframe}
Requires: python3-%{srcname} = %{version}-%{release}
Requires: python3dist(cloudpickle) >= 0.2.1
Suggests: python3dist(distributed) >= 1.22
Requires: python3dist(numpy) >= 1.11.0
Requires: python3dist(pandas) >= 0.19.0
Requires: python3dist(partd) >= 0.3.8
Requires: python3dist(toolz) >= 0.7.3
%description -n python3-%{srcname}
%description -n python3-%{srcname}+dataframe
This package installs dask with dependencies required for its dataframe
feature.
Dask is a flexible parallel computing library for analytics.
%package -n python3-%{srcname}+delayed
Summary: Meta-package for python3-%{srcname} with delayed feature
BuildArch: noarch
%{?python_provide:%python_provide python3-%{srcname}+delayed}
Requires: python3-%{srcname} = %{version}-%{release}
Requires: python3dist(toolz) >= 0.7.3
%description -n python3-%{srcname}+delayed
This package installs dask with dependencies required for its delayed feature.
Dask is a flexible parallel computing library for analytics.
%package -n python3-%{srcname}+distributed
Summary: Meta-package for python3-%{srcname} with distributed feature
BuildArch: noarch
%{?python_provide:%python_provide python3-%{srcname}+distributed}
Requires: python3-%{srcname} = %{version}-%{release}
Requires: python3dist(distributed) >= 1.22
%description -n python3-%{srcname}+distributed
This package installs dask with dependencies required for its distributed
feature.
Dask is a flexible parallel computing library for analytics.
@ -102,6 +175,12 @@ PYTHONDONTWRITEBYTECODE=1 \
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info
%files -n python3-%{srcname}+array
%files -n python3-%{srcname}+bag
%files -n python3-%{srcname}+dataframe
%files -n python3-%{srcname}+delayed
%files -n python3-%{srcname}+distributed
%if ! 0%{?bootstrap}
%files -n python-%{srcname}-doc
%doc html
@ -110,5 +189,8 @@ PYTHONDONTWRITEBYTECODE=1 \
%changelog
* Wed Mar 06 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.1.3-2
- Add meta-subpackages for individual features
* Sat Mar 02 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.1.3-1
- Initial package.