# # spec file for package jakarta-jsonp-api # # Copyright (c) 2024 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/ # %define __requires_exclude java-headless %global base_name jsonp-api Name: jakarta-%{base_name} Version: 2.1.3 Release: 0 Summary: Jakarta JSON Processing License: EPL-2.0 Group: Development/Libraries/Java URL: https://eclipse.org/ee4j/jsonp Source0: https://github.com/jakartaee/%{base_name}/archive/refs/tags/%{version}-RELEASE.tar.gz BuildRequires: fdupes BuildRequires: java-devel >= 9 BuildRequires: maven-local BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.eclipse.ee4j:project:pom:) BuildRequires: mvn(org.glassfish.build:spec-version-maven-plugin) Requires: java-headless >= 1.8 BuildArch: noarch %description Jakarta JSON Processing provides portable APIs to parse, generate, transform, and query JSON documents. This project contains Jakarta JSON Processing specification, API and TCK. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %autosetup -n %{base_name}-%{version}-RELEASE %pom_remove_plugin :maven-enforcer-plugin api %pom_remove_plugin :maven-javadoc-plugin api %pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin api %{mvn_file} ':{*}' @1 %build pushd api %{mvn_build} -f popd %install pushd api %mvn_install %fdupes %{buildroot}%{_javadocdir}/%{name} popd %files -f api/.mfiles %license {NOTICE,LICENSE}.md %doc {CONTRIBUTING,README}.md %files javadoc -f api/.mfiles-javadoc %license {NOTICE,LICENSE}.md %changelog