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