# # spec file for package snakeyaml-engine # # 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 git_hash 204c3915817e Name: snakeyaml-engine Version: 2.7 Release: 0 Summary: YAML 1.2 parser and emitter for Java 8+ License: Apache-2.0 Group: Development/Libraries/Java URL: https://bitbucket.org/snakeyaml/%{name} Source0: %{url}/get/%{name}-%{version}.tar.bz2 Patch0: snakeyaml-engine-module-info.patch BuildRequires: fdupes BuildRequires: java-devel >= 9 BuildRequires: maven-local BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine) Requires: java-headless >= 1.8 BuildArch: noarch %description YAML is a data serialization format designed for human readability and interaction with scripting languages. SnakeYAML Engine is a YAML 1.2 processor for the Java Virtual Machine version 8 and higher. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %setup -q -n snakeyaml-%{name}-%{git_hash} %patch -P 0 -p1 %pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin %pom_remove_plugin :maven-source-plugin %pom_remove_plugin :maven-site-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin net.revelc.code.formatter:formatter-maven-plugin %{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 LICENSE.txt %doc README.md TODO.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog