[yap] Package not-installed examples

Petr Pisar ppisar at fedoraproject.org
Tue Jan 4 10:46:56 UTC 2011


commit 723bc7b2fcf87c042ba70d89bc69913560f27771
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue Jan 4 10:46:32 2011 +0100

    Package not-installed examples

 yap.spec |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/yap.spec b/yap.spec
index 6fe7b6f..a4601e9 100644
--- a/yap.spec
+++ b/yap.spec
@@ -139,7 +139,7 @@ make DESTDIR=$RPM_BUILD_ROOT install_info
 chmod 0644 $RPM_BUILD_ROOT%{_datadir}/Yap/pl/*
 chmod 0644 $RPM_BUILD_ROOT%{_includedir}/Yap/*
 
-# move examples to docs dir
+# Move installed examples to docs dir
 %global documentation docs-documentation
 for P in clpbn; do 
     mkdir -p "%{documentation}/examples/${P}"
@@ -147,6 +147,24 @@ for P in clpbn; do
         "%{documentation}/examples/${P}"
     rmdir "$RPM_BUILD_ROOT%{_datadir}/Yap/${P}/examples"
 done
+for P in minisat problog; do 
+    mkdir -p "%{documentation}/examples/${P}"
+    mv "$RPM_BUILD_ROOT%{_datadir}/Yap/${P}_examples/"* \
+        "%{documentation}/examples/${P}"
+    rmdir "$RPM_BUILD_ROOT%{_datadir}/Yap/${P}_examples"
+done
+# Copy not-installed examples to docs dir
+# CLPBN/*, swi-minisat2 installed already
+# TODO: jpl documentation with java support
+# TODO: mpi documentation with mpi support
+for P in pyswip cplint http plunit; do 
+    mkdir -p "%{documentation}/examples/${P}"
+    cp -a "packages/${P}/examples/"* "%{documentation}/examples/${P}"
+done
+for P in LGPL/pillow; do 
+    mkdir -p "%{documentation}/examples/${P}"
+    cp -a "${P}/examples/"* "%{documentation}/examples/${P}"
+done
 
 # Remove empty files
 for F in $RPM_BUILD_ROOT%{_datadir}/Yap/myddas_top_level.yap; do
@@ -199,7 +217,7 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
-* Mon Jan 03 2011 Petr Pisar <ppisar at redhat.com> - 6.2.0-1
+* Tue Jan 04 2011 Petr Pisar <ppisar at redhat.com> - 6.2.0-1
 - Reorder metadata in spec file
 - 6.2.0 bump
 - Remove uneeded Yap-creat.patch
@@ -219,6 +237,7 @@ rm -rf $RPM_BUILD_ROOT
 - Correct RPATH
 - Enable chr and clpqr libraries installation (still bundled with source tar
   ball) 
+- Package uninstalled examples
 
 * Wed Dec 08 2010 Petr Pisar <ppisar at redhat.com> - 5.1.3-3
 - Hack SWI-compatible libraries build system to be compilable (bug #660965)


More information about the scm-commits mailing list