81 lines
2.6 KiB
RPMSpec
81 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package yasson
|
|
#
|
|
# 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: yasson
|
|
Version: 3.0.4
|
|
Release: 0
|
|
Summary: A standard binding layer between Java classes and JSON documents
|
|
License: EPL-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://projects.eclipse.org/projects/ee4j.yasson
|
|
Source0: https://github.com/eclipse-ee4j/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: java-devel >= 17
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(jakarta.enterprise:jakarta.enterprise.cdi-api) >= 4.1.0
|
|
BuildRequires: mvn(jakarta.json.bind:jakarta.json.bind-api)
|
|
BuildRequires: mvn(javax.json:javax.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.eclipse.parsson:parsson)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Yasson is a Java framework which provides a standard binding layer between Java
|
|
classes and JSON documents. This is similar to what JAXB is doing in the XML
|
|
world. Yasson is an official reference implementation of JSON Binding
|
|
(JSR-367).
|
|
|
|
%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
|
|
%pom_remove_plugin :maven-source-plugin
|
|
%pom_remove_plugin :maven-enforcer-plugin
|
|
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
|
|
%pom_remove_plugin :maven-failsafe-plugin
|
|
|
|
%pom_change_dep jakarta.json:jakarta.json-api javax.json:javax.json-api
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
%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
|