From a6f6c6ffa6d9a403a5d0bfe84abb538954ea32e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Fri, 27 Jan 2017 15:00:42 +0100 Subject: [PATCH] Compatibility with Java 8 in EPEL 7 - fix syntax --- jOCCI-api/jOCCI-api.spec | 2 +- jOCCI-core/jOCCI-core.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jOCCI-api/jOCCI-api.spec b/jOCCI-api/jOCCI-api.spec index 9368c80..8da401e 100644 --- a/jOCCI-api/jOCCI-api.spec +++ b/jOCCI-api/jOCCI-api.spec @@ -51,7 +51,7 @@ This package contains the API documentation for %{name}. %pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin # compatibility with Java >= 8 (required for EPEL 7 only, not needed in F26+) -find src -type f -name \*.java sed -i -e '/@author/{s//\>\;/g}' {} \; +find src -type f -name \*.java -exec sed -i -e '/@author/{s//\>\;/g}' {} \; %build diff --git a/jOCCI-core/jOCCI-core.spec b/jOCCI-core/jOCCI-core.spec index 6727837..31fd506 100644 --- a/jOCCI-core/jOCCI-core.spec +++ b/jOCCI-core/jOCCI-core.spec @@ -43,7 +43,7 @@ This package contains the API documentation for %{name}. %pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin # compatibility with Java >= 8 (required for EPEL 7 only, not needed in F26+) -find src -type f -name \*.java sed -i -e '/@author/{s//\>\;/g}' {} \; +find src -type f -name \*.java -exec sed -i -e '/@author/{s//\>\;/g}' {} \; %build -- 1.8.2.3