%global vertag e91772b1bc0b %bcond_with spring Name: snakeyaml Summary: YAML parser and emitter for Java Version: 1.26 Release: 2%{?dist} License: ASL 2.0 URL: https://bitbucket.org/asomov/%{name} Source0: %{url}/get/%{name}-%{version}.tar.gz # Upstream has forked gdata-java and base64 and refuses [1] to # consider replacing them by external dependencies. Bundled libraries # need to be removed and their use replaced by system libraries. # See rhbz#875777 and http://code.google.com/p/snakeyaml/issues/detail?id=175 # # Remove use of bundled Base64 implementation Patch0: 0001-Replace-bundled-base64-implementation.patch # We don't have gdata-java in Fedora any longer, use commons-codec instead Patch1: 0002-Replace-bundled-gdata-java-client-classes-with-commo.patch BuildArch: noarch BuildRequires: maven-local BuildRequires: mvn(biz.source_code:base64coder) BuildRequires: mvn(commons-codec:commons-codec) BuildRequires: mvn(commons-io:commons-io) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-lang3) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) BuildRequires: mvn(org.apache.velocity:velocity) %if %{with spring} BuildRequires: mvn(org.springframework:spring-core) BuildRequires: mvn(org.springframework:spring-beans) BuildRequires: mvn(org.springframework:spring-context-support) %endif %description SnakeYAML features: * a complete YAML 1.1 parser. In particular, SnakeYAML can parse all examples from the specification. * Unicode support including UTF-8/UTF-16 input/output. * high-level API for serializing and deserializing native Java objects. * support for all types from the YAML types repository. * relatively sensible error messages. %package javadoc Summary: API documentation for %{name} %description javadoc This package contains %{summary}. %package tests Summary: Tests jar for %{name} %description tests This package contains %{summary}. %prep %setup -q -n asomov-%{name}-%{vertag} %patch0 -p1 %patch1 -p1 %mvn_file : %{name} %pom_remove_plugin :cobertura-maven-plugin %pom_remove_plugin :maven-changes-plugin %pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :maven-license-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-site-plugin %pom_remove_plugin :nexus-staging-maven-plugin sed -i "/spring org.apache.maven.plugins maven-jar-plugin 3.1.2 test-jar ' %mvn_package org.yaml:snakeyaml:jar:tests:%{version} tests %build %mvn_build %install %mvn_install %files -f .mfiles %doc LICENSE.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt %files tests -f .mfiles-tests %changelog * Thu May 28 2020 Severin Gehwolf - 1.26-2 - Disable some tests due to instability. * Wed Apr 15 2020 Severin Gehwolf - 1.26-1 - Update to latest upstream 1.26 release. - Resolves: CVE-2017-18640 * Mon Oct 07 2019 Severin Gehwolf - 1.25-3 - Add tests sub-package. * Mon Oct 07 2019 Severin Gehwolf - 1.25-2 - Initial import from Fedora. - Remove joda-time test dependency.