Bug 1793029

Summary: python-string_utils fails to build in Fedora: Wrong RHEL 8 conditionals
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-string_utilsAssignee: jkim
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, jkim, jmontleo, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-20 16:03:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1750908, 1785415    

Description Miro Hrončok 2020-01-20 14:16:33 UTC
python-string_utils fails to build:

+ sphinx-build docs/ html
Running Sphinx v2.2.2
making output directory... done
WARNING: html_static_path entry '_static' does not exist
Theme error:
sphinx_rtd_theme is no longer a hard dependency since version 1.4.0. Please install it manually.(pip install sphinx_rtd_theme)


The spec has:
	
%if 0%{?rhel} < 8
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
%else
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx_rtd_theme
%endif


But 0%{?rhel} < 8 is true in Fedora (because 0 < 8), hence the dependency on python3-sphinx_rtd_theme is missing.


This blocks the Python 3.9 rebuild.

Comment 1 Jason Montleon 2020-01-20 16:03:47 UTC
I believe this should be fixed now. Please reopen the bug if you still have trouble. Thanks!