Accepting request 738084 from home:1Antoine1:branches:Application:Geo
- Add qgis-3.8.3-reproducible.patch: Sort desktop file content to get a more reproducible build. - Fix unowned directory issues. - Stop disabling post-build-checks. OBS-URL: https://build.opensuse.org/request/show/738084 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/qgis?expand=0&rev=272
This commit is contained in:
committed by
Git OBS Bridge
parent
62fac315e5
commit
11a46e913b
18
qgis.spec
18
qgis.spec
@@ -33,7 +33,8 @@ Source3: qgis_sample_data.zip
|
||||
Patch0: fix_grass_qt511.patch
|
||||
# PATCH-FIX-UPSTREAM Missing include https://github.com/qgis/QGIS/issues/30316
|
||||
Patch1: ef8f06330f57882f740cfe7f8f3659b54b1bb1fb.patch
|
||||
BuildRequires: -post-build-checks
|
||||
# PATCH-FIX-UPSTREAM fix randomness in desktop file translations
|
||||
Patch2: qgis-3.8.3-reproducible.patch
|
||||
BuildRequires: FastCGI-devel
|
||||
BuildRequires: bison >= 2.4
|
||||
BuildRequires: cmake >= 3.0.0
|
||||
@@ -188,6 +189,7 @@ QGIS sample data with raster, vector, gps files and a GRASS location from the Al
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
# Remove bad env and python version in grass plugin
|
||||
sed -i 's,^#!%{_bindir}/env python$,#!%{_bindir}/python3,g' src/plugins/grass/scripts/*.py
|
||||
sed -i 's,^#!%{_bindir}/env python3$,#!%{_bindir}/python3,g' src/plugins/grass/scripts/*.py
|
||||
@@ -241,7 +243,6 @@ ln -s ../qgis/images/icons/qgis-icon-512x512.png %{buildroot}/%{_datadir}/pixmap
|
||||
# Rename .desktop file
|
||||
mv %{buildroot}%{_datadir}/applications/org.qgis.qgis.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
|
||||
|
||||
# Install sample data
|
||||
pushd %{buildroot}%{_datadir}/qgis
|
||||
unzip %{SOURCE3}
|
||||
@@ -256,9 +257,19 @@ popd
|
||||
%{_libdir}/libqgis*so*
|
||||
%{_libdir}/qt5/plugins/sqldrivers/libqsqlspatialite.so
|
||||
%{_mandir}/man1/*
|
||||
%{_datadir}/qgis/*
|
||||
%{_datadir}/qgis
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/pixmaps/qgis.png
|
||||
# Own directories for icon size not provided by hicolor-icon-theme
|
||||
%dir %{_datadir}/icons/hicolor/42x42
|
||||
%dir %{_datadir}/icons/hicolor/42x42/apps
|
||||
%dir %{_datadir}/icons/hicolor/42x42/mimetypes
|
||||
%dir %{_datadir}/icons/hicolor/80x80
|
||||
%dir %{_datadir}/icons/hicolor/80x80/apps
|
||||
%dir %{_datadir}/icons/hicolor/80x80/mimetypes
|
||||
%dir %{_datadir}/icons/hicolor/8x8
|
||||
%dir %{_datadir}/icons/hicolor/8x8/apps
|
||||
%dir %{_datadir}/icons/hicolor/8x8/mimetypes
|
||||
%{_datadir}/icons/hicolor/*/apps/*.png
|
||||
%{_datadir}/icons/hicolor/*/apps/*.svg
|
||||
%{_datadir}/icons/hicolor/*/mimetypes/*.png
|
||||
@@ -293,6 +304,7 @@ popd
|
||||
%endif
|
||||
|
||||
%files sample-data
|
||||
%dir %{_datadir}/qgis
|
||||
%{_datadir}/qgis/%{sampledir}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
Reference in New Issue
Block a user