#4 make epel8 conditionals parseable non-el8 platforms
Merged 3 years ago by jcaratzas. Opened 3 years ago by ktdreyer.
rpms/ ktdreyer/python-cheroot epel8-conditionals  into  epel8

file modified
+2 -2
@@ -33,7 +33,7 @@ 

  BuildRequires:  python3dist(pytest-mock)

  BuildRequires:  python3dist(jaraco.functools)

  

- %if %{?el8}

+ %if 0%{?el8}

  BuildRequires:  python3-setuptools_scm

  BuildRequires:  python3dist(more-itertools) >= 2.6

  %else
@@ -86,7 +86,7 @@ 

  sed -i 's/ --testmon//' pytest.ini

  sed -i 's/ -n auto//' pytest.ini

  sed -i '/pytest-testmon/d' setup.cfg

- %if %{?el8}

+ %if 0%{?el8}

  # drop setuptools_scm_git_archive

  sed -i '/setuptools_scm_git_archive/d' setup.cfg

  %endif

Add a "0" to make the conditionals evaluate to "false" on non-el8 platforms

Pull-Request has been merged by jcaratzas

3 years ago