From 0bfde62d6758662fd24d5c0e7c6e7af8baee4b97 Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Jan 12 2023 18:30:50 +0000 Subject: init --- diff --git a/python-types-docutils.spec b/python-types-docutils.spec new file mode 100644 index 0000000..4c1db5c --- /dev/null +++ b/python-types-docutils.spec @@ -0,0 +1,59 @@ +%global _description %{expand: +This is a PEP 561 type stub package for the docutils package. It can be used by +type-checking tools like mypy, PyCharm, pytype etc. to check code that uses +docutils. The source for this package can be found at +https://github.com/python/typeshed/tree/master/stubs/docutils. All fixes for +types and metadata should be contributed there. + +See https://github.com/python/typeshed/blob/master/README.md for more details. +This package was generated from typeshed commit +ce4668a1328cfbdccc0137cdf9b9bd5c64120a6c.} + +Name: python-types-docutils +Version: 0.19.1.1 +Release: %{autorelease} +Summary: Typing stubs for docutils + + +License: Apache-2.0 +URL: https://pypi.org/pypi/types-docutils +Source0: %{pypi_source types-docutils} + +BuildArch: noarch + +%description %_description + +%package -n python3-types-docutils +Summary: %{summary} +BuildRequires: python3-devel + +%description -n python3-types-docutils %_description + +%prep +%autosetup -n types-docutils-%{version} + +# Comment out to remove /usr/bin/env shebangs +# Can use something similar to correct/remove /usr/bin/python shebangs also +# find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' + +# see pyproject-rpm-macros documentation for more forms +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files types-docutils + +%check +%{pytest} +# or %%{tox} + +%files -n python3-types-docutils -f %{pyproject_files} +%doc README.rst + +%changelog +%autochangelog