temporary removed mapserver-java (mapscript) due to build problem
with jdk7
This commit is contained in:
parent
3910acc805
commit
5bad7b900a
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
/mapserver-6.0.3.tar.gz
|
/mapserver-6.0.3.tar.gz
|
||||||
|
/mapserver-6.0.3-for-swig_2.0.4_up.patch
|
||||||
|
/mapserver-6.0.3-php4.patch
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
Name: mapserver
|
Name: mapserver
|
||||||
Version: 6.0.3
|
Version: 6.0.3
|
||||||
Release: 3%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: Environment for building spatially-enabled internet applications
|
Summary: Environment for building spatially-enabled internet applications
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://www.mapserver.org
|
URL: http://www.mapserver.org
|
||||||
Source: http://download.osgeo.org/mapserver/mapserver-%{version}.tar.gz
|
Source: http://download.osgeo.org/mapserver/mapserver-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: mapserver-6.0.3-for-swig_2.0.4_up.patch
|
||||||
|
Patch1: mapserver-6.0.3-php4.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires: httpd
|
Requires: httpd
|
||||||
Requires: bitstream-vera-sans-fonts
|
Requires: bitstream-vera-sans-fonts
|
||||||
@ -13,8 +17,8 @@ Requires: bitstream-vera-sans-fonts
|
|||||||
BuildRequires: libXpm-devel readline-devel
|
BuildRequires: libXpm-devel readline-devel
|
||||||
BuildRequires: httpd-devel php-devel libxslt-devel pam-devel fcgi-devel
|
BuildRequires: httpd-devel php-devel libxslt-devel pam-devel fcgi-devel
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
BuildRequires: postgresql-devel mysql-devel java-devel
|
BuildRequires: postgresql-devel mysql-devel swig > 1.3.24
|
||||||
BuildRequires: swig > 1.3.24 java
|
# BuildRequires: java java-devel
|
||||||
BuildRequires: geos-devel proj-devel gdal-devel agg-devel cairo-devel
|
BuildRequires: geos-devel proj-devel gdal-devel agg-devel cairo-devel
|
||||||
BuildRequires: php-devel freetype-devel gd-devel >= 2.0.16
|
BuildRequires: php-devel freetype-devel gd-devel >= 2.0.16
|
||||||
BuildRequires: python-devel curl-devel zlib-devel libxml2-devel
|
BuildRequires: python-devel curl-devel zlib-devel libxml2-devel
|
||||||
@ -58,18 +62,23 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
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
|
||||||
Group: Development/Languages
|
# Group: Development/Languages
|
||||||
Requires: %{name} = %{version}-%{release}
|
# Requires: %{name} = %{version}-%{release}
|
||||||
Requires: java-gcj-compat
|
# Requires: java-gcj-compat
|
||||||
|
#
|
||||||
%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
|
||||||
|
%if "%{fedora}" == "17" || "%{fedora}" == "18" || "%{fedora}" == "19"
|
||||||
|
%patch0 -p1 -b .swig
|
||||||
|
%patch1 -p1 -b .php4
|
||||||
|
%endif
|
||||||
|
|
||||||
# fix spurious perm bits
|
# fix spurious perm bits
|
||||||
chmod -x tests/home.png
|
chmod -x tests/home.png
|
||||||
chmod -x mapscript/php/php_mapscript.c
|
chmod -x mapscript/php/php_mapscript.c
|
||||||
@ -95,12 +104,12 @@ popd
|
|||||||
|
|
||||||
CFLAGS="${CFLAGS} -ldl" ; export CFLAGS
|
CFLAGS="${CFLAGS} -ldl" ; export CFLAGS
|
||||||
|
|
||||||
# fix a UTF-8 one
|
# # fix a UTF-8 one
|
||||||
iconv -f ISO-8859-1 -t UTF-8 < \
|
# iconv -f ISO-8859-1 -t UTF-8 < \
|
||||||
mapscript/java/examples/QueryByAttributeUnicode.java > \
|
# mapscript/java/examples/QueryByAttributeUnicode.java > \
|
||||||
mapscript/java/examples/QueryByAttributeUnicode-tmp.java
|
# mapscript/java/examples/QueryByAttributeUnicode-tmp.java
|
||||||
mv -f mapscript/java/examples/QueryByAttributeUnicode-tmp.java \
|
# mv -f mapscript/java/examples/QueryByAttributeUnicode-tmp.java \
|
||||||
mapscript/java/examples/QueryByAttributeUnicode.java
|
# mapscript/java/examples/QueryByAttributeUnicode.java
|
||||||
|
|
||||||
# fix gdal lookup
|
# fix gdal lookup
|
||||||
%{__sed} -i.libs -e 's|`\$GDAL_CONFIG --dep-libs`||' configure
|
%{__sed} -i.libs -e 's|`\$GDAL_CONFIG --dep-libs`||' configure
|
||||||
@ -155,10 +164,10 @@ make
|
|||||||
cd ../python
|
cd ../python
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
# build java
|
# # build java
|
||||||
cd ../java
|
# cd ../java
|
||||||
make interface
|
# make interface JAVA_HOME=/etc/alternatives/java_sdk
|
||||||
make
|
# make JAVA_HOME=/etc/alternatives/java_sdk
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -185,9 +194,9 @@ 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/
|
||||||
@ -240,14 +249,25 @@ rm -rf %{buildroot}
|
|||||||
%doc mapscript/python/tests
|
%doc mapscript/python/tests
|
||||||
%{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
|
||||||
|
* Tue Oct 16 2012 Pavel Lisý <pali@fedoraproject.org> - 6.0.3-6
|
||||||
|
- temporary removed mapserver-java (mapscript) due to build problem
|
||||||
|
with jdk7
|
||||||
|
|
||||||
|
* Fri Oct 12 2012 Pavel Lisý <pali@fedoraproject.org> - 6.0.3-5
|
||||||
|
- Merged from 6.0.3-4
|
||||||
|
- fix of build for php4 and swig > 2.0.4
|
||||||
|
|
||||||
|
* Tue Aug 14 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 6.0.3-4
|
||||||
|
- Rebuilt for new perl.
|
||||||
|
|
||||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.3-3
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.3-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user