1
0
forked from pool/mapserver
Otto Dassau 2008-03-16 17:34:49 +00:00 committed by Git OBS Bridge
parent 24fdee4e15
commit 39873eadd9

View File

@ -20,7 +20,7 @@ Requires: libproj
Requires: libgdal Requires: libgdal
Requires: freetype2 Requires: freetype2
Requires: gd Requires: gd
Requires: python #Requires: python
Requires: zlib Requires: zlib
Requires: libxml2 Requires: libxml2
Requires: libjpeg Requires: libjpeg
@ -40,7 +40,7 @@ BuildRequires: libproj-devel
BuildRequires: libgdal-devel BuildRequires: libgdal-devel
BuildRequires: freetype2-devel BuildRequires: freetype2-devel
BuildRequires: gd-devel >= 2.0.16 BuildRequires: gd-devel >= 2.0.16
BuildRequires: python-devel #BuildRequires: python-devel
BuildRequires: libcurl-devel BuildRequires: libcurl-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
@ -49,17 +49,17 @@ BuildRequires: libpng-devel
BuildRequires: libtiff-devel BuildRequires: libtiff-devel
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: swig BuildRequires: swig
%if 0%{?suse_version} >= 1030 #%if 0%{?suse_version} >= 1030
BuildRequires: java-1_6_0-sun-devel #BuildRequires: java-1_6_0-sun-devel
%else #%else
BuildRequires: java-1_5_0-sun-devel #BuildRequires: java-1_5_0-sun-devel
%endif #%endif
#BuildRequires: httpd-devel #BuildRequires: httpd-devel
BuildRequires: java BuildRequires: java
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)")
%description %description
Mapserver is an internet mapping program that converts GIS data to 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 The Perl/Mapscript extension provides full map customization capabilities
within the Perl programming language. within the Perl programming language.
%package python ## FIXME: path to python site-packages is not correct, see files python
Summary: Python/Mapscript map making extensions to Python #%package python
Group: Development/Languages #Summary: Python/Mapscript map making extensions to Python
Requires: %{name} = %{version}-%{release} #Group: Development/Languages
#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 ##java is not available in build repos - only in non-oss repo, so it won't be build
Summary: Java/Mapscript map making extensions to Java #%package java
Group: Development/Languages #Summary: Java/Mapscript map making extensions to Java
Requires: %{name} = %{version}-%{release} #Group: Development/Languages
#Requires: %{name} = %{version}-%{release}
%description java #%description java
The Java/Mapscript extension provides full map customization capabilities #The Java/Mapscript extension provides full map customization capabilities
within the Java programming language. #within the Java programming language.
%prep %prep
%setup -q %setup -q
@ -113,7 +115,7 @@ chmod -x mapscript/php3/php_mapscript.c
chmod -x mappluginlayer.c chmod -x mappluginlayer.c
chmod -x mapscript/php3/mapscript_i.c chmod -x mapscript/php3/mapscript_i.c
chmod -x mapscript/php3/examples/test_writeshape.phtml 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/perl/examples/*.pl
chmod -x mapscript/php3/README chmod -x mapscript/php3/README
@ -159,13 +161,13 @@ 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
make interface #make interface
make #make
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
@ -188,13 +190,13 @@ 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}
popd #popd
# install java # install java
mkdir -p %{buildroot}%{_javadir} #mkdir -p %{buildroot}%{_javadir}
install -p -m 644 mapscript/java/mapscript.jar %{buildroot}%{_javadir}/ #install -p -m 644 mapscript/java/mapscript.jar %{buildroot}%{_javadir}/
# install php config file # install php config file
mkdir -p %{buildroot}%{_sysconfdir}/php.d/ mkdir -p %{buildroot}%{_sysconfdir}/php.d/
@ -242,26 +244,27 @@ 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 ## 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)
%doc mapscript/java/README #%doc mapscript/java/README
%doc mapscript/java/examples #%doc mapscript/java/examples
%doc mapscript/java/tests #%doc mapscript/java/tests
%{_javadir}/*.jar #%{_javadir}/*.jar
%changelog %changelog
* Sun Mar 16 2008 Otto Dassau 5.0.2 * Sun Mar 16 2008 Otto Dassau 5.0.2
- adapted to openSUSE build service - 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 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.0.2-2
- Autorebuild for GCC 4.3 - Autorebuild for GCC 4.3
* Sat Feb 9 2008 Devrim GUNDUZ <devrim@commandprompt.com> - 5.0.2-1 * Sat Feb 9 2008 Devrim GUNDUZ <devrim@commandprompt.com> - 5.0.2-1