forked from pool/python-jaraco.stream
* Moved more_itertools into the dependencies. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.stream?expand=0&rev=20
85 lines
2.6 KiB
RPMSpec
85 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-jaraco.stream
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define _name jaraco.stream
|
|
Name: python-jaraco.stream
|
|
Version: 3.0.4
|
|
Release: 0
|
|
Summary: Routines for dealing with data streams
|
|
License: MIT
|
|
URL: https://github.com/jaraco/jaraco.stream
|
|
Source: https://files.pythonhosted.org/packages/source/j/%{_name}/jaraco_stream-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.6}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools >= 56}
|
|
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-more-itertools
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module more-itertools}
|
|
BuildRequires: %{python_module pytest}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Routines for handling streaming data, including a set of generators
|
|
for loading gzip data on the fly.
|
|
|
|
%package -n %{name}-doc
|
|
Summary: Documentation files for %{name}
|
|
BuildRequires: python3-Sphinx
|
|
BuildRequires: python3-furo
|
|
BuildRequires: python3-jaraco.packaging >= 9.2
|
|
BuildRequires: python3-rst.linker >= 1.9
|
|
Provides: %{python_module jaraco.stream-doc = %{version}}
|
|
|
|
%description -n %{name}-doc
|
|
This package contains documentation files for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n jaraco_stream-%{version}
|
|
rm -rf jaraco.stream.egg-info
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
export JARACO_PACKAGING_SPHINX_WHEEL=./dist/jaraco.stream-%{version}-py3-none-any.whl
|
|
sphinx-build -b html docs/ build/sphinx/html/
|
|
rm -r build/sphinx/html/{.buildinfo,.doctrees}
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc NEWS.rst README.rst
|
|
%dir %{python_sitelib}/jaraco
|
|
%{python_sitelib}/jaraco/stream/
|
|
%{python_sitelib}/jaraco.stream-%{version}*-info
|
|
|
|
%files -n %{name}-doc
|
|
%doc build/sphinx/html
|
|
|
|
%changelog
|