forked from pool/mapserver
This commit is contained in:
parent
24fdee4e15
commit
39873eadd9
@ -20,7 +20,7 @@ Requires: libproj
|
||||
Requires: libgdal
|
||||
Requires: freetype2
|
||||
Requires: gd
|
||||
Requires: python
|
||||
#Requires: python
|
||||
Requires: zlib
|
||||
Requires: libxml2
|
||||
Requires: libjpeg
|
||||
@ -40,7 +40,7 @@ BuildRequires: libproj-devel
|
||||
BuildRequires: libgdal-devel
|
||||
BuildRequires: freetype2-devel
|
||||
BuildRequires: gd-devel >= 2.0.16
|
||||
BuildRequires: python-devel
|
||||
#BuildRequires: python-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: libxml2-devel
|
||||
@ -49,17 +49,17 @@ BuildRequires: libpng-devel
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: swig
|
||||
%if 0%{?suse_version} >= 1030
|
||||
BuildRequires: java-1_6_0-sun-devel
|
||||
%else
|
||||
BuildRequires: java-1_5_0-sun-devel
|
||||
%endif
|
||||
#%if 0%{?suse_version} >= 1030
|
||||
#BuildRequires: java-1_6_0-sun-devel
|
||||
#%else
|
||||
#BuildRequires: java-1_5_0-sun-devel
|
||||
#%endif
|
||||
#BuildRequires: httpd-devel
|
||||
BuildRequires: java
|
||||
BuildRequires: libgcj-devel
|
||||
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)")
|
||||
|
||||
%description
|
||||
Mapserver is an internet mapping program that converts GIS data to
|
||||
@ -86,23 +86,25 @@ Requires: %{name} = %{version}-%{release}
|
||||
The Perl/Mapscript extension provides full map customization capabilities
|
||||
within the Perl programming language.
|
||||
|
||||
%package python
|
||||
Summary: Python/Mapscript map making extensions to Python
|
||||
Group: Development/Languages
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
## FIXME: path to python site-packages is not correct, see files python
|
||||
#%package python
|
||||
#Summary: Python/Mapscript map making extensions to Python
|
||||
#Group: Development/Languages
|
||||
#Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description python
|
||||
The Python/Mapscript extension provides full map customization capabilities
|
||||
within the Python programming language.
|
||||
#%description python
|
||||
#The Python/Mapscript extension provides full map customization capabilities
|
||||
#within the Python programming language.
|
||||
|
||||
%package java
|
||||
Summary: Java/Mapscript map making extensions to Java
|
||||
Group: Development/Languages
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
##java is not available in build repos - only in non-oss repo, so it won't be build
|
||||
#%package java
|
||||
#Summary: Java/Mapscript map making extensions to Java
|
||||
#Group: Development/Languages
|
||||
#Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description java
|
||||
The Java/Mapscript extension provides full map customization capabilities
|
||||
within the Java programming language.
|
||||
#%description java
|
||||
#The Java/Mapscript extension provides full map customization capabilities
|
||||
#within the Java programming language.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -113,7 +115,7 @@ chmod -x mapscript/php3/php_mapscript.c
|
||||
chmod -x mappluginlayer.c
|
||||
chmod -x mapscript/php3/mapscript_i.c
|
||||
chmod -x mapscript/php3/examples/test_writeshape.phtml
|
||||
chmod -x mapscript/python/examples/*.py
|
||||
#chmod -x mapscript/python/examples/*.py
|
||||
chmod -x mapscript/perl/examples/*.pl
|
||||
chmod -x mapscript/php3/README
|
||||
|
||||
@ -159,13 +161,13 @@ perl Makefile.PL
|
||||
make
|
||||
|
||||
# build python
|
||||
cd ../python
|
||||
python setup.py build
|
||||
#cd ../python
|
||||
#python setup.py build
|
||||
|
||||
# build java
|
||||
cd ../java
|
||||
make interface
|
||||
make
|
||||
#cd ../java
|
||||
#make interface
|
||||
#make
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
@ -188,13 +190,13 @@ make DESTDIR=%{buildroot} pure_vendor_install
|
||||
popd
|
||||
|
||||
# install python module
|
||||
pushd mapscript/python
|
||||
python setup.py install --root %{buildroot}
|
||||
popd
|
||||
#pushd mapscript/python
|
||||
#python setup.py install --root %{buildroot}
|
||||
#popd
|
||||
|
||||
# install java
|
||||
mkdir -p %{buildroot}%{_javadir}
|
||||
install -p -m 644 mapscript/java/mapscript.jar %{buildroot}%{_javadir}/
|
||||
#mkdir -p %{buildroot}%{_javadir}
|
||||
#install -p -m 644 mapscript/java/mapscript.jar %{buildroot}%{_javadir}/
|
||||
|
||||
# install php config file
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/php.d/
|
||||
@ -242,26 +244,27 @@ rm -rf %{buildroot}
|
||||
%{perl_vendorarch}/auto/mapscript/*
|
||||
%{perl_vendorarch}/mapscript.pm
|
||||
|
||||
%files python
|
||||
%defattr(-,root,root)
|
||||
%doc mapscript/python/README
|
||||
%doc mapscript/python/examples
|
||||
%doc mapscript/python/tests
|
||||
# FIXME
|
||||
# packages are built here but should go to python_sitearch
|
||||
/usr/local/lib64/python2.5/site-packages/*
|
||||
#%{python_sitearch}/*
|
||||
#%files python
|
||||
#%defattr(-,root,root)
|
||||
#%doc mapscript/python/README
|
||||
#%doc mapscript/python/examples
|
||||
#%doc mapscript/python/tests
|
||||
## FIXME
|
||||
## packages are built here but should go to python_sitearch
|
||||
#/usr/local/lib64/python2.5/site-packages/*
|
||||
##%{python_sitearch}/*
|
||||
|
||||
%files java
|
||||
%defattr(-,root,root)
|
||||
%doc mapscript/java/README
|
||||
%doc mapscript/java/examples
|
||||
%doc mapscript/java/tests
|
||||
%{_javadir}/*.jar
|
||||
#%files java
|
||||
#%defattr(-,root,root)
|
||||
#%doc mapscript/java/README
|
||||
#%doc mapscript/java/examples
|
||||
#%doc mapscript/java/tests
|
||||
#%{_javadir}/*.jar
|
||||
|
||||
%changelog
|
||||
* Sun Mar 16 2008 Otto Dassau 5.0.2
|
||||
- adapted to openSUSE build service
|
||||
- java and python is not build included
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.0.2-2
|
||||
- Autorebuild for GCC 4.3
|
||||
* Sat Feb 9 2008 Devrim GUNDUZ <devrim@commandprompt.com> - 5.0.2-1
|
||||
|
Loading…
Reference in New Issue
Block a user