|
|
@ -10,6 +10,7 @@ License: GPLv3+
|
|
|
|
URL: https://github.com/adrienverge/yamllint
|
|
|
|
URL: https://github.com/adrienverge/yamllint
|
|
|
|
Source0: https://pypi.python.org/packages/source/y/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
Source0: https://pypi.python.org/packages/source/y/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
Patch0: 0001-Skip-test-on-quoted_strings-failing-if-PyYAML-is-too.patch
|
|
|
|
Patch0: 0001-Skip-test-on-quoted_strings-failing-if-PyYAML-is-too.patch
|
|
|
|
|
|
|
|
Patch1: 0002-Restore-setup.cfg-for-setuptools-below-61.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
Requires: python%{python3_pkgversion}-pathspec
|
|
|
|
Requires: python%{python3_pkgversion}-pathspec
|
|
|
@ -18,6 +19,8 @@ Requires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-wheel
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pip
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pathspec
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pathspec
|
|
|
|
BuildRequires: python%{python3_pkgversion}-PyYAML
|
|
|
|
BuildRequires: python%{python3_pkgversion}-PyYAML
|
|
|
|
|
|
|
|
|
|
|
@ -28,20 +31,20 @@ yamllint does not only check for syntax validity, but for weirdnesses like key
|
|
|
|
repetition and cosmetic problems such as lines length, trailing spaces,
|
|
|
|
repetition and cosmetic problems such as lines length, trailing spaces,
|
|
|
|
indentation, etc.
|
|
|
|
indentation, etc.
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
# Don't use generate_buildrequires/pyproject_buildrequires macros since
|
|
|
|
%pyproject_buildrequires
|
|
|
|
# setuptools ≥ 61 is not available.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{pypi_name}-%{version} -p1
|
|
|
|
%autosetup -n %{pypi_name}-%{version} -p1
|
|
|
|
# Remove bundled egg-info
|
|
|
|
# Remove bundled egg-info
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
|
|
|
|
# Restore old setup.py/setup.cfg usage since setuptools ≥ 61 is not available
|
|
|
|
|
|
|
|
sed -i 's/^setup()$/setup(name="yamllint", version="%{version}")/' setup.py
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
# Must do the subpackages' install first because the scripts in /usr/bin are
|
|
|
|
|
|
|
|
# overwritten with every setup.py install.
|
|
|
|
|
|
|
|
%pyproject_install
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
@ -58,6 +61,7 @@ rm -rf %{pypi_name}.egg-info
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Apr 21 2023 Adrien Vergé <adrienverge@gmail.com> - 1.31.0-1
|
|
|
|
* Fri Apr 21 2023 Adrien Vergé <adrienverge@gmail.com> - 1.31.0-1
|
|
|
|
- Update to latest upstream version
|
|
|
|
- Update to latest upstream version
|
|
|
|
|
|
|
|
- Temporarily restore setup.py/setup.cfg since setuptools ≥ 61 is not available
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 14 2023 Adrien Vergé <adrienverge@gmail.com> - 1.30.0-2
|
|
|
|
* Fri Apr 14 2023 Adrien Vergé <adrienverge@gmail.com> - 1.30.0-2
|
|
|
|
- Update 'check' step to stop using setup.py
|
|
|
|
- Update 'check' step to stop using setup.py
|
|
|
|