[shogun/el5] improve preserving of prestine examples

Björn Esser besser82 at fedoraproject.org
Mon Feb 24 14:35:08 UTC 2014


commit a331050b8b2feeb072d095db2cf843c400cb299a
Author: Björn Esser <bjoern.esser at gmail.com>
Date:   Mon Feb 24 15:35:04 2014 +0100

    improve preserving of prestine examples

 shogun.spec |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)
---
diff --git a/shogun.spec b/shogun.spec
index 6d02243..23b1e55 100644
--- a/shogun.spec
+++ b/shogun.spec
@@ -838,19 +838,16 @@ do
   find doc -depth -type f -name "${_del}" -print0 | xargs -0 rm -rf
 done
 
-###############################################################################
-
-%check
-# Keep a clean copy of examples.
-cp -a examples examples.clean
-
 # Add data to clean examples, because they need it to be run.
 for _dir in 'documented' 'undocumented'
 do
-  unlink examples.clean/${_dir}/data
-  ln -fs %{_datadir}/%{name}/data/toy examples/${_dir}/data
+  unlink doc/examples/${_dir}/data
+  ln -fs %{_datadir}/%{name}/data/toy doc/examples/${_dir}/data
 done
 
+###############################################################################
+
+%check
 %if 0%{?with_tests}
 # Disabled tests:
 #
@@ -897,10 +894,6 @@ popd
 %endif #0%{?with_python3}
 %endif #0%{?with_tests}
 
-# Restore the clean copy
-rm -rf examples
-mv examples.clean examples
-
 ###############################################################################
 
 %{?el5:%clean}


More information about the scm-commits mailing list