forked from pool/mapserver
Accepting request 62982 from home:tzotsos:branches:Application:Geo
is still building, hopyfully okay :) OBS-URL: https://build.opensuse.org/request/show/62982 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=60
This commit is contained in:
parent
a092591711
commit
246cf3456f
@ -11,7 +11,7 @@ Requires: php
|
|||||||
Requires: postgresql
|
Requires: postgresql
|
||||||
Requires: mysql
|
Requires: mysql
|
||||||
Requires: FastCGI
|
Requires: FastCGI
|
||||||
#Requires: python
|
Requires: python
|
||||||
Requires: apache2
|
Requires: apache2
|
||||||
%if 0%{?suse_version} != 1010
|
%if 0%{?suse_version} != 1010
|
||||||
BuildRequires: xorg-x11-libXpm-devel
|
BuildRequires: xorg-x11-libXpm-devel
|
||||||
@ -27,7 +27,7 @@ BuildRequires: readline-devel
|
|||||||
BuildRequires: freetype2-devel
|
BuildRequires: freetype2-devel
|
||||||
BuildRequires: gd-devel >= 2.0.16
|
BuildRequires: gd-devel >= 2.0.16
|
||||||
BuildRequires: FastCGI-devel
|
BuildRequires: FastCGI-devel
|
||||||
#BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
%if 0%{?suse_version} >= 1030
|
%if 0%{?suse_version} >= 1030
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: php-devel
|
BuildRequires: php-devel
|
||||||
@ -62,7 +62,7 @@ Patch0: mapserver-5.4.1_buildchecks.patch
|
|||||||
Patch1: hidden_layer.patch
|
Patch1: hidden_layer.patch
|
||||||
Patch2: bug3525_verbose_output.patch
|
Patch2: bug3525_verbose_output.patch
|
||||||
|
|
||||||
#%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
|
%define _cgibindir /srv/www/cgi-bin
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -90,14 +90,14 @@ 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.
|
||||||
|
|
||||||
#%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.
|
||||||
|
|
||||||
%package java
|
%package java
|
||||||
Summary: Java/Mapscript map making extensions to Java
|
Summary: Java/Mapscript map making extensions to Java
|
||||||
@ -121,7 +121,7 @@ chmod -x mapscript/php3/mapscript_i.c
|
|||||||
chmod -x mapscript/php3/Makefile.in
|
chmod -x mapscript/php3/Makefile.in
|
||||||
chmod -x mapscript/php3/Makefile.vc
|
chmod -x mapscript/php3/Makefile.vc
|
||||||
chmod -x mapscript/php3/php_mapscript.*
|
chmod -x mapscript/php3/php_mapscript.*
|
||||||
#chmod -x mapscript/python/examples/*.py
|
chmod -x mapscript/python/examples/*.py
|
||||||
chmod -x mapscript/perl/examples/*.pl
|
chmod -x mapscript/perl/examples/*.pl
|
||||||
chmod -x mapscript/php3/README.WIN32
|
chmod -x mapscript/php3/README.WIN32
|
||||||
|
|
||||||
@ -174,8 +174,8 @@ perl Makefile.PL
|
|||||||
make
|
make
|
||||||
|
|
||||||
## build python
|
## build python
|
||||||
#cd ../python
|
cd ../python
|
||||||
#python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
# build java
|
# build java
|
||||||
cd ../java
|
cd ../java
|
||||||
@ -205,18 +205,15 @@ 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}/
|
||||||
#mkdir -p %{buildroot}%{python_sitearch}/
|
mv %{buildroot}/usr/local/%{_lib}/python%py_ver/site-packages/*mapscript* %{buildroot}/usr/%{_lib}/python%py_ver/site-packages/
|
||||||
#cp build/lib.linux-i686-2.4/mapscript.py %{buildroot}%{python_sitearch}/
|
%if 0%{?suse_version} > 1110 || 0%{?sles_version} > 10
|
||||||
#cp build/lib.linux-i686-2.4/_mapscript.so %{buildroot}%{python_sitearch}/
|
mv %{buildroot}/usr/local/%{_lib}/python%py_ver/site-packages/MapScript* %{buildroot}/usr/%{_lib}/python%py_ver/site-packages/
|
||||||
## clean up after installing
|
%endif
|
||||||
#rm -f %{buildroot}/usr/local/python2.4/site-packages/mapscript.py
|
popd
|
||||||
#rm -f %{buildroot}/usr/local/python2.4/site-packages/mapscript.pyc
|
|
||||||
#rm -f %{buildroot}/usr/local/python2.4/site-packages/_mapscript.so
|
|
||||||
#popd
|
|
||||||
|
|
||||||
# install java
|
# install java
|
||||||
mkdir -p %{buildroot}%{_javadir}
|
mkdir -p %{buildroot}%{_javadir}
|
||||||
@ -271,15 +268,12 @@ rm -rf %{buildroot}
|
|||||||
%{perl_vendorarch}/auto/mapscript/*
|
%{perl_vendorarch}/auto/mapscript/*
|
||||||
%{perl_vendorarch}/mapscript.pm
|
%{perl_vendorarch}/mapscript.pm
|
||||||
|
|
||||||
#%files python
|
%files python
|
||||||
#%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
#%doc mapscript/python/README
|
%doc mapscript/python/README
|
||||||
#%doc mapscript/python/examples
|
%doc mapscript/python/examples
|
||||||
#%doc mapscript/python/tests
|
%doc mapscript/python/tests
|
||||||
## FIXME
|
%{python_sitearch}/*
|
||||||
## packages are built here but should go to python_sitearch
|
|
||||||
##/usr/local/lib64/python2.5/site-packages/*
|
|
||||||
#%{python_sitearch}/*
|
|
||||||
|
|
||||||
%files java
|
%files java
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -289,11 +283,13 @@ rm -rf %{buildroot}
|
|||||||
%{_javadir}/*.jar
|
%{_javadir}/*.jar
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 27 2011 Angelos Tzotsos <tzotsos@opensuse.org> 5.6.6
|
||||||
|
- fixed python package
|
||||||
* Mon Jan 24 2011 Stephan Holl <stephan.holl@intevation.de> 5.6.6
|
* Mon Jan 24 2011 Stephan Holl <stephan.holl@intevation.de> 5.6.6
|
||||||
- added bug3525_verbose_output.patch to make EXCEPTIONS-output more
|
- added bug3525_verbose_output.patch to make EXCEPTIONS-output more
|
||||||
verbose
|
verbose
|
||||||
* Tue Jan 18 2011 Stephan Holl <stephan.holl@intevation.de> 5.6.6
|
* Tue Jan 18 2011 Stephan Holl <stephan.holl@intevation.de> 5.6.6
|
||||||
- udated to new upstream version of mapserver 5.6.6(see·
|
- udated to new upstream version of mapserver 5.6.6(see<EFBFBD>
|
||||||
http://trac.osgeo.org/mapserver/browser/tags/rel-5-6-6/mapserver/HISTORY.TXT
|
http://trac.osgeo.org/mapserver/browser/tags/rel-5-6-6/mapserver/HISTORY.TXT
|
||||||
for a detailed description of the changes.
|
for a detailed description of the changes.
|
||||||
- removed patch for bug #3525 since this is already included in upstreams
|
- removed patch for bug #3525 since this is already included in upstreams
|
||||||
|
Loading…
Reference in New Issue
Block a user