086af9d
%global pkg_name restructuredtext-lint
086af9d
%global pypi_name restructuredtext_lint
086af9d
%global desc Lint reStructuredText linter files with an API or a CLI.\
086af9d
It reports errors and warning including:\
086af9d
- Unknown directives\
086af9d
- Wrong usage of directives\
086af9d
- Inconsistencies in title levels\
086af9d
- Unexpected unindent
086af9d
086af9d
086af9d
Name:           python-%{pkg_name}
3c6aa78
Version:        1.4.0
8136212
Release:        8%{?dist}
086af9d
Summary:        reStructuredText linter
086af9d
086af9d
License:        Unlicense
086af9d
URL:            https://pypi.python.org/pypi/restructuredtext_lint
3c6aa78
Source0:        https://files.pythonhosted.org/packages/48/9c/6d8035cafa2d2d314f34e6cd9313a299de095b26e96f1c7312878f988eec/restructuredtext_lint-1.4.0.tar.gz
7fde660
Source1:        pytest.ini
f31bf19
086af9d
BuildArch:      noarch
086af9d
086af9d
%description
086af9d
%{desc}
086af9d
086af9d
086af9d
%package -n     python3-%{pkg_name}
086af9d
Summary:        %{summary}
086af9d
BuildArch:      noarch
086af9d
BuildRequires:  python3-devel
0b40f8c
BuildRequires:  python3-setuptools
7fde660
BuildRequires:  python3-pytest
086af9d
BuildRequires:  python3-PyYAML >= 3.11
086af9d
BuildRequires:  python3-docutils >= 0.11
086af9d
BuildRequires:  python3-docutils < 1.0
086af9d
Requires:       python3-docutils >= 0.11
086af9d
Requires:       python3-docutils < 1.0
086af9d
%{?python_provide:%python_provide python3-%{pkg_name}}
086af9d
086af9d
%description -n python3-%{pkg_name}
086af9d
%{desc}
086af9d
086af9d
086af9d
%prep
f31bf19
%autosetup -n %{pypi_name}-%{version} -p1
7fde660
cp -a %{SOURCE1} .
086af9d
# Remove pyc files from source
086af9d
find -name '*.pyc' -delete
086af9d
086af9d
086af9d
%build
086af9d
%py3_build
086af9d
086af9d
086af9d
%install
086af9d
%py3_install
086af9d
086af9d
086af9d
%check
7fde660
PYTHONPATH="$(pwd)" pytest-%{python3_version} -v
086af9d
086af9d
086af9d
%files -n python3-%{pkg_name}
086af9d
%doc README.rst
086af9d
%license UNLICENSE
086af9d
%{_bindir}/rst-lint
086af9d
%{_bindir}/restructuredtext-lint
086af9d
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
086af9d
%{python3_sitelib}/%{pypi_name}/
086af9d
086af9d
086af9d
%changelog
8136212
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-8
8136212
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
8136212
15ba14d
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-7
15ba14d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
15ba14d
f1e139f
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-6
f1e139f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
f1e139f
a6d0999
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.4.0-5
a6d0999
- Rebuilt for Python 3.12
a6d0999
7fde660
* Thu Feb 02 2023 Julien Enselme <jujens@jujens.eu> - 1.4.0-4
7fde660
- Update SPEC to build on EPEL9
7fde660
c30b658
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
c30b658
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
c30b658
14f52a0
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
14f52a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
14f52a0
3c6aa78
* Wed Jun 29 2022 Julien Enselme <jujens@jujens.eu> - 1.4.0-1
3c6aa78
- Update to 1.4.0
3c6aa78
a4f75ba
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.3.1-7
a4f75ba
- Rebuilt for Python 3.11
a4f75ba
3a81b1f
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-6
3a81b1f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3a81b1f
0265adf
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
0265adf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0265adf
7abe5ce
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3.1-4
7abe5ce
- Rebuilt for Python 3.10
7abe5ce
ba5fedd
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
ba5fedd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ba5fedd
6def85d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
6def85d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6def85d
b2a977f
* Sat Jul 18 2020 Julien Enselme <jujens@jujens.eu> - 1.3.1-1
b2a977f
- Update to 1.3.1
b2a977f
1e141db
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-6
1e141db
- Rebuilt for Python 3.9
1e141db
c391057
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-5
c391057
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c391057
7f89da6
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-4
7f89da6
- Rebuilt for Python 3.8.0rc1 (#1748018)
7f89da6
b160f67
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-3
b160f67
- Rebuilt for Python 3.8
b160f67
c246566
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
c246566
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c246566
b5a9203
* Sun Mar 24 2019 Julien Enselme <jujens@jujens.eu> - 1.3.0-1
b5a9203
- Update to 1.3.0
b5a9203
22e3d82
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-5
22e3d82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
22e3d82
69532b1
* Tue Oct 02 2018 Julien Enselme <jujens@jujens.eu> - 1.1.3-4
69532b1
- Remove Python 2 subpackage (#1629792)
69532b1
18b2ec3
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
18b2ec3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
18b2ec3
056e08e
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-2
056e08e
- Rebuilt for Python 3.7
056e08e
bbaac25
* Mon Feb 26 2018 Julien Enselme <jujens@jujens.eu> - 1.1.3-1
bbaac25
- Update to 1.1.3
bbaac25
eb1d66f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-3
eb1d66f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
eb1d66f
fec0351
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.2-2
fec0351
- Update Python 2 dependency declarations to new packaging standards
fec0351
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
fec0351
44221c0
* Tue Nov 14 2017 Julien Enselme <jujens@jujens.eu> - 1.1.2-1
44221c0
- Update to 1.1.2
44221c0
832cb08
* Sat Aug 05 2017 Julien Enselme <jujens@jujens.eu> - 1.1.0-1
832cb08
- Update to 1.1.0
832cb08
28b842e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
28b842e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
28b842e
eb87a2b
* Fri Mar 17 2017 Julien Enselme <jujens@jujens.eu> - 1.0.1-1
eb87a2b
- Update to 1.0.1
eb87a2b
b4662e9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.2-5
b4662e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b4662e9
7c91493
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.17.2-4
7c91493
- Rebuild for Python 3.6
7c91493
086af9d
* Sun Oct 30 2016 Julien Enselme <jujens@jujens.eu> - 0.17.2-3
086af9d
- Correct typos in description
086af9d
- Use -delete option in find to delete pyc files
086af9d
086af9d
* Sun Oct 30 2016 Julien Enselme <jujens@jujens.eu> - 0.17.2-2
086af9d
- Expand description
086af9d
- Rename package from python-restructuredtext_lint to python-restructuredtext-lint
086af9d
- Use only on executable
086af9d
086af9d
* Tue Oct 11 2016 Julien Enselme <jujens@jujens.eu> - 0.17.2-1
086af9d
- Inital package