# HG changeset patch # User alpar # Date 1162211143 0 # Node ID ac729a29120e34f2607f042a7695f05a438151c0 # Parent fb1c634fff293a1091579eb9e3402b4727d9769f - Add an autopackage generator script for glpk - update autopackage specfile diff -r fb1c634fff29 -r ac729a29120e autopackage/default.apspec.in --- a/autopackage/default.apspec.in Mon Oct 30 12:07:52 2006 +0000 +++ b/autopackage/default.apspec.in Mon Oct 30 12:25:43 2006 +0000 @@ -8,13 +8,13 @@ Packager: Alpar Juttner Summary: LEMON library SoftwareVersion: @VERSION@ -AutopackageTarget: 0.7 +AutopackageTarget: 1.2 # Only uncomment InterfaceVersion if your package exposes interfaces to other software, # for instance if it includes DSOs or python/perl modules. See the developer guide for more info, # or ask on autopackage-dev if you don't understand interface versioning in autopackage. # -# InterfaceVersion: 0.0 +InterfaceVersion: 1.0 PackageVersion: 1 @@ -34,7 +34,7 @@ [Prepare] # Dependency checking -#require @whatever.you/need 1.0 +require @lemon.cs.elte.hu/GLPK:4.11 [Install] # Put your installation script here diff -r fb1c634fff29 -r ac729a29120e scripts/autopackage-glpk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/autopackage-glpk Mon Oct 30 12:25:43 2006 +0000 @@ -0,0 +1,97 @@ +#!/bin/bash + +case $# in + 1) + ;; + *) + echo "Usage: autopackage-glpk tarfile" + ;; +esac + + +ORIGTAR=$1 +VERSION=`echo ${ORIGTAR/.tar.gz}|tr - ' '|awk '{print $(NF)}'` + +echo "GLPK VERSION: $VERSION" +echo " RELEASE: $RELEASE" + + +set -e + +function make-dir () { + if [ ! -d $1 ]; then + mkdir $1 + fi +} + +tar xzf $ORIGTAR +cd glpk-${VERSION} +mkdir autopackage + +echo '# -*-shell-script-*- + +[Meta] +RootName: @lemon.cs.elte.hu/lemon:$SOFTWAREVERSION +DisplayName: GLPK +ShortName: glpk +Maintainer: The LEMON Developers - http://lemon.cs.elte.hu/ +Packager: Alpar Juttner +Summary: GLPK LP/MIP solver + +SoftwareVersion: '${VERSION}' +AutopackageTarget: 1.2 + +# Only uncomment InterfaceVersion if your package exposes interfaces to other software, +# for instance if it includes DSOs or python/perl modules. See the developer guide for more info, +# or ask on autopackage-dev if you dont understand interface versioning in autopackage. +# +InterfaceVersion: '${VERSION}' + +PackageVersion: 1 + +[Description] +The GLPK package is a set of routines written in ANSI C and organized +in the form of a callable library. This package is intended for solving +large-scale linear programming (LP), mixed integer linear programming +(MIP), and other related problems. + +The GLPK package includes the following main components: + +* implementation of the simplex method; +* implementation of the primal-dual interior-point method; +* implementation of the branch-and-bound method; +* application program interface (API); +* GNU MathProg modeling language (a subset of AMPL); +* GLPSOL, a stand-alone LP/MIP solver. + +See GLPK webpage . + +[BuildPrepare] +prepareBuild + +[BuildUnprepare] +unprepareBuild + +[Imports] +echo '*' | import + +[Prepare] +# Dependency checking +#require @whatever.you/need 1.0 + +[Install] +# Put your installation script here +#installExe bin/* +copyFiles * $PREFIX + +[Uninstall] +# Usually just the following line is enough to uninstall everything +uninstallFromLog +'>autopackage/default.apspec + +makeinstaller + +cp *.package *.meta .. +cd .. + +rm -rf glpk-${VERSION}