Clause in 0%{?rhel} >= 8 similar in value to 0%{?fedora}
This commit is contained in:
		
							parent
							
								
									78515a2851
								
							
						
					
					
						commit
						727d7901c5
					
				| @ -1,6 +1,6 @@ | ||||
| %global pypi_name packaging | ||||
| 
 | ||||
| %if 0%{?fedora} | ||||
| %if 0%{?fedora} || 0%{?rhel} >= 8 | ||||
| %global build_wheel 1 | ||||
| %global with_python3 1 | ||||
| %endif | ||||
| @ -22,7 +22,7 @@ Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{ | ||||
| BuildArch:      noarch | ||||
| 
 | ||||
| # Dependencies with different names in Fedora and Epel7 | ||||
| %if 0%{?fedora} | ||||
| %if 0%{?fedora} || 0%{?rhel} >= 8 | ||||
| BuildRequires:  python2-setuptools | ||||
| BuildRequires:  python2-devel | ||||
| BuildRequires:  python2-pytest | ||||
| @ -71,7 +71,7 @@ dealing with versions, specifiers, markers etc. | ||||
| Summary:        %{summary} | ||||
| %{?python_provide:%python_provide python2-%{pypi_name}} | ||||
| 
 | ||||
| %if 0%{?fedora} | ||||
| %if 0%{?fedora} || 0%{?rhel} >= 8 | ||||
| Requires:       python2-pyparsing | ||||
| %else | ||||
| Requires:       pyparsing | ||||
| @ -148,7 +148,7 @@ rm -rf html/_static/fonts/ | ||||
| %endif | ||||
| 
 | ||||
| %check | ||||
| %if 0%{?fedora} | ||||
| %if 0%{?fedora} || 0%{?rhel} >= 8 | ||||
| %{__python2} -m pytest tests/ | ||||
| %{__python3} -m pytest tests/ | ||||
| %else | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user