%global srcname crochet %global desc Crochet is an MIT-licensed library that makes it easier to use \ Twisted from regular blocking code. Some use cases include easily using Twisted \ from a blocking framework like Django or Flask, write a library that provides a \ blocking API, but uses Twisted for its implementation, port blocking code to \ Twisted more easily, by keeping a backwards compatibility layer, or allow \ normal Twisted programs that use threads to interact with Twisted more cleanly \ from their threaded parts Name: python-%{srcname} Version: 1.10.0 Release: 5%{?dist} Summary: A library that makes it easier to use Twisted from blocking code License: MIT URL: https://github.com/itamarst/crochet Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch %description %{desc} %package doc Summary: Documentation for python-crochet BuildRequires: python3-sphinx %description doc Documentation for python-crochet. %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel BuildRequires: python3-twisted BuildRequires: python3-wrapt %description -n python3-%{srcname} %{desc} %prep %autosetup -p1 -n %{srcname}-%{version} %build %py3_build make %{?_smp_mflags} -C docs html rm docs/_build/html/.buildinfo %install %py3_install %check %{__python3} -m unittest discover -v crochet.tests %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/crochet/ %{python3_sitelib}/crochet-*.egg-info/ %files doc %license LICENSE %doc docs/_build/html %changelog * Mon May 25 2020 Miro Hrončok - 1.10.0-5 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.10.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Aug 19 2019 Miro Hrončok - 1.10.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jun 06 2019 Jeremy Cline - 1.10.0-1 - Initial package.