File parsson.spec of Package parsson

#
# spec file for package parsson
#
# 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/
#


Name:           parsson
Version:        1.1.7
Release:        0
Summary:        An implementation of Jakarta JSON Processing specification
License:        EPL-2.0
Group:          Development/Libraries/Java
URL:            https://github.com/eclipse-ee4j/%{name}
Source0:        %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  maven-local
BuildRequires:  mvn(jakarta.annotation:jakarta.annotation-api)
BuildRequires:  mvn(jakarta.json:jakarta.json-api)
BuildRequires:  mvn(jakarta.servlet:jakarta.servlet-api)
BuildRequires:  mvn(jakarta.ws.rs:jakarta.ws.rs-api) >= 4.0.0
BuildRequires:  mvn(jakarta.xml.bind:jakarta.xml.bind-api)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-war-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
Eclipse Parsson is an implementation of Jakarta JSON Processing specification.

%package javadoc
Summary:        API documentation for %{name}
Group:          Documentation/HTML

%description javadoc
API documentation for %{name}.

%prep
%autosetup

%pom_disable_module bundles
%pom_disable_module demos
%pom_disable_module providers

%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin

%pom_change_dep jakarta.json:jakarta.json-api :::compile bundles/jakarta.json

%build
%{mvn_build} -f -- \
	-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)

%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}

%files -f .mfiles
%license {NOTICE,LICENSE}.md
%doc {CONTRIBUTING,README}.md

%files javadoc -f .mfiles-javadoc
%license {NOTICE,LICENSE}.md

%changelog
openSUSE Build Service is sponsored by