forked from pool/mapserver
updates by Stephan Holl for SLES10 build
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=13
This commit is contained in:
parent
feead28ba0
commit
4e1804b6df
@ -6,13 +6,15 @@ Group: Applications/GIS
|
|||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
URL: http://mapserver.gis.umn.edu
|
URL: http://mapserver.gis.umn.edu
|
||||||
Summary: Environment for building spatially-enabled internet applications
|
Summary: Environment for building spatially-enabled internet applications
|
||||||
Packager: Otto Dassau <otto.dassau@gmx.de>
|
Packager: Stephan Holl <stephan.holl@intevation.de>
|
||||||
Requires: php
|
Requires: php
|
||||||
Requires: postgresql
|
Requires: postgresql
|
||||||
Requires: mysql
|
Requires: mysql
|
||||||
#Requires: python
|
#Requires: python
|
||||||
#Requires: httpd
|
Requires: apache2
|
||||||
|
%if 0%{?suse_version} != 1010
|
||||||
BuildRequires: xorg-x11-libXpm-devel
|
BuildRequires: xorg-x11-libXpm-devel
|
||||||
|
%endif
|
||||||
BuildRequires: rpm, gcc, gcc-c++
|
BuildRequires: rpm, gcc, gcc-c++
|
||||||
BuildRequires: postgresql-devel
|
BuildRequires: postgresql-devel
|
||||||
BuildRequires: mysql-devel
|
BuildRequires: mysql-devel
|
||||||
@ -37,12 +39,17 @@ BuildRequires: libtiff-devel
|
|||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
BuildRequires: java-devel >= 1.5
|
BuildRequires: java-devel >= 1.5
|
||||||
#BuildRequires: httpd-devel
|
BuildRequires: update-alternatives
|
||||||
|
BuildRequires: apache2-devel
|
||||||
BuildRequires: java
|
BuildRequires: java
|
||||||
|
%if 0%{?sles_version} == 10
|
||||||
|
BuildRequires: java-1_5_0-ibm-alsa
|
||||||
|
%endif
|
||||||
BuildRequires: libgcj-devel
|
BuildRequires: libgcj-devel
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
#%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
|
#%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
|
||||||
|
%define _cgibindir /srv/www/cgi-bin
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Mapserver is an internet mapping program that converts GIS data to
|
Mapserver is an internet mapping program that converts GIS data to
|
||||||
@ -54,11 +61,10 @@ custom GIS data.
|
|||||||
Summary: PHP/Mapscript map making extensions to PHP
|
Summary: PHP/Mapscript map making extensions to PHP
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
Requires: php-gd
|
Requires: php-gd
|
||||||
#Requires: httpd
|
Requires: apache2
|
||||||
|
|
||||||
%description -n php-mapserver
|
%description -n php-mapserver
|
||||||
The PHP/Mapscript extension provides full map customization capabilities within
|
The PHP/Mapscript extension provides full map customization capabilities within the PHP scripting language.
|
||||||
the PHP scripting language.
|
|
||||||
|
|
||||||
%package perl
|
%package perl
|
||||||
Summary: Perl/Mapscript map making extensions to Perl
|
Summary: Perl/Mapscript map making extensions to Perl
|
||||||
@ -69,12 +75,11 @@ Requires: %{name} = %{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.
|
||||||
|
|
||||||
## FIXME: path to python site-packages is not correct, see files python
|
|
||||||
#%package python
|
#%package python
|
||||||
#Summary: Python/Mapscript map making extensions to Python
|
#Summary: Python/Mapscript map making extensions to Python
|
||||||
#Group: Development/Languages
|
#Group: Development/Languages
|
||||||
#Requires: %{name} = %{version}-%{release}
|
#Requires: %{name} = %{version}-%{release}
|
||||||
|
#
|
||||||
#%description python
|
#%description python
|
||||||
#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.
|
||||||
@ -126,23 +131,23 @@ chmod -x mapscript/php3/README
|
|||||||
--with-curl-config=%{_bindir}/curl-config \
|
--with-curl-config=%{_bindir}/curl-config \
|
||||||
--with-xml2-config=%{_bindir}/xml2-config \
|
--with-xml2-config=%{_bindir}/xml2-config \
|
||||||
--with-php=`php-config --include-dir` \
|
--with-php=`php-config --include-dir` \
|
||||||
|
--with-httpd=/usr/sbin/httpd2 \
|
||||||
--without-pdf \
|
--without-pdf \
|
||||||
--without-eppl \
|
--without-eppl \
|
||||||
--with-threads \
|
--with-threads \
|
||||||
--enable-debug \
|
|
||||||
--disable-runpath
|
--disable-runpath
|
||||||
|
|
||||||
# WARNING !!!
|
## WARNING !!!
|
||||||
# using %{?_smp_mflags} may break build
|
# using %{?_smp_mflags} may break build
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
# build perl
|
## build perl
|
||||||
cd mapscript/perl
|
cd mapscript/perl
|
||||||
perl Makefile.PL
|
perl Makefile.PL
|
||||||
make
|
make
|
||||||
|
|
||||||
# build python
|
## build python
|
||||||
#cd ../python
|
#cd ../python
|
||||||
#python setup.py build
|
#python setup.py build
|
||||||
|
|
||||||
@ -155,25 +160,36 @@ make
|
|||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
mkdir -p %{buildroot}/%{_sbindir}
|
mkdir -p %{buildroot}/%{_sbindir}
|
||||||
|
mkdir -p %{buildroot}/%{_cgibindir}
|
||||||
mkdir -p %{buildroot}/%{_sysconfdir}/php.d
|
mkdir -p %{buildroot}/%{_sysconfdir}/php.d
|
||||||
mkdir -p %{buildroot}%{_libdir}/php/modules
|
mkdir -p %{buildroot}%{_libdir}/php5/extensions
|
||||||
mkdir -p %{buildroot}/%{_bindir}
|
mkdir -p %{buildroot}/%{_bindir}
|
||||||
install -p -m 755 mapserv %{buildroot}/%{_sbindir}
|
install -p -m 755 mapserv %{buildroot}/%{_cgibindir}
|
||||||
|
install -p -m 755 legend %{buildroot}/%{_cgibindir}
|
||||||
|
install -p -m 755 scalebar %{buildroot}/%{_cgibindir}
|
||||||
install -p -m 755 shp2img %{buildroot}/%{_bindir}
|
install -p -m 755 shp2img %{buildroot}/%{_bindir}
|
||||||
install -p -m 755 shptree %{buildroot}/%{_bindir}
|
install -p -m 755 shptree %{buildroot}/%{_bindir}
|
||||||
install -p -m 755 sortshp %{buildroot}/%{_bindir}
|
install -p -m 755 sortshp %{buildroot}/%{_bindir}
|
||||||
install -p -m 755 tile4ms %{buildroot}/%{_bindir}
|
install -p -m 755 tile4ms %{buildroot}/%{_bindir}
|
||||||
|
|
||||||
install -p -m 755 mapscript/php3/php_mapscript.so %{buildroot}/%{_libdir}/php/modules/
|
install -p -m 755 mapscript/php3/php_mapscript.so %{buildroot}/%{_libdir}/php5/extensions/
|
||||||
|
|
||||||
# install perl module
|
# install perl module
|
||||||
pushd mapscript/perl
|
pushd mapscript/perl
|
||||||
make DESTDIR=%{buildroot} pure_vendor_install
|
make DESTDIR=%{buildroot} pure_vendor_install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# install python module
|
## install python module
|
||||||
#pushd mapscript/python
|
#pushd mapscript/python
|
||||||
#python setup.py install --root %{buildroot}
|
#python setup.py install --root %{buildroot}
|
||||||
|
## WORKARROUND: only for python 2.4
|
||||||
|
#mkdir -p %{buildroot}%{python_sitearch}/
|
||||||
|
#cp build/lib.linux-i686-2.4/mapscript.py %{buildroot}%{python_sitearch}/
|
||||||
|
#cp build/lib.linux-i686-2.4/_mapscript.so %{buildroot}%{python_sitearch}/
|
||||||
|
## clean up after installing
|
||||||
|
#rm -f %{buildroot}/usr/local/python2.4/site-packages/mapscript.py
|
||||||
|
#rm -f %{buildroot}/usr/local/python2.4/site-packages/mapscript.pyc
|
||||||
|
#rm -f %{buildroot}/usr/local/python2.4/site-packages/_mapscript.so
|
||||||
#popd
|
#popd
|
||||||
|
|
||||||
# install java
|
# install java
|
||||||
@ -210,14 +226,16 @@ rm -rf %{buildroot}
|
|||||||
%{_bindir}/shptree
|
%{_bindir}/shptree
|
||||||
%{_bindir}/sortshp
|
%{_bindir}/sortshp
|
||||||
%{_bindir}/tile4ms
|
%{_bindir}/tile4ms
|
||||||
%{_sbindir}/mapserv
|
%{_cgibindir}/mapserv
|
||||||
|
%{_cgibindir}/legend
|
||||||
|
%{_cgibindir}/scalebar
|
||||||
|
|
||||||
%files -n php-mapserver
|
%files -n php-mapserver
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc mapscript/php3/README
|
%doc mapscript/php3/README
|
||||||
%doc mapscript/php3/examples
|
%doc mapscript/php3/examples
|
||||||
%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
|
%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
|
||||||
%{_libdir}/php/modules/php_mapscript.so
|
%{_libdir}/php5/extensions/php_mapscript.so
|
||||||
|
|
||||||
%files perl
|
%files perl
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -233,8 +251,8 @@ rm -rf %{buildroot}
|
|||||||
#%doc mapscript/python/tests
|
#%doc mapscript/python/tests
|
||||||
## FIXME
|
## FIXME
|
||||||
## packages are built here but should go to python_sitearch
|
## packages are built here but should go to python_sitearch
|
||||||
#/usr/local/lib64/python2.5/site-packages/*
|
##/usr/local/lib64/python2.5/site-packages/*
|
||||||
##%{python_sitearch}/*
|
#%{python_sitearch}/*
|
||||||
|
|
||||||
%files java
|
%files java
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -244,8 +262,11 @@ rm -rf %{buildroot}
|
|||||||
%{_javadir}/*.jar
|
%{_javadir}/*.jar
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Aug 22 2008 Otto Dassau <otto.dassau@gmx.de> 5.2.0
|
* Tue Aug 26 2008 Stephan Holl <stephan.holl@intevation.de> 5.2.0
|
||||||
- version update
|
- updated to build on SLE_10 x32-plattforms
|
||||||
|
- updated path to php_mapscript.so
|
||||||
|
- updated path to mapserv
|
||||||
|
- added legend, scalebar
|
||||||
* Sun Mar 16 2008 Otto Dassau 5.0.2
|
* Sun Mar 16 2008 Otto Dassau 5.0.2
|
||||||
- adapted to compile on openSUSE build service
|
- adapted to compile on openSUSE build service
|
||||||
- java and python is not build included
|
- java and python is not build included
|
||||||
|
Loading…
Reference in New Issue
Block a user