Files
jsonb-api/jsonb-api.spec

78 lines
2.4 KiB
RPMSpec

#
# spec file for package jsonb-api
#
# 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: jsonb-api
Version: 3.0.1
Release: 0
Summary: Jakarta JSON Binding
License: EPL-2.0
Group: Development/Libraries/Java
URL: https://github.com/jakartaee/%{name}
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(biz.aQute.bnd:bnd-baseline-maven-plugin)
BuildRequires: mvn(jakarta.json:jakarta.json-api)
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)
BuildArch: noarch
%description
JSON-B is a standard binding layer for converting Java objects to/from JSON
messages. It defines a default mapping algorithm for converting existing Java
classes to JSON, while enabling developers to customize the mapping process
through the use of Java annotations.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%pom_remove_plugin :maven-javadoc-plugin api
%pom_remove_plugin :maven-source-plugin api
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin api
%pom_remove_plugin :maven-jxr-plugin api
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin api
%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 {README,CONTRIBUTING}.md
%files javadoc -f api/.mfiles-javadoc
%license {NOTICE,LICENSE}.md
%changelog