yamllint/yamllint.spec
2019-11-10 12:03:56 +03:00

50 lines
1.2 KiB
RPMSpec

%global pypi_name yamllint
%define debug %nil
%define debug_package %nil
Name: %{pypi_name}
Version: 1.18.0
Release: 1
Summary: A linter for YAML files
License: GPLv3+
URL: https://github.com/adrienverge/yamllint
Source0: https://pypi.python.org/packages/source/y/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
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)
%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
%install
%py3_install
%check
%{__python3} setup.py test
%files
%doc README.rst LICENSE
%{_bindir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-*
%changelog