Blame python-crochet.spec

e082d7
#
e082d7
# spec file for package python-crochet
e082d7
#
e082d7
# Copyright (c) 2020 SUSE LLC
e082d7
#
e082d7
# All modifications and additions to the file contributed by third parties
e082d7
# remain the property of their copyright owners, unless otherwise agreed
e082d7
# upon. The license for this file, and modifications and additions to the
e082d7
# file, is the same license as for the pristine package itself (unless the
e082d7
# license for the pristine package is not an Open Source License, in which
e082d7
# case the license is the MIT License). An "Open Source License" is a
e082d7
# license that conforms to the Open Source Definition (Version 1.9)
e082d7
# published by the Open Source Initiative.
e082d7
e082d7
# Please submit bugfixes or comments via https://bugs.opensuse.org/
e082d7
#
e082d7
e082d7
e082d7
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
51d21e
%define skip_python2 1
e082d7
Name:           python-crochet
51d21e
Version:        2.0.0
e082d7
Release:        0
e082d7
Summary:        Use Twisted from any applications
e082d7
License:        MIT
e082d7
Group:          Development/Languages/Python
e082d7
URL:            https://github.com/itamarst/crochet
e082d7
Source:         https://files.pythonhosted.org/packages/source/c/crochet/crochet-%{version}.tar.gz
e082d7
BuildRequires:  %{python_module setuptools}
e082d7
BuildRequires:  fdupes
e082d7
BuildRequires:  python-rpm-macros
e082d7
Requires:       python-Twisted >= 16.0
e082d7
Requires:       python-wrapt
e082d7
BuildArch:      noarch
e082d7
# SECTION test requirements
e082d7
BuildRequires:  %{python_module Twisted >= 16.0}
e082d7
BuildRequires:  %{python_module wrapt}
e082d7
# /SECTION
e082d7
%python_subpackages
e082d7
e082d7
%description
e082d7
Crochet is an MIT-licensed library that makes it easier for blocking or
e082d7
threaded applications like Flask or Django to use the Twisted networking
e082d7
framework.
e082d7
e082d7
%prep
e082d7
%setup -q -n crochet-%{version}
e082d7
e082d7
%build
e082d7
%python_build
e082d7
e082d7
%install
e082d7
%python_install
e082d7
%python_expand %fdupes %{buildroot}%{$python_sitelib}
e082d7
e082d7
%check
e082d7
%pyunittest
e082d7
e082d7
%files %{python_files}
51d21e
%doc README.rst docs/*.rst
e082d7
%license LICENSE
e082d7
%{python_sitelib}/*
e082d7
e082d7
%changelog