12
12
# py files located under /usr/share/qgis/python/plugins
13
13
%global __python %{__python3}
14
14
15
+ %define grass grass74
16
+
15
17
%if %{_timestamp} > 0
16
18
# Epoch is set only when building packages from master
17
19
Epoch: %{_timestamp}
20
+ %define combinedversion %{epoch}:%{version}
18
21
%define builddate %(date -d @%{_timestamp} '+%a %b %d %Y')
19
22
%else
23
+ %define combinedversion %{version}
20
24
%define builddate %(date '+%a %b %d %Y')
21
25
%endif
22
26
23
- %define grass grass74
24
-
25
27
Name: qgis
26
28
Version: %{_version}
27
29
Release: %{_relver}%{?dist}
@@ -33,12 +35,15 @@ URL: http://www.qgis.org
33
35
Source0: http://qgis.org/downloads/%{name}-%{version}.tar.bz2
34
36
35
37
# Sample configuration files for QGIS server
36
- Source2: %{name}-server-httpd.conf
37
- Source4: %{name}-server-README.fedora
38
+ Source1: %{name}-server-httpd.conf
39
+ Source2: %{name}-server-nginx.conf
40
+ Source3: %{name}-server-fcgi.socket
41
+ Source4: %{name}-server-fcgi.service
42
+ Source5: %{name}-server-README.fedora
38
43
39
44
# MIME definitions
40
45
# Based on debian/qgis.xml but excluding already defined or proprietary types
41
- Source5 : %{name}-mime.xml
46
+ Source6 : %{name}-mime.xml
42
47
43
48
# Fix builds on 64-bit machines
44
49
# https://issues.qgis.org/issues/15602
@@ -69,6 +74,8 @@ BuildRequires: gsl-devel
69
74
BuildRequires: libzip-devel
70
75
BuildRequires: postgresql-devel
71
76
BuildRequires: sqlite-devel
77
+ BuildRequires: hdf5-devel
78
+ BuildRequires: netcdf-devel
72
79
BuildRequires: fcgi-devel
73
80
74
81
# OpenCL
@@ -131,14 +138,14 @@ and USGS ASCII DEM.
131
138
132
139
%package devel
133
140
Summary: Development Libraries for the QGIS
134
- Requires: %{name}%{?_isa} = %{epoch}:%{version }-%{release}
141
+ Requires: %{name}%{?_isa} = %{combinedversion }-%{release}
135
142
136
143
%description devel
137
144
Development packages for QGIS including the C header files.
138
145
139
146
%package grass
140
147
Summary: GRASS Support Libraries for QGIS
141
- Requires: %{name}%{?_isa} = %{epoch}:%{version }-%{release}
148
+ Requires: %{name}%{?_isa} = %{combinedversion }-%{release}
142
149
143
150
# The plug-in requires more than just the grass-libs.
144
151
# This questions the sense of the libs package.
@@ -153,12 +160,12 @@ GRASS plugin for QGIS required to interface with the GRASS system.
153
160
%package -n python3-qgis
154
161
%{?python_provide:%python_provide python3-qgis}
155
162
# Remove before F30
156
- Provides: %{name}-python = %{version }-%{release}
157
- Provides: %{name}-python%{?_isa} = %{version }-%{release}
163
+ Provides: %{name}-python = %{combinedversion }-%{release}
164
+ Provides: %{name}-python%{?_isa} = %{combinedversion }-%{release}
158
165
Obsoletes: %{name}-python < %{version}-%{release}
159
166
Obsoletes: python2-%{name} < %{version}-%{release}
160
167
Summary: Python integration and plug-ins for QGIS
161
- Requires: %{name}%{?_isa} = %{epoch}:%{version }-%{release}
168
+ Requires: %{name}%{?_isa} = %{combinedversion }-%{release}
162
169
Requires: gdal-python3
163
170
Requires: python3-future
164
171
Requires: python3-jinja2
@@ -176,16 +183,15 @@ Python integration and plug-ins for QGIS.
176
183
177
184
%package server
178
185
Summary: FCGI-based OGC web map server
179
- Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
180
- Requires: mod_fcgid
186
+ Requires: %{name}%{?_isa} = %{combinedversion}-%{release}
181
187
Provides: mapserver = %{version}-%{release}
182
188
Obsoletes: mapserver < 2.8.1-1
183
189
184
190
%description server
185
191
This FastCGI OGC web map server implements OGC WMS 1.3.0 and 1.1.1.
186
192
The services are prepared as regular projects in QGIS. They're rendered using
187
193
the QGIS libraries. The server also supports SLD (Styled Layer Descriptor)
188
- for styling. Sample configurations for Httpd and Lighttpd are included.
194
+ for styling. Sample configurations for HTTPD and Nginx are included.
189
195
190
196
Please refer to %{name}-server-README.fedora for details!
191
197
@@ -196,8 +202,12 @@ Please refer to %{name}-server-README.fedora for details!
196
202
# Remove executable permissions from source code files
197
203
find . \( -name "*.cpp" -o -name "*.h" \) -type f -perm /111 -execdir chmod -x {} \+
198
204
199
- # Readme file for QGIS server configuration and Lighttpd example
205
+ # Readme file for QGIS server configuration HTTPD and Nginx example
206
+ install -pm0644 %{SOURCE1} .
207
+ install -pm0644 %{SOURCE2} .
208
+ install -pm0644 %{SOURCE3} .
200
209
install -pm0644 %{SOURCE4} .
210
+ install -pm0644 %{SOURCE5} .
201
211
202
212
gzip ChangeLog
203
213
@@ -228,14 +238,9 @@ make install DESTDIR=%{buildroot}
228
238
229
239
# Install MIME type definitions
230
240
install -d %{buildroot}%{_datadir}/mime/packages
231
- install -pm0644 %{SOURCE5 } \
241
+ install -pm0644 %{SOURCE6 } \
232
242
%{buildroot}%{_datadir}/mime/packages/%{name}.xml
233
243
234
- # Install basic QGIS Mapserver configuration for Apache
235
- install -pd %{buildroot}%{_sysconfdir}/httpd/conf.d
236
- install -pm0644 %{SOURCE2} \
237
- %{buildroot}%{_sysconfdir}/httpd/conf.d/qgis-server.conf
238
-
239
244
# See qgis-server-README.fedora
240
245
rm -f %{buildroot}%{_libexecdir}/%{name}/wms_metadata.xml
241
246
rm -f %{buildroot}%{_libexecdir}/%{name}/admin.sld
@@ -328,7 +333,7 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
328
333
329
334
%files server
330
335
%doc src/server/admin.sld src/server/wms_metadata.xml %{name}-server-README.fedora
331
- %config(noreplace) %{_sysconfdir}/ httpd/conf.d/ %{name}-server.conf
336
+ %doc %{name}-server- httpd.conf %{name}-server-nginx .conf %{name}-server-fcgi.socket %{name}-server-fcgi.service
332
337
%{_libdir}/%{name}/server/
333
338
%{_libdir}/lib%{name}_server.so.*
334
339
%{_libexecdir}/%{name}/
0 commit comments