12
12
# py files located under /usr/share/qgis/python/plugins
13
13
%global __python %{__python3}
14
14
15
+ %if 0%{?fedora} >= 30
16
+ %define grass grass76
17
+ %else
18
+ %define grass grass74
19
+ %endif
20
+
15
21
%if %{_timestamp} > 0
16
22
# Epoch is set only when building packages from master
17
23
Epoch: %{_timestamp}
24
+ %define combinedversion %{epoch}:%{version}
18
25
%define builddate %(date -d @%{_timestamp} '+%a %b %d %Y')
19
26
%else
27
+ %define combinedversion %{version}
20
28
%define builddate %(date '+%a %b %d %Y')
21
29
%endif
22
30
23
- %define grass grass74
24
-
25
31
Name: qgis
26
32
Version: %{_version}
27
33
Release: %{_relver}%{?dist}
@@ -64,10 +70,13 @@ BuildRequires: spatialindex-devel
64
70
BuildRequires: grass-devel
65
71
66
72
# Other stuff
73
+ BuildRequires: exiv2-devel
67
74
BuildRequires: gsl-devel
68
75
BuildRequires: libzip-devel
69
76
BuildRequires: postgresql-devel
70
77
BuildRequires: sqlite-devel
78
+ BuildRequires: hdf5-devel
79
+ BuildRequires: netcdf-devel
71
80
BuildRequires: fcgi-devel
72
81
73
82
# OpenCL
@@ -130,14 +139,14 @@ and USGS ASCII DEM.
130
139
131
140
%package devel
132
141
Summary: Development Libraries for the QGIS
133
- Requires: %{name}%{?_isa} = %{epoch}:%{version }-%{release}
142
+ Requires: %{name}%{?_isa} = %{combinedversion }-%{release}
134
143
135
144
%description devel
136
145
Development packages for QGIS including the C header files.
137
146
138
147
%package grass
139
148
Summary: GRASS Support Libraries for QGIS
140
- Requires: %{name}%{?_isa} = %{epoch}:%{version }-%{release}
149
+ Requires: %{name}%{?_isa} = %{combinedversion }-%{release}
141
150
142
151
# The plug-in requires more than just the grass-libs.
143
152
# This questions the sense of the libs package.
@@ -152,12 +161,12 @@ GRASS plugin for QGIS required to interface with the GRASS system.
152
161
%package -n python3-qgis
153
162
%{?python_provide:%python_provide python3-qgis}
154
163
# Remove before F30
155
- Provides: %{name}-python = %{version }-%{release}
156
- Provides: %{name}-python%{?_isa} = %{version }-%{release}
164
+ Provides: %{name}-python = %{combinedversion }-%{release}
165
+ Provides: %{name}-python%{?_isa} = %{combinedversion }-%{release}
157
166
Obsoletes: %{name}-python < %{version}-%{release}
158
167
Obsoletes: python2-%{name} < %{version}-%{release}
159
168
Summary: Python integration and plug-ins for QGIS
160
- Requires: %{name}%{?_isa} = %{epoch}:%{version }-%{release}
169
+ Requires: %{name}%{?_isa} = %{combinedversion }-%{release}
161
170
Requires: gdal-python3
162
171
Requires: python3-future
163
172
Requires: python3-jinja2
@@ -175,7 +184,7 @@ Python integration and plug-ins for QGIS.
175
184
176
185
%package server
177
186
Summary: FCGI-based OGC web map server
178
- Requires: %{name}%{?_isa} = %{epoch}:%{version }-%{release}
187
+ Requires: %{name}%{?_isa} = %{combinedversion }-%{release}
179
188
Requires: mod_fcgid
180
189
Provides: mapserver = %{version}-%{release}
181
190
Obsoletes: mapserver < 2.8.1-1
@@ -244,6 +253,8 @@ rm -f %{buildroot}%{_datadir}/%{name}/doc/INSTALL*
244
253
245
254
%find_lang %{name} --with-qt
246
255
256
+ # TODO: Remove after F28 EoL
257
+ # Ref: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
247
258
%post
248
259
/sbin/ldconfig
249
260
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -269,6 +280,7 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
269
280
%post -n python3-qgis -p /sbin/ldconfig
270
281
271
282
%postun -n python3-qgis -p /sbin/ldconfig
283
+ # END TODO #
272
284
273
285
%files -f %{name}.lang
274
286
%doc BUGS NEWS Exception_to_GPL_for_Qt.txt ChangeLog.gz
0 commit comments