This commit is contained in:
parent
e8c6f102e8
commit
da74e9525f
22
qgis.spec
22
qgis.spec
@ -15,6 +15,7 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%bcond_without grass
|
||||
|
||||
Name: qgis
|
||||
Version: 3.8.0
|
||||
@ -40,7 +41,9 @@ BuildRequires: filesystem
|
||||
BuildRequires: flex >= 2.5.6
|
||||
BuildRequires: geos-devel >= 3.4
|
||||
BuildRequires: gpsbabel
|
||||
%if %{with grass}
|
||||
BuildRequires: grass-devel >= 7.2
|
||||
%endif
|
||||
BuildRequires: libexiv2-devel
|
||||
BuildRequires: libQt5Sql-private-headers-devel
|
||||
BuildRequires: libQt5Sql5-mysql
|
||||
@ -147,6 +150,7 @@ Group: Development/Libraries/C and C++
|
||||
Requires: python3-qt5-devel
|
||||
Requires: qgis = %{version}
|
||||
|
||||
%if %{with grass}
|
||||
%package plugin-grass
|
||||
Summary: GRASS Support Libraries for QGIS
|
||||
Group: Productivity/Graphics/Visualization/Other
|
||||
@ -155,6 +159,10 @@ Requires: grass-docs
|
||||
Requires: qgis = %{version}
|
||||
Obsoletes: qgis-plugin-grass < %{version}
|
||||
|
||||
%description plugin-grass
|
||||
GRASS plugin for QGIS required to interface with GRASS system.
|
||||
%endif
|
||||
|
||||
%package sample-data
|
||||
%define sampledir sample-data
|
||||
Summary: QGIS sample data
|
||||
@ -171,9 +179,6 @@ geotiff). QGIS supports plugins to do things like display tracks from your GPS.
|
||||
%description devel
|
||||
Development packages for QGIS including the C header files.
|
||||
|
||||
%description plugin-grass
|
||||
GRASS plugin for QGIS required to interface with GRASS system.
|
||||
|
||||
%description sample-data
|
||||
QGIS sample data with free raster, vector, gps files and a GRASS location from Alaska area.
|
||||
|
||||
@ -200,9 +205,11 @@ export PATH=$PATH:$QTDIR/bin
|
||||
-DQGIS_LIB_SUBDIR=%{lib} \
|
||||
-DWITH_3D=TRUE \
|
||||
-DWITH_BINDINGS=TRUE \
|
||||
%if %{with grass}
|
||||
-DWITH_GRASS=TRUE \
|
||||
-DWITH_GRASS7=TRUE \
|
||||
-DGRASS_PREFIX7=/opt/grass76\
|
||||
%endif
|
||||
-DWITH_QSPATIALITE=TRUE \
|
||||
-DWITH_SERVER=TRUE \
|
||||
-DWITH_SERVER_PLUGINS=TRUE \
|
||||
@ -255,18 +262,24 @@ popd
|
||||
%{_datadir}/metainfo/org.qgis.qgis.appdata.xml
|
||||
%dir %{_libdir}/qgis/
|
||||
%{_libdir}/qgis/*
|
||||
%if %{with grass}
|
||||
%exclude %{_libdir}/libqgisgrass7.so
|
||||
%exclude %{_libdir}/libqgisgrass7.so.*
|
||||
%exclude %{_libdir}/qgis/libgrassplugin7.so
|
||||
%exclude %{_libdir}/qgis/libgrassprovider7.so
|
||||
%exclude %{_libdir}/qgis/libgrassrasterprovider7.so
|
||||
%exclude %{_libdir}/qgis/grass
|
||||
%endif
|
||||
%license COPYING
|
||||
%doc BUGS README.md
|
||||
|
||||
%files devel
|
||||
%{_includedir}/qgis/*
|
||||
|
||||
%if %{with grass}
|
||||
%post plugin-grass -p /sbin/ldconfig
|
||||
%postun plugin-grass -p /sbin/ldconfig
|
||||
|
||||
%files plugin-grass
|
||||
%{_libdir}/qgis/libgrassplugin7.so
|
||||
%{_libdir}/qgis/libgrassprovider7.so
|
||||
@ -275,12 +288,11 @@ popd
|
||||
%{_libdir}/libqgisgrass7.so.*
|
||||
%defattr(755,root,root)
|
||||
%{_libdir}/qgis/grass
|
||||
%endif
|
||||
|
||||
%files sample-data
|
||||
%{_datadir}/qgis/%{sampledir}
|
||||
|
||||
%post plugin-grass -p /sbin/ldconfig
|
||||
%postun plugin-grass -p /sbin/ldconfig
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user