forked from pool/mapserver
update to 7.2.0-beta1 to support Leap 15.0
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=105
This commit is contained in:
parent
7d71e76be0
commit
e28b6719f0
8836
5461.patch
Normal file
8836
5461.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,6 +2,8 @@
|
|||||||
Thu Jun 7 11:51:11 UTC 2018 - opensuse@dstoecker.de
|
Thu Jun 7 11:51:11 UTC 2018 - opensuse@dstoecker.de
|
||||||
|
|
||||||
- update to 7.2.0-beta1 to support Leap 15.0
|
- update to 7.2.0-beta1 to support Leap 15.0
|
||||||
|
* Add 5461.patch to support PHP7
|
||||||
|
* support python3
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 15 08:37:40 UTC 2017 - opensuse@dstoecker.de
|
Fri Dec 15 08:37:40 UTC 2017 - opensuse@dstoecker.de
|
||||||
|
@ -20,8 +20,12 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
%define libname libmapserver2
|
%define libname libmapserver2
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")}
|
|
||||||
%define _cgibindir /srv/www/cgi-bin
|
%define _cgibindir /srv/www/cgi-bin
|
||||||
|
%if 0%{?suse_version} >= 1500
|
||||||
|
%define php_name php7
|
||||||
|
%else
|
||||||
|
%define php_name php5
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: mapserver
|
Name: mapserver
|
||||||
%define realversion 7.2.0-beta1
|
%define realversion 7.2.0-beta1
|
||||||
@ -32,6 +36,8 @@ License: MIT
|
|||||||
Group: Productivity/Networking/Web/Servers
|
Group: Productivity/Networking/Web/Servers
|
||||||
Url: http://www.mapserver.org
|
Url: http://www.mapserver.org
|
||||||
Source: http://download.osgeo.org/mapserver/%{name}-%{realversion}.tar.gz
|
Source: http://download.osgeo.org/mapserver/%{name}-%{realversion}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM Fix PHP7 support
|
||||||
|
Patch1: https://patch-diff.githubusercontent.com/raw/mapserver/mapserver/pull/5461.patch
|
||||||
BuildRequires: FastCGI-devel
|
BuildRequires: FastCGI-devel
|
||||||
BuildRequires: apache2-devel
|
BuildRequires: apache2-devel
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
@ -131,10 +137,15 @@ within the Perl programming language.
|
|||||||
%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
|
||||||
BuildRequires: python-devel
|
%if %{suse_version} >= 1500
|
||||||
Requires: python-base
|
%define python_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
Requires: python3-base
|
Requires: python3-base
|
||||||
|
%else
|
||||||
|
%define python_sitearch %(python2 -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
Requires: python2-base
|
||||||
|
%endif
|
||||||
Requires: %{libname} = %{version}-%{release}
|
Requires: %{libname} = %{version}-%{release}
|
||||||
Provides: mapserver-python = %{version}-%{release}
|
Provides: mapserver-python = %{version}-%{release}
|
||||||
Obsoletes: mapserver-python < %{version}-%{release}
|
Obsoletes: mapserver-python < %{version}-%{release}
|
||||||
@ -186,6 +197,8 @@ against the C Mapserver library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{realversion}
|
%setup -q -n %{name}-%{realversion}
|
||||||
|
%global _default_patch_fuzz 1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build
|
mkdir build
|
||||||
@ -262,7 +275,7 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
mkdir -p %{buildroot}/%{_sbindir}
|
mkdir -p %{buildroot}/%{_sbindir}
|
||||||
mkdir -p %{buildroot}/%{_cgibindir}
|
mkdir -p %{buildroot}/%{_cgibindir}
|
||||||
mkdir -p %{buildroot}%{_libdir}/php5/extensions
|
mkdir -p %{buildroot}%{_libdir}/%{php_name}/extensions
|
||||||
mkdir -p %{buildroot}/%{_bindir}
|
mkdir -p %{buildroot}/%{_bindir}
|
||||||
mkdir -p %{buildroot}%{python_sitearch}/
|
mkdir -p %{buildroot}%{python_sitearch}/
|
||||||
mkdir -p %{buildroot}/%{_includedir}/%{name}
|
mkdir -p %{buildroot}/%{_includedir}/%{name}
|
||||||
@ -280,8 +293,8 @@ cd build
|
|||||||
%makeinstall DESTDIR="%{buildroot}"
|
%makeinstall DESTDIR="%{buildroot}"
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/php5/conf.d/
|
mkdir -p %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/
|
||||||
cat > %{buildroot}%{_sysconfdir}/php5/conf.d/mapscript.ini <<EOF
|
cat > %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/mapscript.ini <<EOF
|
||||||
; Enable %{name} extension module
|
; Enable %{name} extension module
|
||||||
; For 6.4 we name the symlink here
|
; For 6.4 we name the symlink here
|
||||||
extension=php_mapscript.so
|
extension=php_mapscript.so
|
||||||
@ -335,8 +348,8 @@ rm -rf %{buildroot}
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc mapscript/php/README
|
%doc mapscript/php/README
|
||||||
%doc mapscript/php/examples
|
%doc mapscript/php/examples
|
||||||
%config(noreplace) %{_sysconfdir}/php5/conf.d/mapscript.ini
|
%config(noreplace) %{_sysconfdir}/%{php_name}/conf.d/mapscript.ini
|
||||||
%{_libdir}/php5/extensions/php_mapscript.so*
|
%{_libdir}/%{php_name}/extensions/php_mapscript.so*
|
||||||
|
|
||||||
%files -n perl-mapscript
|
%files -n perl-mapscript
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user