disable python
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=114
This commit is contained in:
parent
734a90427c
commit
e14ba9d7cf
@ -17,6 +17,7 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%bcond_with python
|
||||
%bcond_with ruby
|
||||
|
||||
#
|
||||
@ -71,8 +72,6 @@ BuildRequires: postgresql-devel >= 9.1
|
||||
BuildRequires: postgresql-server-devel >= 9.1
|
||||
%endif
|
||||
BuildRequires: proj
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: libprotobuf-c-devel
|
||||
BuildRequires: protobuf-c
|
||||
BuildRequires: readline-devel
|
||||
@ -137,16 +136,19 @@ Obsoletes: mapserver-perl < %{version}-%{release}
|
||||
The Perl/Mapscript extension provides full map customization capabilities
|
||||
within the Perl programming language.
|
||||
|
||||
%if %{with python}
|
||||
%package -n python-mapscript
|
||||
Summary: Python/Mapscript map making extensions to Python
|
||||
Group: Development/Languages/Python
|
||||
%if %{suse_version} >= 1500
|
||||
%define python_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
Requires: python3-base
|
||||
%else
|
||||
%define python_sitearch %(python2 -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
Requires: python2-base
|
||||
%endif
|
||||
Requires: %{libname} = %{version}-%{release}
|
||||
@ -156,6 +158,7 @@ Obsoletes: mapserver-python < %{version}-%{release}
|
||||
%description -n python-mapscript
|
||||
The Python/Mapscript extension provides full map customization capabilities
|
||||
within the Python programming language.
|
||||
%endif
|
||||
|
||||
%package -n libjavamapscript
|
||||
Summary: Java/Mapscript map making extensions to Java
|
||||
@ -247,7 +250,9 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DWITH_POSTGIS=TRUE \
|
||||
-DWITH_PROJ=TRUE \
|
||||
-DWITH_PROTOBUFC=TRUE \
|
||||
%if %{with python}
|
||||
-DWITH_PYTHON=TRUE \
|
||||
%endif
|
||||
%if %{with ruby}
|
||||
-DWITH_RUBY=TRUE \
|
||||
%endif
|
||||
@ -364,12 +369,14 @@ rm -rf %{buildroot}
|
||||
%{perl_vendorarch}/auto/mapscript/*
|
||||
%{perl_vendorarch}/mapscript.pm
|
||||
|
||||
%if %{with python}
|
||||
%files -n python-mapscript
|
||||
%defattr(-,root,root)
|
||||
%doc mapscript/python/README.rst
|
||||
%doc mapscript/python/examples
|
||||
%doc mapscript/python/tests
|
||||
%{python_sitearch}/*
|
||||
%endif
|
||||
|
||||
%files -n libjavamapscript
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user