[Lemon-commits] [lemon_svn] alpar: r2980 - in hugo/trunk: . scripts

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 21:51:36 CET 2006


Author: alpar
Date: Thu Oct 12 12:56:26 2006
New Revision: 2980

Added:
   hugo/trunk/scripts/rpmbuild-glpk   (contents, props changed)
Modified:
   hugo/trunk/README
   hugo/trunk/configure.ac
   hugo/trunk/lemon.spec.in

Log:
Improve the configuration environment / repository layout:
  - Update README
  - svn-head -> svnhead version tag change (in favor of rpm build)
  - rpmbuild-glpk: a script to build glpk rpm.


Modified: hugo/trunk/README
==============================================================================
--- hugo/trunk/README	(original)
+++ hugo/trunk/README	Thu Oct 12 12:56:26 2006
@@ -9,9 +9,9 @@
 implementing new ones. It is an especially suitable tool to solve the
 design and optimization problems of telecommunications networks. To
 achieve wide usability, a fundamental design requirement is the
-genericity of interface of data structures and algorithms. Lemon is
-intended to become an open source library in order to involve people
-all around the world in its development.
+genericity of interface of data structures and algorithms. LEMON is an
+open source library end invites people all around the world in its
+development.
 
 --------
 Contents
@@ -31,8 +31,8 @@
 
 doc/
 
-  Documentation of LEMON. The staring page is doc/html/index/html.
-  The documentation will be installed into the directory
+  Documentation of LEMON. The starting page is doc/html/index/html.
+  The documentation installs into the directory
 
     /usr/local/share/doc/lemon/html
 

Modified: hugo/trunk/configure.ac
==============================================================================
--- hugo/trunk/configure.ac	(original)
+++ hugo/trunk/configure.ac	Thu Oct 12 12:56:26 2006
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_PREREQ([2.59])
-AC_INIT([LEMON], [svn-head], [etik-ol at cs.elte.hu], [lemon])
+AC_INIT([LEMON], [svnhead], [etik-ol at cs.elte.hu], [lemon])
 AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])

Modified: hugo/trunk/lemon.spec.in
==============================================================================
--- hugo/trunk/lemon.spec.in	(original)
+++ hugo/trunk/lemon.spec.in	Thu Oct 12 12:56:26 2006
@@ -8,7 +8,7 @@
 Group: Development/Libraries
 BuildRoot: %{_tmppath}/%{name}-root
 Requires: glpk
-# BuildRequires: glpk-devel
+BuildRequires: glpk-devel
 
 %description
 LEMON stands for Library of Efficient Models and

Added: hugo/trunk/scripts/rpmbuild-glpk
==============================================================================
--- (empty file)
+++ hugo/trunk/scripts/rpmbuild-glpk	Thu Oct 12 12:56:26 2006
@@ -0,0 +1,98 @@
+#!/bin/bash
+
+case $# in
+    1)
+	RELEASE=1
+	;;
+    2)
+	RELEASE=$2
+	;;
+    *)
+	echo "Usage: rpmbuild-glpk tarfile [release]"
+	;;	
+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
+}
+
+rm -rf glpk-tmp
+make-dir glpk-tmp
+
+cd glpk-tmp
+
+tar xzf $ORIGTAR
+
+echo 'Summary: GNU Linear Programming toolKit
+Name: glpk
+Version: '${VERSION}'
+Release: '${RELEASE}'
+License: GPL
+URL: http://www.gnu.org/software/glpk/glpk.html
+Source0: %{name}-%{version}.tar.gz
+Group: Development/Libraries
+BuildRoot: %{_tmppath}/%{name}-root
+Provides: glpk = '${VERSION}-${RELEASE}'
+Provides: glpk-devel = '${VERSION}-${RELEASE}'
+
+%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 <http://www.gnu.org/software/glpk/glpk.html>.
+
+%prep
+%setup -q
+
+%build
+%configure
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%{_bindir}/glpsol
+%{_bindir}/tspsol
+%{_includedir}
+%{_libdir}/lib*
+%doc AUTHORS COPYING NEWS README
+'>glpk-${VERSION}/glpk.spec
+
+tar czf glpk-${VERSION}.tar.gz glpk-${VERSION}
+rpmbuild -ta glpk-${VERSION}.tar.gz
+
+cd ..
+rm -rf glpk-tmp



More information about the Lemon-commits mailing list