@@ -251,6 +251,35 @@ endif
251
251
override_dh_auto_install :
252
252
dh_auto_install
253
253
254
+ # remove unwanted files
255
+ $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/doc/api/installdox
256
+ $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/doc/api/html/jquery.js
257
+ $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/doc/api/jquery.js
258
+
259
+ # replace leaflet and jquery urls
260
+ perl -i -p \
261
+ -e 's# http://.*/leaflet.css#leaflet/leaflet.css#;s#http://.*/leaflet.js#leaflet/leaflet.js#;s#http://.*/jquery-.*.min.js#jquery-min.js#' \
262
+ $(CURDIR)/debian/tmp/usr/share/qgis/doc/developersmap.html
263
+
264
+ # Use /usr/bin/python2.7 explicitly for Python Policy compliance
265
+ perl -i -pe 's=# !/usr/bin/env python=#!/usr/bin/python2.7=;' $$(find debian/tmp -name "*.py")
266
+
267
+ # Don't include a copy of the world.tif also included in osgearth-data
268
+ $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/globe/world.tif
269
+
270
+ # remove extra license files
271
+ -find $(CURDIR)/debian/tmp/usr/share/qgis/resources/cpt-city-qgis-min/ -name COPYING.xml -delete
272
+ $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/doc/LICENSE
273
+ $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/python/plugins/db_manager/LICENSE
274
+ $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/python/plugins/MetaSearch/LICENSE.txt
275
+
276
+ # Man pages are installed by dh_installman
277
+ $(RM) $(CURDIR)/debian/tmp/usr/man/man1/qgis.1
278
+ $(RM) $(CURDIR)/debian/tmp/usr/man/man1/qbrowser.1
279
+
280
+ # Don't ship srs.db, automatically updated in postinst with crssync
281
+ mv $(CURDIR)/debian/tmp/usr/share/qgis/resources/srs.db $(CURDIR)/debian/tmp/usr/share/qgis/resources/srs-template.db
282
+
254
283
# Install menu pixmap
255
284
install -o root -g root -d $(CURDIR)/debian/tmp/usr/share/pixmaps
256
285
install -o root -g root -m 644 $(CURDIR)/images/icons/qgis_icon.svg $(CURDIR)/debian/tmp/usr/share/pixmaps/qgis.svg
@@ -306,34 +335,6 @@ override_dh_auto_install:
306
335
install -o root -g root -m 755 $(CURDIR)/debian/qgis.sh $(CURDIR)/debian/qgis/usr/bin/qbrowser
307
336
308
337
override_dh_install :
309
- # Don't ship srs.db, automatically updated in postinst with crssync
310
- mv $(CURDIR ) /debian/tmp/usr/share/qgis/resources/srs.db $(CURDIR ) /debian/tmp/usr/share/qgis/resources/srs-template.db
311
-
312
- perl -i -pe 's=# !/usr/bin/env python=#!/usr/bin/python2.7=;' $$(find debian/tmp -name "*.py")
313
-
314
- # remove unwanted files
315
- $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/doc/api/installdox
316
- $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/doc/api/html/jquery.js
317
- $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/doc/api/jquery.js
318
-
319
- # replace leaflet and jquery urls
320
- perl -i -p \
321
- -e 's# http://.*/leaflet.css#leaflet/leaflet.css#;s#http://.*/leaflet.js#leaflet/leaflet.js#;s#http://.*/jquery-.*.min.js#jquery-min.js#' \
322
- $(CURDIR)/debian/tmp/usr/share/qgis/doc/developersmap.html
323
-
324
- # Don't include a copy of the world.tif also included in osgearth-data
325
- $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/globe/world.tif
326
-
327
- # remove extra license files
328
- -find $(CURDIR)/debian/tmp/usr/share/qgis/resources/cpt-city-qgis-min/ -name COPYING.xml -delete
329
- $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/doc/LICENSE
330
- $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/python/plugins/db_manager/LICENSE
331
- $(RM) $(CURDIR)/debian/tmp/usr/share/qgis/python/plugins/MetaSearch/LICENSE.txt
332
-
333
- # Man pages are installed by dh_installman
334
- $(RM) $(CURDIR)/debian/tmp/usr/man/man1/qgis.1
335
- $(RM) $(CURDIR)/debian/tmp/usr/man/man1/qbrowser.1
336
-
337
338
dh_install --autodest --list-missing
338
339
339
340
override_dh_installchangelogs :
0 commit comments