Accepting request 143509 from home:tzotsos:Application:Geo
created a devel package (needed by MapCache) OBS-URL: https://build.opensuse.org/request/show/143509 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=94
This commit is contained in:
parent
cf9e22decb
commit
29e64defa3
@ -119,6 +119,15 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
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.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Mapserver development files
|
||||||
|
Group: Productivity/Scientific/Other
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The Mapserver development package provides necessary files to build
|
||||||
|
against the C Mapserver library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{fileversion}
|
%setup -q -n %{name}-%{fileversion}
|
||||||
|
|
||||||
@ -163,27 +172,15 @@ within the Java programming language.
|
|||||||
# using %{?_smp_mflags} may break build
|
# using %{?_smp_mflags} may break build
|
||||||
|
|
||||||
make
|
make
|
||||||
# temporary hack!
|
|
||||||
make mapscriptvars
|
make mapscriptvars
|
||||||
#sed -i -e "s;libdir='%{_libdir}';libdir='%{buildroot}%{_libdir}';" libmapserver.la
|
|
||||||
#sed -i -e "s;libdir='%{python_sitearch}';libdir='%{buildroot}%{python_sitearch}';" mapscript/python/_mapscript.la
|
|
||||||
#sed -i -e "s;libdir='/usr/lib64/php/modules';libdir='%{buildroot}/usr/lib64/php/modules';" mapscript/php/php_mapscript.la
|
|
||||||
|
|
||||||
## build perl
|
## build perl
|
||||||
cd mapscript/perl
|
cd mapscript/perl
|
||||||
perl Makefile.PL
|
perl Makefile.PL
|
||||||
make
|
make
|
||||||
|
|
||||||
## build python
|
|
||||||
#cd ../python
|
|
||||||
#python setup.py build
|
|
||||||
|
|
||||||
# build java
|
# build java
|
||||||
#touch ../mapscript.i
|
|
||||||
cd ../java
|
cd ../java
|
||||||
#JAVA_HOME=%{java_home} make
|
|
||||||
#sed -i -e "s;libdir='%{_libdir}';libdir='%{buildroot}%{_libdir}';" libjavamapscript.la
|
|
||||||
#make interface
|
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -195,36 +192,20 @@ mkdir -p %{buildroot}/%{_sysconfdir}/php.d
|
|||||||
mkdir -p %{buildroot}%{_libdir}/php5/extensions
|
mkdir -p %{buildroot}%{_libdir}/php5/extensions
|
||||||
mkdir -p %{buildroot}/%{_bindir}
|
mkdir -p %{buildroot}/%{_bindir}
|
||||||
mkdir -p %{buildroot}%{python_sitearch}/
|
mkdir -p %{buildroot}%{python_sitearch}/
|
||||||
|
mkdir -p %{buildroot}/%{_includedir}/mapserver
|
||||||
|
cp *.h %{buildroot}/%{_includedir}/mapserver/
|
||||||
|
|
||||||
make DESTDIR=%{buildroot} install
|
make DESTDIR=%{buildroot} install
|
||||||
|
|
||||||
cp %{buildroot}%{_bindir}/mapserv %{buildroot}%{_cgibindir}/mapserv
|
cp %{buildroot}%{_bindir}/mapserv %{buildroot}%{_cgibindir}/mapserv
|
||||||
cp %{buildroot}%{_bindir}/legend %{buildroot}%{_cgibindir}/legend
|
cp %{buildroot}%{_bindir}/legend %{buildroot}%{_cgibindir}/legend
|
||||||
cp %{buildroot}%{_bindir}/scalebar %{buildroot}%{_cgibindir}/scalebar
|
cp %{buildroot}%{_bindir}/scalebar %{buildroot}%{_cgibindir}/scalebar
|
||||||
#install -p -m 755 shp2img %{buildroot}%{_bindir}
|
|
||||||
#install -p -m 755 shptree %{buildroot}%{_bindir}
|
|
||||||
#install -p -m 755 sortshp %{buildroot}%{_bindir}
|
|
||||||
#install -p -m 755 tile4ms %{buildroot}%{_bindir}
|
|
||||||
|
|
||||||
#install -p -m 755 mapscript/php/.libs/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
|
|
||||||
#pushd mapscript/python
|
|
||||||
|
|
||||||
#python setup.py install --root %{buildroot}
|
|
||||||
#mv %{buildroot}/usr/local/%{_lib}/python%py_ver/site-packages/*mapscript* %{buildroot}/usr/%{_lib}/python%py_ver/site-packages/
|
|
||||||
#%if 0%{?suse_version} > 1110 || 0%{?sles_version} > 10
|
|
||||||
# mv %{buildroot}/usr/local/%{_lib}/python%py_ver/site-packages/MapScript* %{buildroot}/usr/%{_lib}/python%py_ver/site-packages/
|
|
||||||
#%endif
|
|
||||||
#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}/
|
||||||
@ -262,7 +243,6 @@ rm -rf %{buildroot}
|
|||||||
%{_bindir}/mapserv
|
%{_bindir}/mapserv
|
||||||
%{_bindir}/legend
|
%{_bindir}/legend
|
||||||
%{_bindir}/scalebar
|
%{_bindir}/scalebar
|
||||||
%{_bindir}/mapserver-config
|
|
||||||
%{_bindir}/msencrypt
|
%{_bindir}/msencrypt
|
||||||
%{_bindir}/shptreetst
|
%{_bindir}/shptreetst
|
||||||
%{_bindir}/shptreevis
|
%{_bindir}/shptreevis
|
||||||
@ -270,7 +250,6 @@ rm -rf %{buildroot}
|
|||||||
%{_cgibindir}/legend
|
%{_cgibindir}/legend
|
||||||
%{_cgibindir}/scalebar
|
%{_cgibindir}/scalebar
|
||||||
%{_libdir}/libmapserver-6.*.so
|
%{_libdir}/libmapserver-6.*.so
|
||||||
%{_libdir}/libmapserver.la
|
|
||||||
%{_libdir}/libmapserver.so
|
%{_libdir}/libmapserver.so
|
||||||
|
|
||||||
%files -n php-mapserver
|
%files -n php-mapserver
|
||||||
@ -305,4 +284,11 @@ rm -rf %{buildroot}
|
|||||||
%doc mapscript/java/tests
|
%doc mapscript/java/tests
|
||||||
%{_javadir}/*.jar
|
%{_javadir}/*.jar
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/mapserver-config
|
||||||
|
%{_libdir}/libmapserver.la
|
||||||
|
%dir %{_includedir}/mapserver
|
||||||
|
%{_includedir}/mapserver/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user