File spatial4j.spec of Package spatial4j
#
# spec file for package spatial4j
#
# Copyright (c) 2022 SUSE LLC
#
# 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: spatial4j
Version: 0.8
Release: 0
Summary: A Geospatial Library for Java
License: Apache-2.0
Group: Documentation/HTML
URL: https://projects.eclipse.org/projects/locationtech.spatial4j
Source0: https://github.com/locationtech/spatial4j/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0: spatial4j-jts18.patch
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.locationtech.jts:jts-core)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.noggit:noggit)
BuildRequires: mvn(org.slf4j:slf4j-simple)
BuildArch: noarch
%description
Spatial4j is a general purpose spatial/geospatial Java library.
It's core capabilities are 3-fold: to provide common geospatially-aware shapes,
to provide distance calculations and other math, and to read and write the
shapes to strings.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation/HTML
%description javadoc
This package contains API documentation for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
%patch -P 0 -p1
# Unwanted tasks
%pom_remove_plugin de.thetaphi:forbiddenapis
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
# Backward compatibility aliases
%{mvn_alias} org.locationtech.spatial4j:spatial4j com.spatial4j:spatial4j
%build
%{mvn_build} -f -- -Dsource=8
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%doc CHANGES.md README.md FORMATS.md
%license asl-v20.txt notice.md
%files javadoc -f .mfiles-javadoc
%license asl-v20.txt notice.md
%changelog