From 139f616e150416b2152c341aa656d63697d585f7 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Thu, 2 Feb 2017 13:07:52 +0100 Subject: [PATCH] Add conditional for spring --- snakeyaml.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/snakeyaml.spec b/snakeyaml.spec index 4d43bd9..cae5bdf 100644 --- a/snakeyaml.spec +++ b/snakeyaml.spec @@ -1,8 +1,10 @@ %global vertag 70abb5efa4c0 +%bcond_without spring + Name: snakeyaml Version: 1.17 -Release: 1%{?dist} +Release: 2%{?dist} Summary: YAML parser and emitter for the Java programming language License: ASL 2.0 URL: https://bitbucket.org/asomov/%{name}/ @@ -26,10 +28,11 @@ BuildRequires: mvn(commons-codec:commons-codec) BuildRequires: mvn(joda-time:joda-time) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) -BuildRequires: mvn(org.apache.maven.plugins:maven-site-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) +%endif %description SnakeYAML features: @@ -59,6 +62,7 @@ This package contains %{summary}. %pom_remove_plugin :maven-changes-plugin %pom_remove_plugin :maven-license-plugin %pom_remove_plugin :maven-javadoc-plugin +%pom_remove_plugin :maven-site-plugin sed -i "/spring - 1.17-2 +- Add conditional for spring + * Mon Oct 17 2016 Michael Simacek - 1.17-1 - Update to upstream version 1.17