Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37733321
en ru br
Репозитории ALT

Группа :: Разработка/Python
Пакет: python3-module-yamllint

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define pypi_name yamllint

%def_with check

Name: python3-module-%pypi_name
Version: 1.32.0
Release: alt1
Summary: A linter for YAML files
License: GPLv3
Group: Development/Python
Url: https://pypi.org/project/yamllint/
Vcs: https://github.com/adrienverge/yamllint
BuildArch: noarch
Source0: %name-%version.tar
Source1: %pyproject_deps_config_name
Provides: yamllint = %EVR
Obsoletes: yamllint <= 1.24.2-alt1

%pyproject_runtimedeps_metadata
BuildRequires(pre): rpm-build-pyproject
%pyproject_builddeps_build
%if_with check
BuildRequires: /dev/pts
%pyproject_builddeps_metadata
%endif

BuildRequires: python3-module-sphinx-sphinx-build-symlink

%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
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata

%build
%pyproject_build

# man page

pushd docs
make man
popd

%install
%pyproject_install

# man page

install -D -m0644 docs/_build/man/yamllint.1 %buildroot/%_man1dir/yamllint.1

%check
%pyproject_run_unittest discover

%files
%doc README.rst CHANGELOG.rst
%_man1dir/yamllint.1.*

%_bindir/yamllint
%python3_sitelibdir/yamllint/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin