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
|
||||
|
||||
- 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
|
||||
|
@ -20,8 +20,12 @@
|
||||
|
||||
#
|
||||
%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
|
||||
%if 0%{?suse_version} >= 1500
|
||||
%define php_name php7
|
||||
%else
|
||||
%define php_name php5
|
||||
%endif
|
||||
|
||||
Name: mapserver
|
||||
%define realversion 7.2.0-beta1
|
||||
@ -32,6 +36,8 @@ License: MIT
|
||||
Group: Productivity/Networking/Web/Servers
|
||||
Url: http://www.mapserver.org
|
||||
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: apache2-devel
|
||||
BuildRequires: autoconf
|
||||
@ -131,10 +137,15 @@ within the Perl programming language.
|
||||
%package -n python-mapscript
|
||||
Summary: Python/Mapscript map making extensions to Python
|
||||
Group: Development/Languages/Python
|
||||
BuildRequires: python-devel
|
||||
Requires: python-base
|
||||
%if %{suse_version} >= 1500
|
||||
%define python_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")
|
||||
BuildRequires: python3-devel
|
||||
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}
|
||||
Provides: mapserver-python = %{version}-%{release}
|
||||
Obsoletes: mapserver-python < %{version}-%{release}
|
||||
@ -186,6 +197,8 @@ against the C Mapserver library.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{realversion}
|
||||
%global _default_patch_fuzz 1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
mkdir build
|
||||
@ -262,7 +275,7 @@ rm -rf %{buildroot}
|
||||
|
||||
mkdir -p %{buildroot}/%{_sbindir}
|
||||
mkdir -p %{buildroot}/%{_cgibindir}
|
||||
mkdir -p %{buildroot}%{_libdir}/php5/extensions
|
||||
mkdir -p %{buildroot}%{_libdir}/%{php_name}/extensions
|
||||
mkdir -p %{buildroot}/%{_bindir}
|
||||
mkdir -p %{buildroot}%{python_sitearch}/
|
||||
mkdir -p %{buildroot}/%{_includedir}/%{name}
|
||||
@ -280,8 +293,8 @@ cd build
|
||||
%makeinstall DESTDIR="%{buildroot}"
|
||||
cd ..
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/php5/conf.d/
|
||||
cat > %{buildroot}%{_sysconfdir}/php5/conf.d/mapscript.ini <<EOF
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/
|
||||
cat > %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/mapscript.ini <<EOF
|
||||
; Enable %{name} extension module
|
||||
; For 6.4 we name the symlink here
|
||||
extension=php_mapscript.so
|
||||
@ -335,8 +348,8 @@ rm -rf %{buildroot}
|
||||
%defattr(-,root,root)
|
||||
%doc mapscript/php/README
|
||||
%doc mapscript/php/examples
|
||||
%config(noreplace) %{_sysconfdir}/php5/conf.d/mapscript.ini
|
||||
%{_libdir}/php5/extensions/php_mapscript.so*
|
||||
%config(noreplace) %{_sysconfdir}/%{php_name}/conf.d/mapscript.ini
|
||||
%{_libdir}/%{php_name}/extensions/php_mapscript.so*
|
||||
|
||||
%files -n perl-mapscript
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user