# HG changeset patch # User alpar # Date 1160650586 0 # Node ID 5674a5983e1e00aa9766b94718f27103e3153ea9 # Parent 9f329faa4aeeaf5e67c0b152fac9c402790f1529 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. diff -r 9f329faa4aee -r 5674a5983e1e README --- a/README Thu Oct 12 10:53:49 2006 +0000 +++ b/README Thu Oct 12 10:56:26 2006 +0000 @@ -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 diff -r 9f329faa4aee -r 5674a5983e1e configure.ac --- a/configure.ac Thu Oct 12 10:53:49 2006 +0000 +++ b/configure.ac Thu Oct 12 10:56:26 2006 +0000 @@ -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@cs.elte.hu], [lemon]) +AC_INIT([LEMON], [svnhead], [etik-ol@cs.elte.hu], [lemon]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) diff -r 9f329faa4aee -r 5674a5983e1e lemon.spec.in --- a/lemon.spec.in Thu Oct 12 10:53:49 2006 +0000 +++ b/lemon.spec.in Thu Oct 12 10:56:26 2006 +0000 @@ -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 diff -r 9f329faa4aee -r 5674a5983e1e scripts/rpmbuild-glpk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/rpmbuild-glpk Thu Oct 12 10:56:26 2006 +0000 @@ -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 . + +%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