%global srcname flake8-class-newline Name: python-%{srcname} Version: 1.6.0 Release: 2%{?dist} Summary: Flake8 extension to check for new lines after class definitions License: MIT URL: https://github.com/AlexanderVanEck/flake8-class-newline Source0: https://github.com/AlexanderVanEck/flake8-class-newline/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch %global _description %{expand: PEP8 says we should surround every class method with a single blank line. However flake8 is ambiguous about the first method having a blank line above it. This plugin was made to enforce that it should.} %description %_description %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel %description -n python%{python3_pkgversion}-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} # Relax maximum test dependency versions sed -i 's/<[=0-9.]*,\?//' requirements-dev.txt %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files flake8_class_newline %check %tox %files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} %doc CHANGELOG.md README.rst %changelog * Tue Nov 22 2022 Scott K Logan - 1.6.0-2 - Define _description variable to reduce duplication - Drop macro from URL to improve ergonomics * Thu Nov 10 2022 Scott K Logan - 1.6.0-1 - Initial package