From 5b01b4a34554b4374342fab57c61783fb24f36cd Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Jan 16 2023 16:11:33 +0000 Subject: init --- diff --git a/python-types-python-dateutil.spec b/python-types-python-dateutil.spec new file mode 100644 index 0000000..b6df49e --- /dev/null +++ b/python-types-python-dateutil.spec @@ -0,0 +1,61 @@ +%global _description %{expand: +This is a PEP 561 type stub package for the python-dateutil package. It can be +used by type-checking tools like mypy, PyCharm, pytype etc. to check code that +uses python-dateutil. The source for this package can be found at +https://github.com/python/typeshed/tree/main/stubs/python-dateutil. All fixes +for types and metadata should be contributed there. + +See https://github.com/python/typeshed/blob/main/README.md for more details. +This package was generated from typeshed commit +bff43b53e50adf873c20faebb125a5fe808d4ad6.} + +Name: python-types-python-dateutil +Version: 2.8.19.5 +Release: %{autorelease} +Summary: Typing stubs for dateutil + + +License: Apache-2.0 +URL: https://pypi.org/pypi/types-dateutil +Source0: %{pypi_source types-python-dateutil} +# not included in pypi tar +Source1: https://github.com/python/typeshed/raw/main/LICENSE + +BuildArch: noarch + +%description %_description + +%package -n python3-types-python-dateutil +Summary: %{summary} +BuildRequires: python3-devel + +%description -n python3-types-python-dateutil %_description + +%prep +%autosetup -n types-python-dateutil-%{version} +cp %SOURCE1 . + +# 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 dateutil-stubs + +%check +%pyproject_check_import dateutil-stubs + +%files -n python3-types-python-dateutil -f %{pyproject_files} +%doc CHANGELOG.md + +%changelog +%autochangelog