yamllint/yamllint.spec

68 lines
1.6 KiB
RPMSpec
Raw Normal View History

2019-11-10 12:03:56 +03:00
%global pypi_name yamllint
%define debug %nil
%define debug_package %nil
Name: %{pypi_name}
2025-02-12 11:34:30 +00:00
Version: 1.29.0
2019-11-10 12:03:56 +03:00
Release: 1
Summary: A linter for YAML files
License: GPLv3+
URL: https://github.com/adrienverge/yamllint
2025-02-12 11:34:30 +00:00
#Source0: https://pypi.python.org/packages/source/y/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
2019-11-10 12:03:56 +03:00
Group: Development/Python
BuildArch: noarch
Requires: python3egg(pathspec)
Requires: python3egg(pyyaml)
Requires: python3egg(setuptools)
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(nose)
BuildRequires: python3egg(pathspec)
BuildRequires: python3egg(pyyaml)
2025-02-12 11:34:30 +00:00
BuildRequires: pkgconfig(python-3.8)
BuildRequires: python38-setuptools
BuildRequires: python38-nose
BuildRequires: python38-pathspec
BuildRequires: python38-pyyaml
2019-11-10 12:03:56 +03:00
%description
A linter for YAML files.
yamllint does not only check for syntax validity, but for weirdnesses like key
repetition and cosmetic problems such as lines length, trailing spaces,
indentation, etc.
%prep
%setup -qn %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
%build
%py3_build
2025-02-12 11:34:30 +00:00
%py38_build
2019-11-10 12:03:56 +03:00
%install
%py3_install
2025-02-12 11:34:30 +00:00
pushd %{buildroot}%{_bindir}
mv %{pypi_name} %{pypi_name}3
popd
%py38_install
2019-11-10 12:03:56 +03:00
%check
%{__python3} setup.py test
2025-02-12 11:34:30 +00:00
%{__python3.8} setup.py test
2019-11-10 12:03:56 +03:00
%files
%doc README.rst LICENSE
%{_bindir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-*
2025-02-12 11:34:30 +00:00
%{py38_puresitedir}/%{pypi_name}
%{py38_puresitedir}/%{pypi_name}-*
2019-11-10 12:03:56 +03:00
%changelog