Name: jakarta-json Version: 1.1.6 Release: 5%{?dist} Summary: Jakarta JSON Processing License: EPL-2.0 or GPLv2 with exceptions URL: https://eclipse-ee4j.github.io/jsonp/ Source0: https://github.com/eclipse-ee4j/jsonp/archive/1.1-%{version}-RELEASE.tar.gz # Update deprecated method calls Patch0: %{name}-deprecated.patch BuildRequires: maven BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.glassfish.build:spec-version-maven-plugin) BuildArch: noarch # These can be removed when Fedora 36 reaches EOL Obsoletes: jsonp < 1.0.4-12 Provides: jsonp = %{version}-%{release} Obsoletes: jsonp-javadoc < 1.0.4-12 # These can be removed when Fedora 38 reaches EOL Obsoletes: jakarta-json-jaxrs < 1.1.6-5 Obsoletes: jakarta-json-jaxrs-1x < 1.1.6-5 %global _desc %{expand: Jakarta JSON Processing provides portable APIs to parse, generate, transform, and query JSON documents.} %description %_desc This package contains an implementation of Jakarta JSON Processing. # Uncomment this once javadocs can be generated again # See https://github.com/fedora-java/xmvn/issues/58 #%%{?javadoc_package} %package api Summary: Jakarta JSON Processing API %description api %_desc This package contains the Jakarta JSON Processing API. %package impl Summary: Jakarta JSON Processing default provider Requires: %{name}-api = %{version}-%{release} %description impl %_desc This package contains the default provider for Jakarta JSON Processing. %prep %autosetup -n jsonp-1.1-%{version}-RELEASE -p1 # org.eclipse.ee4j:project is not available in Fedora %pom_remove_parent # Disable unwanted modules in the default profile # - bundles: make distribution bundles # - demos: build demos # - gf: create WARs # - jaxrs: depends on jaxb, which has been retired # - jaxrs-1x: depends on jaxb, which has been retired %pom_xpath_remove "//pom:profile[//pom:id='all']/pom:modules/pom:module[text()='bundles' or text()='demos' or text()='gf' or text()='jaxrs' or text()='jaxrs-1x']" # Unnecessary plugins for an RPM build %pom_remove_plugin -r org.apache.maven.plugins:maven-release-plugin %pom_remove_plugin -r org.glassfish.copyright:glassfish-copyright-maven-plugin %pom_remove_plugin org.codehaus.mojo:wagon-maven-plugin %pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin %pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin api %pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin impl %pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin jaxrs %pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin jaxrs-1x # Due to jaxb retirement, remove support for jsr311-api (javax.ws.rs-api) %pom_remove_dep javax.ws.rs:jsr311-api # Do not copy the API classes into the implementation JAR %pom_xpath_remove "//pom:plugin[pom:artifactId ='maven-bundle-plugin']//pom:Export-Package" impl # Do not install the tests %mvn_package org.glassfish:jsonp-tests __noinstall # Provide aliases for old names %mvn_alias jakarta.json:jakarta.json-api javax.json:javax.json-api %mvn_alias org.glassfish:jakarta.json org.glassfish:javax.json %build # Skip javadoc build due to https://github.com/fedora-java/xmvn/issues/58 %mvn_build -s -j -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -f .mfiles-json %license LICENSE.md NOTICE.md %files api -f .mfiles-jakarta.json-api %doc README.md %license LICENSE.md NOTICE.md %files impl -f .mfiles-jakarta.json %changelog * Fri Oct 8 2021 Jerry James - 1.1.6-5 - Drop the jaxrs and jaxrs-1x subpackages, since they depend on jaxb * Fri Oct 8 2021 Jerry James - 1.1.6-4 - Remove dependency on jaxb, which has been retired * Sat Aug 14 2021 Jerry James - 1.1.6-3 - Add jakarta-annotation and junit BuildRequires * Thu Jul 22 2021 Fedora Release Engineering - 1.1.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Nov 25 2020 Jerry James - 1.1.6-1 - Change name from "jsonp" - Version 1.1.6 - Split into subpackages to manage dependencies