Skip to content

Commit 1f0fbd1

Browse files
daniviganyalldawson
authored andcommittedMay 21, 2019
[RPM] Fix a dependency on older Fedora releases
1 parent 81aa5f6 commit 1f0fbd1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎rpm/qgis.spec.template

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,13 @@ Obsoletes: python2-%{name} < %{version}-%{release}
176176
Summary: Python integration and plug-ins for QGIS
177177
Requires: %{name}%{?_isa} = %{combinedversion}-%{release}
178178
Requires: gdal-python3
179+
# Starting from Fedora 30 python2-gdal package
180+
# has been renamed to gdal-python-tools
181+
%if 0%{?fedora} >= 30
179182
Requires: gdal-python-tools
183+
%else
184+
Requires: python2-gdal
185+
%endif
180186
Requires: python3-future
181187
Requires: python3-jinja2
182188
Requires: python3-OWSLib

0 commit comments

Comments
 (0)
Please sign in to comment.