2020-09-08 18:21:13 +00:00
|
|
|
#
|
|
|
|
# spec file for package jts
|
|
|
|
#
|
2023-09-14 15:35:04 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-09-08 18:21:13 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: jts
|
2024-10-05 17:48:25 +00:00
|
|
|
Version: 1.20.0
|
2020-09-08 18:21:13 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Java Topology Suite
|
|
|
|
License: EPL-1.0
|
|
|
|
Group: Development/Libraries/Java
|
2023-09-14 15:35:04 +00:00
|
|
|
URL: https://projects.eclipse.org/projects/locationtech.%{name}
|
|
|
|
Source0: https://github.com/locationtech/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2020-09-08 18:44:02 +00:00
|
|
|
BuildRequires: fdupes
|
2020-09-08 18:21:13 +00:00
|
|
|
BuildRequires: maven-local
|
2020-09-08 18:44:02 +00:00
|
|
|
BuildRequires: mvn(com.googlecode.json-simple:json-simple)
|
|
|
|
BuildRequires: mvn(org.apache.commons:commons-lang3)
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
2023-09-15 06:30:16 +00:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin)
|
2020-09-08 18:44:02 +00:00
|
|
|
BuildRequires: mvn(org.jdom:jdom2)
|
2020-09-08 18:21:13 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The LocationTech JTS Topology Suite (JTS) is an open source Java software
|
|
|
|
library that provides an object model for planar geometry together with a
|
|
|
|
set of fundamental geometric functions. JTS conforms to the Simple Features
|
|
|
|
Specification for SQL published by the Open GIS Consortium. JTS is designed
|
|
|
|
to be used as a core component of vector-based geomatics software such as
|
|
|
|
geographical information systems. It can also be used as a general-purpose
|
|
|
|
library providing algorithms in computational geometry.
|
|
|
|
|
|
|
|
%package app
|
|
|
|
Summary: JTS Applications & tools
|
2020-09-08 18:44:02 +00:00
|
|
|
Group: Development/Libraries/Java
|
2020-09-08 18:21:13 +00:00
|
|
|
|
|
|
|
%description app
|
|
|
|
Applications & tools for working with JTS.
|
|
|
|
|
|
|
|
%package example
|
|
|
|
Summary: JTS Examples
|
2020-09-08 18:44:02 +00:00
|
|
|
Group: Development/Libraries/Java
|
2020-09-08 18:21:13 +00:00
|
|
|
|
|
|
|
%description example
|
|
|
|
Examples of working JTS code.
|
|
|
|
|
|
|
|
%package io
|
|
|
|
Summary: JTS IO
|
2020-09-08 18:44:02 +00:00
|
|
|
Group: Development/Libraries/Java
|
2020-09-08 18:21:13 +00:00
|
|
|
|
|
|
|
%description io
|
|
|
|
Extension to assist in read / write operations.
|
|
|
|
|
|
|
|
%package parent
|
|
|
|
Summary: JTS Parent POMs
|
2020-09-08 18:44:02 +00:00
|
|
|
Group: Development/Libraries/Java
|
2020-09-08 18:21:13 +00:00
|
|
|
|
|
|
|
%description parent
|
|
|
|
Maven POMs for project inheritance.
|
|
|
|
|
|
|
|
%package lab
|
|
|
|
Summary: JTS Lab
|
2020-09-08 18:44:02 +00:00
|
|
|
Group: Development/Libraries/Java
|
2020-09-08 18:21:13 +00:00
|
|
|
|
|
|
|
%description lab
|
|
|
|
Algorithms for JTS which are exploratory or in-progress
|
|
|
|
|
2022-03-08 07:15:14 +00:00
|
|
|
%package build-tools
|
|
|
|
Summary: JTS Build Tools
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description build-tools
|
|
|
|
JTS Topology Suite Build Configuration
|
|
|
|
|
2020-09-08 18:21:13 +00:00
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
2020-09-08 18:44:02 +00:00
|
|
|
Group: Development/Libraries/Java
|
2020-09-08 18:21:13 +00:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains API documentation for %{name}.
|
|
|
|
|
2021-06-28 08:07:35 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains documentation for %{name}.
|
|
|
|
|
2020-09-08 18:21:13 +00:00
|
|
|
%prep
|
2023-09-14 15:35:04 +00:00
|
|
|
%setup -q
|
2020-09-08 18:21:13 +00:00
|
|
|
|
|
|
|
# Uneeded plugins for RPM builds
|
2020-09-08 18:44:02 +00:00
|
|
|
%pom_remove_plugin :maven-source-plugin
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
2020-09-08 18:21:13 +00:00
|
|
|
%pom_remove_plugin :maven-release-plugin
|
2022-03-08 07:15:14 +00:00
|
|
|
%pom_remove_plugin :maven-pmd-plugin
|
|
|
|
%pom_remove_plugin :maven-checkstyle-plugin
|
|
|
|
%pom_remove_plugin :maven-site-plugin
|
2020-09-08 18:21:13 +00:00
|
|
|
|
|
|
|
# Don't bundle deps
|
|
|
|
%pom_remove_plugin :maven-assembly-plugin modules/tests modules/app
|
|
|
|
|
|
|
|
# Backward compatibility aliases
|
|
|
|
%{mvn_alias} org.locationtech.jts:jts-core com.vividsolutions:jts-core com.vividsolutions:jts
|
|
|
|
%{mvn_alias} org.locationtech.jts.io:jts-io-common com.vividsolutions:jts-io
|
|
|
|
|
|
|
|
%{mvn_package} ":jts-io*" jts-io
|
|
|
|
%{mvn_package} ":jts-lab*" jts-lab
|
|
|
|
%{mvn_package} ":jts{,-modules}" jts-parent
|
|
|
|
%{mvn_package} ":jts-tests" jts-app
|
|
|
|
|
|
|
|
%build
|
2022-05-05 10:08:53 +00:00
|
|
|
%{mvn_build} -sfj -- \
|
2020-09-08 18:44:02 +00:00
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
2023-09-13 05:22:55 +00:00
|
|
|
-Dmaven.compiler.release=8 \
|
2020-09-08 18:44:02 +00:00
|
|
|
%endif
|
2023-09-13 05:22:55 +00:00
|
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
|
|
|
|
-Dsource=8 org.apache.maven.plugins:maven-javadoc-plugin:aggregate
|
2020-09-08 18:21:13 +00:00
|
|
|
|
|
|
|
%install
|
2020-09-08 18:44:02 +00:00
|
|
|
%mvn_install
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
2021-06-28 08:07:35 +00:00
|
|
|
install -dm0755 %{buildroot}%{_defaultdocdir}/%{name}
|
|
|
|
cp README.md USING.md MIGRATION.md doc/* %{buildroot}%{_defaultdocdir}/%{name}
|
2020-09-08 18:21:13 +00:00
|
|
|
|
|
|
|
%files -f .mfiles-%{name}-core
|
|
|
|
%license LICENSE*
|
|
|
|
|
|
|
|
%files app -f .mfiles-%{name}-app
|
|
|
|
|
|
|
|
%files example -f .mfiles-%{name}-example
|
|
|
|
|
|
|
|
%files io -f .mfiles-%{name}-io
|
|
|
|
|
|
|
|
%files lab -f .mfiles-%{name}-lab
|
|
|
|
|
2022-03-08 07:15:14 +00:00
|
|
|
%files build-tools -f .mfiles-build-tools
|
|
|
|
|
2020-09-08 18:21:13 +00:00
|
|
|
%files parent -f .mfiles-%{name}-parent
|
|
|
|
%license LICENSE*
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license LICENSE*
|
|
|
|
|
2021-06-28 08:07:35 +00:00
|
|
|
%files doc
|
|
|
|
%license LICENSE*
|
|
|
|
%{_defaultdocdir}/%{name}
|
|
|
|
|
2020-09-08 18:21:13 +00:00
|
|
|
%changelog
|