[packages/java-jts] new, version 1.11
glen
glen at pld-linux.org
Tue Apr 2 23:59:37 CEST 2013
commit 578029c1551543588f9eda57365c6709a93678d1
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Apr 3 00:59:14 2013 +0300
new, version 1.11
build.xml from debian
build.xml | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
java-jts.spec | 57 ++++++++++++++++++++++++++++++++++++++
2 files changed, 145 insertions(+)
---
diff --git a/java-jts.spec b/java-jts.spec
new file mode 100644
index 0000000..37face1
--- /dev/null
+++ b/java-jts.spec
@@ -0,0 +1,57 @@
+%define srcname jts
+%include /usr/lib/rpm/macros.java
+Summary: JTS Topology Suite
+Name: java-%{srcname}
+Version: 1.11
+Release: 0.1
+License: LGPL v2.1
+Group: Libraries/Java
+Source0: http://downloads.sourceforge.net/jts-topo-suite/jts-%{version}.zip
+# Source0-md5: fdf2401361290c73cb0785bb25c9257f
+Source1: build.xml
+URL: http://tsusiatsoftware.net/jts/main.html
+BuildRequires: ant
+BuildRequires: jpackage-utils
+BuildRequires: jre
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.300
+BuildRequires: unzip
+Requires: java-jdom
+Requires: java-xerces
+Requires: jpackage-utils
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+JTS is a java library which provides:
+- an implementation of the spatial data model defined in the OGC
+ Simple Features Specification for SQL (SFS)
+- a complete, consistent, implementation of fundamental 2D spatial
+ algorithms
+- an explicit precision model, with algorithms that gracefully handle
+ situations that result in dimensional collapse
+- robust implementations of key computational geometric operations
+- I/O in Well-Known Text format
+
+%prep
+%setup -qc
+cp -p %{SOURCE1} .
+
+%build
+%ant -Dbasedir=.
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# jars
+install -d $RPM_BUILD_ROOT%{_javadir}
+cp -p target/%{srcname}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar
+ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_javadir}/%{srcname}-%{version}.jar
+%{_javadir}/%{srcname}.jar
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..0d01e46
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,88 @@
+<project name="JTS" default="compile" basedir="..">
+
+<!-- ========== Component Declarations ==================================== -->
+
+
+ <!-- The name of this component -->
+ <property name="component.name" value="jts"/>
+
+ <!-- The base directory for compilation targets -->
+ <property name="build.home" value="${basedir}/target"/>
+
+ <!-- The base directory for component sources -->
+ <property name="source.home" value="${basedir}/src"/>
+
+ <!-- The base directory for component configuration files -->
+ <property name="conf.home" value="${basedir}/src"/>
+
+<!-- ========== Compiler Defaults ========================================= -->
+
+
+ <!-- Should Java compilations set the 'debug' compiler option? -->
+ <property name="compile.debug" value="true"/>
+
+ <!-- Should Java compilations set the 'deprecation' compiler option? -->
+ <property name="compile.deprecation" value="false"/>
+
+ <!-- Should Java compilations set the 'optimize' compiler option? -->
+ <property name="compile.optimize" value="false"/>
+
+ <!-- Construct compile classpath -->
+ <path id="compile.classpath">
+ <pathelement location="${build.home}/classes"/>
+ </path>
+
+
+<!-- ========== Executable Targets ======================================== -->
+
+ <target name="prepare" description="Prepare build directory">
+ <mkdir dir="${build.home}"/>
+ <mkdir dir="${build.home}/classes"/>
+ <mkdir dir="${build.home}/conf"/>
+ <mkdir dir="${build.home}/docs"/>
+ <mkdir dir="${build.home}/docs/api"/>
+ <mkdir dir="${build.home}/docs/examples"/>
+ </target>
+
+ <target name="static" depends="prepare"
+ description="Copy static files to build directory">
+ <tstamp/>
+ <copy todir="${build.home}/conf" filtering="on">
+ <fileset dir="${conf.home}" includes="*.MF"/>
+ <fileset dir="${conf.home}" includes="*.properties"/>
+ </copy>
+ <copy todir="${build.home}/docs/examples" filtering="on">
+ <fileset dir="${source.home}" includes="**/jtsexample/**"/>
+ </copy>
+ </target>
+
+ <target name="compile" depends="static">
+ <javac srcdir="${source.home}" destdir="${build.home}/classes"
+ debug="${compile.debug}" deprecation="${compile.deprecation}"
+ optimize="${compile.optimize}" verbose="no" source="1.3" nowarn="yes">
+ <exclude name="**/jtsexample/**"/>
+ <classpath refid="compile.classpath"/>
+ </javac>
+
+ <mkdir dir="${build.home}/classes/META-INF"/>
+
+ <jar jarfile="${build.home}/${component.name}.jar"
+ basedir="${build.home}/classes"
+ manifest="${build.home}/conf/MANIFEST.MF">
+ <include name="com/vividsolutions/**" />
+ </jar>
+
+ </target>
+
+ <target name="clean" description="Clean build and distribution directories">
+ <delete dir="${build.home}"/>
+ </target>
+
+ <target name="all" depends="clean,compile"
+ description="Clean and compile all components">
+ <javadoc packagenames="com.vividsolutions.jts.*" sourcepath="${source.home}"
+ destdir="${build.home}/docs/api" defaultexcludes="yes">
+ </javadoc>
+ </target>
+
+</project>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/java-jts.git/commitdiff/578029c1551543588f9eda57365c6709a93678d1
More information about the pld-cvs-commit
mailing list