# # spec file for package geoapi # # Copyright (c) 2025 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: geoapi Version: 3.0.2 Release: 0 Summary: A set of interfaces in programming languages for geospatial applications License: Apache-2.0 Group: Development/Libraries/Java URL: https://www.geoapi.org/ Source0: https://github.com/opengeospatial/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch0: 00-unit-api-no-jpms.patch BuildRequires: maven-local BuildRequires: mvn(javax.measure:unit-api) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildArch: noarch %description GeoAPI provides a set of Java and Python language programming interfaces for geospatial applications. The interfaces developed by the GeoAPI project include data structures and manipulation methods needed for geographic information system applications. The GeoAPI interfaces closely follow the abstract models and concrete specifications published collaboratively by the International Organization for Standardization (ISO) in its 19100 series of documents and the Open Geospatial Consortium (OGC) in its abstract and implementation specifications. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %setup -q %patch -P 0 -p1 %if %{?pkg_vcmp:%pkg_vcmp java-devel < 17}%{!?pkg_vcmp:0} %pom_disable_module tools %endif %pom_xpath_remove pom:manifest %pom_remove_plugin :maven-source-plugin %pom_remove_plugin :maven-enforcer-plugin %build %{mvn_build} -f #-- -Dmaven.compiler.{source,target}=11 %install %mvn_install %files -f .mfiles %license LICENSE.txt %doc README.md %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog