[med-svn] [giira] 03/03: Explain how to rebuild agains Cplex optimizer

Andreas Tille tille at debian.org
Wed Feb 19 15:49:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository giira.

commit e94189ab75a07a28fcfe187704a69bc14b84a398
Author: Andreas Tille <tille at debian.org>
Date:   Wed Feb 19 14:26:11 2014 +0100

    Explain how to rebuild agains Cplex optimizer
---
 debian/README.Debian   | 10 +++++++++-
 debian/README.source   | 45 +++++++++++++++++++++++++++++++++++++++++++++
 debian/bin/giira-cplex |  5 +++++
 debian/changelog       |  6 ++++++
 debian/install         |  4 ++--
 5 files changed, 67 insertions(+), 3 deletions(-)

diff --git a/debian/README.Debian b/debian/README.Debian
index 9bca8f8..8a5fabb 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -1,7 +1,7 @@
 GIIRA for Debian
 ================
 
-GIIRA needs Cplex
+GIIRA could be optimized quite a lot by using Cplex
 
    http://www-01.ibm.com/software/commerce/optimization/cplex-optimizer/
 
@@ -12,4 +12,12 @@ source and rebuild this package which Cplex support.
 
 As an alternative optimiser glpk is used in the Debian package.
 
+If you have a Cplex license you probably want to profit from this when
+using giira.  To do so you need to rebuild the packege from its source.
+To do so you should
+
+   apt-get source giira
+
+and follow the advise in the file README.source.
+
  -- Andreas Tille <tille at debian.org>  Fri, 07 Feb 2014 11:38:38 +0100
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..30436bf
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,45 @@
+How to use GIIRA with proprietary Cplex optimizer
+=================================================
+
+If you have a license for Cplex
+
+   http://www-01.ibm.com/software/commerce/optimization/cplex-optimizer/
+
+optimiser.  You need to rebuild this package including cplex support
+since to build the package a patch was needed.  You can get the source
+repository via
+
+   debcheckout giira
+
+or alternatively
+
+   apt-get source giira
+
+To disable this patch it is sufficient to remove (or uncomment by
+prepending a #) the line
+
+  remove_cplex_code.patch
+
+from debian/patches/series.  Moreover you should do
+
+  mv debian/bin/giira-cplex debian/bin/giira
+
+To get a clean changelog it is recommended to use
+
+  dch -i
+
+to create a new changelog entry and it would be recommended to append
+'cplex' to the Debian revision number just to have a reasonable
+distinction from the official Debian package.  Then you can build the
+package for instance using
+
+  git-buildpackage --git-ignore-new
+
+(or create your own private branch by adapting gbp.conf to your needs)
+If you have uses `apt-get source giira` above you can not use
+git-buildpackage but for instance [p]debuild.
+
+If you have any problem with this procedure feel free to e-mail the
+address below.
+
+ -- Andreas Tille <tille at debian.org>  Fri, 07 Feb 2014 11:38:38 +0100
diff --git a/debian/bin/giira-cplex b/debian/bin/giira-cplex
new file mode 100755
index 0000000..0bc64e3
--- /dev/null
+++ b/debian/bin/giira-cplex
@@ -0,0 +1,5 @@
+#!/bin/bash
+# This script is intended for the use inconnection with the proprietary
+# Cplex optimizer.  See README.source for more instructions.
+
+java $JAVA_OPTS -jar /usr/share/java/`basename $0`.jar -opti cplex $@
diff --git a/debian/changelog b/debian/changelog
index 81501fe..e1ff0bb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+giira (0.0.20140210-2) UNRELEASED; urgency=medium
+
+  * Add advise in README.source how to build with cplex
+
+ -- Andreas Tille <tille at debian.org>  Wed, 19 Feb 2014 14:10:37 +0100
+
 giira (0.0.20140210-1) unstable; urgency=low
 
   * Initial release (Closes: #738551)
diff --git a/debian/install b/debian/install
index d079ef8..fb94be9 100644
--- a/debian/install
+++ b/debian/install
@@ -1,2 +1,2 @@
-debian/bin	usr
-scripts		usr/share/giira
+debian/bin/giira	usr
+scripts			usr/share/giira

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/giira.git



More information about the debian-med-commit mailing list