11794cb
%global pypi_name typedecorator
11794cb
11794cb
Name:           python-%{pypi_name}
11794cb
Version:        0.0.5
b2e4ead
Release:        13%{?dist}
11794cb
Summary:        Decorator-based type checking library
11794cb
11794cb
License:        MIT
11794cb
URL:            https://github.com/dobarkod/typedecorator/
11794cb
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
11794cb
BuildArch:      noarch
11794cb
11794cb
%description
11794cb
A decorator-based implementation of type checks for Python. Provides
11794cb
@params, @returns and @void decorators for describing the type of the
11794cb
function arguments and return values. If the types mismatch, an exception
11794cb
can be thrown, the mismatch can be logged, or it can be ignored.
11794cb
11794cb
%package -n     python3-%{pypi_name}
11794cb
Summary:        %{summary}
11794cb
11794cb
BuildRequires:  python3-devel
11794cb
BuildRequires:  python3-setuptools
11794cb
%{?python_provide:%python_provide python3-%{pypi_name}}
11794cb
11794cb
%description -n python3-%{pypi_name}
11794cb
A decorator-based implementation of type checks for Python. Provides
11794cb
@params, @returns and @void decorators for describing the type of the
11794cb
function arguments and return values. If the types mismatch, an exception
11794cb
can be thrown, the mismatch can be logged, or it can be ignored.
11794cb
11794cb
%prep
11794cb
%autosetup -n %{pypi_name}-%{version}
11794cb
rm -rf %{pypi_name}.egg-info
11794cb
# Shebang: https://github.com/dobarkod/typedecorator/pull/14
11794cb
sed -i -e '/^#!\//, 1d' typedecorator/__init__.py
11794cb
11794cb
%build
11794cb
%py3_build
11794cb
11794cb
%install
11794cb
%py3_install
11794cb
11794cb
%check
11794cb
%{__python3} tests3.py
11794cb
11794cb
%files -n python3-%{pypi_name}
11794cb
%doc README.md
11794cb
# Missing license: https://github.com/dobarkod/typedecorator/pull/15
11794cb
#%%license LICENSE
11794cb
%{python3_sitelib}/%{pypi_name}/
11794cb
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
11794cb
11794cb
%changelog
b2e4ead
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-13
b2e4ead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
b2e4ead
4c3f66b
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-12
4c3f66b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
4c3f66b
972691c
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-11
972691c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
972691c
a2c7d67
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.0.5-10
a2c7d67
- Rebuilt for Python 3.12
a2c7d67
238ce78
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-9
238ce78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
238ce78
4d6c023
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-8
4d6c023
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
4d6c023
197f6c9
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.0.5-7
197f6c9
- Rebuilt for Python 3.11
197f6c9
50cf702
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-6
50cf702
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
50cf702
5d94989
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-5
5d94989
- Second attempt - Rebuilt for
5d94989
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5d94989
2ac07df
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.0.5-4
2ac07df
- Rebuilt for Python 3.10
2ac07df
0f64fc5
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-3
0f64fc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0f64fc5
a10b183
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-2
a10b183
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a10b183
11794cb
* Sun May 17 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.0.5-1
11794cb
- Initial package for Fedora