1b1ba29
%bcond_without check
1b1ba29
%global pypi_name cfgv
1b1ba29
1b1ba29
Name:           python-%{pypi_name}
1b1ba29
Version:        2.0.1
0614014
Release:        7%{?dist}
1b1ba29
Summary:        Validate configuration and produce human readable error messages
1b1ba29
1b1ba29
License:        MIT
1b1ba29
URL:            https://github.com/asottile/cfgv
1b1ba29
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
1b1ba29
BuildArch:      noarch
1b1ba29
1b1ba29
BuildRequires:  python3-devel
1b1ba29
BuildRequires:  python3dist(setuptools)
1b1ba29
1b1ba29
%if %{with check}
1b1ba29
BuildRequires:  python3dist(six)
1b1ba29
BuildRequires:  python3-mock
1b1ba29
BuildRequires:  python3-pytest
1b1ba29
%endif
1b1ba29
1b1ba29
%?python_enable_dependency_generator
1b1ba29
1b1ba29
%description
1b1ba29
%{summary}.
1b1ba29
1b1ba29
1b1ba29
%package -n     python3-%{pypi_name}
1b1ba29
Summary:        %{summary}
1b1ba29
%{?python_provide:%python_provide python3-%{pypi_name}}
1b1ba29
1b1ba29
%description -n python3-%{pypi_name}
1b1ba29
%{summary}.
1b1ba29
1b1ba29
1b1ba29
%prep
1b1ba29
%autosetup -n %{pypi_name}-%{version}
1b1ba29
# Remove bundled egg-info
1b1ba29
rm -rf %{pypi_name}.egg-info
1b1ba29
1b1ba29
%build
1b1ba29
%py3_build
1b1ba29
1b1ba29
%install
1b1ba29
%py3_install
1b1ba29
1b1ba29
%if %{with check}
1b1ba29
%check
1b1ba29
%{python3} -m pytest -v
1b1ba29
%endif
1b1ba29
1b1ba29
%files -n python3-%{pypi_name}
1b1ba29
%license LICENSE
1b1ba29
%doc README.md
1b1ba29
%{python3_sitelib}/__pycache__/*
1b1ba29
%{python3_sitelib}/%{pypi_name}.py
1b1ba29
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
1b1ba29
1b1ba29
%changelog
0614014
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-7
0614014
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0614014
514f656
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
514f656
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
514f656
ca265bf
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 2.0.1-5
ca265bf
- Rebuilt for Python 3.9
ca265bf
bcb0809
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
bcb0809
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bcb0809
1b1ba29
* Thu Oct 24 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 2.0.1-3
1b1ba29
- Initial package