#3 Fix conditional to work when %fedora is not defined
Opened 4 months ago by sgallagh. Modified 4 months ago
rpms/ sgallagh/python-adal rawhide  into  rawhide

file modified
+7 -4
@@ -4,7 +4,7 @@ 

  

  Name:           python-%{srcname}

  Version:        1.2.7

- Release:        2%{?dist}

+ Release:        3%{?dist}

  Summary:        ADAL for Python

  

  License:        MIT
@@ -26,7 +26,7 @@ 

  BuildRequires:  make

  BuildRequires:  %{py3_dist sphinx}

  BuildRequires:  %{py3_dist sphinx-rtd-theme}

- %if 0%{?fedora} <= 33

+ %if 0%{?fedora} && 0%{?fedora} <= 33

  BuildRequires:  fonts-srpm-macros

  %endif

  BuildArch:      noarch
@@ -45,7 +45,7 @@ 

  

  %package doc

  Summary:        Documentation for %{name}

- %if 0%{?fedora} <= 33

+ %if 0%{?fedora} && 0%{?fedora} <= 33

  Requires:       fontawesome-fonts

  Requires:       google-roboto-slab-fonts

  Requires:       lato-font
@@ -75,7 +75,7 @@ 

  rm docs/build/html/objects.inv

  

  # Drop bundled web fonts in HTML documentation

- %if 0%{?fedora} <= 33

+ %if 0%{?fedora} && 0%{?fedora} <= 33

  pushd docs/build/html/_static/fonts/

  

  for f in fontawesome-webfont.*; do
@@ -117,6 +117,9 @@ 

  

  

  %changelog

+ * Thu Jun 10 2021 Stephen Gallagher <sgallagh@redhat.com> - 1.2.7-3

+ - Fix conditional to work when %%fedora is not defined

+ 

  * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2.7-2

  - Rebuilt for Python 3.10

  

Metadata