Stephen Kitt a7f9e90
Summary: Git commit message linting tool
Stephen Kitt a7f9e90
Name: gitlint
Stephen Kitt cd85c02
Version: 0.15.0
a8e6ae6
Release: 12%{?dist}
Stephen Kitt a7f9e90
License: MIT
Stephen Kitt a7f9e90
Source: %pypi_source
Stephen Kitt a7f9e90
Patch0: strict-dependencies.patch
Stephen Kitt a7f9e90
URL: https://jorisroovers.github.io/gitlint
Stephen Kitt a7f9e90
BuildArch: noarch
Stephen Kitt a7f9e90
BuildRequires: python3-devel
Stephen Kitt a7f9e90
BuildRequires: python3-setuptools
Stephen Kitt 87286f3
BuildRequires: %{py3_dist Click} >= 7.1.2
Stephen Kitt 87286f3
BuildRequires: %{py3_dist arrow} >= 0.15.6
Stephen Kitt 87286f3
BuildRequires: %{py3_dist sh} >= 1.13.1
Stephen Kitt 7c3515b
BuildRequires: %{py3_dist coverage}
Stephen Kitt a7f9e90
BuildRequires: git-core
Stephen Kitt a7f9e90
Requires: git-core
Stephen Kitt a7f9e90
Stephen Kitt a7f9e90
%description
Stephen Kitt a7f9e90
gitlint checks git commit messages for style, using validations based on
Stephen Kitt a7f9e90
well-known community standards or on checks which have proved useful:
Stephen Kitt a7f9e90
maximum title length, trailing white-space checks, punctuation, tabs,
Stephen Kitt a7f9e90
minimum body length, valid email addresses...
Stephen Kitt a7f9e90
Stephen Kitt a7f9e90
%prep
Stephen Kitt a7f9e90
%autosetup -p1
Stephen Kitt a7f9e90
Stephen Kitt a7f9e90
%build
Stephen Kitt a7f9e90
%py3_build
Stephen Kitt a7f9e90
Stephen Kitt a7f9e90
%check
Stephen Kitt ea70612
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m coverage run --omit='/usr/*,$(pwd)/gitlint/tests/*,$(pwd)/gitlint/qa/*' -m unittest discover -v -s $(pwd)/gitlint/tests
Stephen Kitt a7f9e90
Stephen Kitt a7f9e90
%install
Stephen Kitt a7f9e90
%py3_install
Stephen Kitt ea70612
rm -rf %{buildroot}%{python3_sitelib}/qa
Stephen Kitt a7f9e90
Stephen Kitt a7f9e90
%files
Stephen Kitt a7f9e90
%license LICENSE
Stephen Kitt a7f9e90
%doc README.md
Stephen Kitt a7f9e90
%{python3_sitelib}/%{name}-*.egg-info/
Stephen Kitt a7f9e90
%{python3_sitelib}/%{name}/
Stephen Kitt a7f9e90
%{_bindir}/gitlint
Stephen Kitt a7f9e90
Stephen Kitt a7f9e90
%changelog
a8e6ae6
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-12
a8e6ae6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
a8e6ae6
3abe6cb
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-11
3abe6cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3abe6cb
b45c385
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-10
b45c385
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
b45c385
2e1bbff
* Tue Jun 27 2023 Python Maint <python-maint@redhat.com> - 0.15.0-9
2e1bbff
- Rebuilt for Python 3.12
2e1bbff
df767b1
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-8
df767b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
df767b1
7c3049a
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-7
7c3049a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
7c3049a
965a6b8
* Mon Jun 20 2022 Python Maint <python-maint@redhat.com> - 0.15.0-6
965a6b8
- Rebuilt for Python 3.11
965a6b8
dc0a151
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-5
dc0a151
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
dc0a151
8bb6366
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-4
8bb6366
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8bb6366
085107f
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.15.0-3
085107f
- Rebuilt for Python 3.10
085107f
891d4bc
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-2
891d4bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
891d4bc
Stephen Kitt cd85c02
* Fri Nov 27 2020 Stephen Kitt <skitt@fedoraproject.org> - 0.15.0-1
Stephen Kitt cd85c02
- new upstream release
Stephen Kitt cd85c02
Stephen Kitt a7f9e90
* Mon Sep 14 2020 Stephen Kitt <skitt@fedoraproject.org> - 0.13.1-1
Stephen Kitt a7f9e90
- initial package