[java-1.8.0-openjdk] Duplicating docs build. Trying to woarkaround koji rpmdiff S.5.... mismatch POSTUN

jiri vanek jvanek at fedoraproject.org
Wed Nov 5 07:52:13 UTC 2014


commit 97dad04f69d07668a8d6903aca7572fab1a89283
Author: Jiri <jvanek at redhat.com>
Date:   Wed Nov 5 08:51:05 2014 +0100

    Duplicating docs build. Trying to woarkaround koji rpmdiff S.5.... mismatch POSTUN

 java-1.8.0-openjdk.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/java-1.8.0-openjdk.spec b/java-1.8.0-openjdk.spec
index ff010d9..3ce0def 100644
--- a/java-1.8.0-openjdk.spec
+++ b/java-1.8.0-openjdk.spec
@@ -1171,16 +1171,20 @@ pushd %{buildoutputdir}
 if [ "$suffix" = "%{debug_suffix}" ] ; then
 # debug build passed, mv it to j2sdk-image-%%{debug_suffix}
   mv images/%{j2sdkimage ""} images/%{j2sdkimage %{debug_suffix_unquoted}}
+# same with docs
+  mv docs docs$suffix
 fi
 if [ %{include_normal_build} -eq 1 -a  %{include_debug_build} -eq 1 ] ; then
   if [ "$suffix" = "%{normal_suffix}" ] ; then
-# normal build just passed, and debug one is going to run
+# normal build just passed, and debug one is going to run. backup image and docs
     mv images/%{j2sdkimage ""} $normalBuildStore
+    mv docs $normalBuildStore
     make clean
   fi
   if [ "$suffix" = "%{debug_suffix}" ] ; then
-# debug build just passed, restore normal one (see that debug one already renamed)
+# debug build just passed, restore normal backups (see that debug one already renamed)
     mv $normalBuildStore/%{j2sdkimage ""} images/
+    mv $normalBuildStore/docs images/
   fi
 fi
 popd
@@ -1295,7 +1299,7 @@ popd
 
 # Install Javadoc documentation.
 install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
-cp -a %{buildoutputdir}/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir $suffix}
+cp -a %{buildoutputdir}/docs$suffix $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir $suffix}
 
 # Install icons and menu entries.
 for s in 16 24 32 48 ; do


More information about the scm-commits mailing list