OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/gitlint?expand=0&rev=16
65 lines
2.0 KiB
RPMSpec
65 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package gitlint
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global pythons %primary_python
|
|
Name: gitlint
|
|
Version: 0.18.0
|
|
Release: 0
|
|
Summary: Git commit message linter checking
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/jorisroovers/%{name}
|
|
Source: https://pypi.io/packages/source/g/%{name}-core/%{name}-core-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-arrow >= 1
|
|
Requires: python-click >= 8
|
|
Requires: python-sh >= 1.13.0
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Great for use as a commit-msg git hook or as part of your gating script in
|
|
a CI/CD pipeline (e.g. jenkins). Many of the gitlint validations are based
|
|
on well-known community standards, others are based on checks that we've
|
|
found useful throughout the years. Gitlint has sane defaults, but you can
|
|
also easily customize it to your own liking.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-core-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%fdupes %{buildroot}%{_prefix}
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%{_bindir}/gitlint
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|