From a50c5e291d800af6a148de5e49718de969e12091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 19 May 2023 15:03:59 +0200 Subject: [PATCH] Spec: Don't mix tabs and spaces, stick with 16-aligned spaces --- python-flit.spec | 57 ++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/python-flit.spec b/python-flit.spec index 95394df..3f0e2ce 100644 --- a/python-flit.spec +++ b/python-flit.spec @@ -8,45 +8,44 @@ # RHEL does not have all the test dependencies %bcond tests %[%{without bootstrap} && ! %[%{defined rhel} && %{undefined epel}]] - -Name: python-flit -Version: 3.8.0 -Release: 2%{?dist} -Summary: Simplified packaging of Python modules +Name: python-flit +Version: 3.8.0 +Release: 2%{?dist} +Summary: Simplified packaging of Python modules # ./flit/log.py under ASL 2.0 license # ./flit/upload.py under PSF license -License: BSD and ASL 2.0 and Python +License: BSD and ASL 2.0 and Python -URL: https://flit.readthedocs.io/en/latest/ -Source0: https://github.com/takluyver/flit/archive/%{version}/flit-%{version}.tar.gz +URL: https://flit.readthedocs.io/en/latest/ +Source0: https://github.com/takluyver/flit/archive/%{version}/flit-%{version}.tar.gz # For the tests -Source1: https://pypi.org/pypi?%3Aaction=list_classifiers#/classifiers.lst +Source1: https://pypi.org/pypi?%3Aaction=list_classifiers#/classifiers.lst -BuildArch: noarch -BuildRequires: python3-devel +BuildArch: noarch +BuildRequires: python3-devel %if %{without bootstrap} -BuildRequires: pyproject-rpm-macros >= 0-40 -BuildRequires: python3-pip +BuildRequires: pyproject-rpm-macros >= 0-40 +BuildRequires: python3-pip %endif %if %{with tests} # Runtime deps, others -BuildRequires: python3-requests -BuildRequires: python3-docutils -BuildRequires: python3-pygments -BuildRequires: python3-tomli-w +BuildRequires: python3-requests +BuildRequires: python3-docutils +BuildRequires: python3-pygments +BuildRequires: python3-tomli-w # Test deps -BuildRequires: /usr/bin/python -BuildRequires: python3-pytest -BuildRequires: python3-responses -BuildRequires: git-core +BuildRequires: /usr/bin/python +BuildRequires: python3-pytest +BuildRequires: python3-responses +BuildRequires: git-core # Test deps that require flit to build: -BuildRequires: python3-testpath -BuildRequires: python3-requests-download +BuildRequires: python3-testpath +BuildRequires: python3-requests-download %endif %global _description %{expand: @@ -67,23 +66,23 @@ so long as they can be imported on Python 3.} %if %{without bootstrap} %package -n python3-flit -Summary: %{summary} -Requires: python3-flit-core = %{version}-%{release} +Summary: %{summary} +Requires: python3-flit-core = %{version}-%{release} # https://pypi.python.org/pypi/tornado # ./flit/log.py unknown version -Provides: bundled(python3dist(tornado)) +Provides: bundled(python3dist(tornado)) # soft dependency: (WARNING) Cannot analyze code. Pygments package not found. -Recommends: python3-pygments +Recommends: python3-pygments %description -n python3-flit %_description %endif %package -n python3-flit-core -Summary: PEP 517 build backend for packages using Flit -Conflicts: python3-flit < 2.1.0-2 +Summary: PEP 517 build backend for packages using Flit +Conflicts: python3-flit < 2.1.0-2 # RPM generators are not yet available when we bootstrap %if %{with bootstrap}