diff --git a/spatial4j-0.7.tar.gz b/spatial4j-0.7.tar.gz new file mode 100644 index 0000000..c562ede Binary files /dev/null and b/spatial4j-0.7.tar.gz differ diff --git a/spatial4j.spec b/spatial4j.spec new file mode 100644 index 0000000..562958e --- /dev/null +++ b/spatial4j.spec @@ -0,0 +1,47 @@ +Name: spatial4j +Version: 0.7 +Release: 1 +Summary: A Geospatial Library for Java +License: ASL 2.0 +URL: https://projects.eclipse.org/projects/locationtech.spatial4j +Source0: https://github.com/locationtech/spatial4j/archive/%{name}-%{version}/%{name}-%{version}.tar.gz +BuildRequires: maven-local mvn(com.carrotsearch.randomizedtesting:randomizedtesting-runner) +BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind) +BuildRequires: mvn(com.google.code.maven-replacer-plugin:replacer) mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) mvn(org.locationtech.jts:jts-core) +BuildRequires: mvn(org.mockito:mockito-core) 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} +%description javadoc +This package contains API documentation for %{name}. + +%prep +%setup -q -n %{name}-%{name}-%{version} +%pom_remove_plugin de.thetaphi:forbiddenapis +%pom_remove_plugin org.jacoco:jacoco-maven-plugin +%mvn_alias org.locationtech.spatial4j:spatial4j com.spatial4j:spatial4j + +%build +%mvn_build + +%install +%mvn_install + +%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 +* Fri Aug 14 2020 wangxiao - 0.7-1 +- Package init diff --git a/spatial4j.yaml b/spatial4j.yaml new file mode 100644 index 0000000..08d14e9 --- /dev/null +++ b/spatial4j.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/locationtech/spatial4j +version_control: github +src_repo: locationtech/spatial4j +tag_prefix: "spatial4j-" +seperator: "."