1.1 --- a/README Thu Oct 12 10:53:49 2006 +0000
1.2 +++ b/README Thu Oct 12 10:56:26 2006 +0000
1.3 @@ -9,9 +9,9 @@
1.4 implementing new ones. It is an especially suitable tool to solve the
1.5 design and optimization problems of telecommunications networks. To
1.6 achieve wide usability, a fundamental design requirement is the
1.7 -genericity of interface of data structures and algorithms. Lemon is
1.8 -intended to become an open source library in order to involve people
1.9 -all around the world in its development.
1.10 +genericity of interface of data structures and algorithms. LEMON is an
1.11 +open source library end invites people all around the world in its
1.12 +development.
1.13
1.14 --------
1.15 Contents
1.16 @@ -31,8 +31,8 @@
1.17
1.18 doc/
1.19
1.20 - Documentation of LEMON. The staring page is doc/html/index/html.
1.21 - The documentation will be installed into the directory
1.22 + Documentation of LEMON. The starting page is doc/html/index/html.
1.23 + The documentation installs into the directory
1.24
1.25 /usr/local/share/doc/lemon/html
1.26
2.1 --- a/configure.ac Thu Oct 12 10:53:49 2006 +0000
2.2 +++ b/configure.ac Thu Oct 12 10:56:26 2006 +0000
2.3 @@ -1,6 +1,6 @@
2.4 dnl Process this file with autoconf to produce a configure script.
2.5 AC_PREREQ([2.59])
2.6 -AC_INIT([LEMON], [svn-head], [etik-ol@cs.elte.hu], [lemon])
2.7 +AC_INIT([LEMON], [svnhead], [etik-ol@cs.elte.hu], [lemon])
2.8 AC_CONFIG_AUX_DIR([build-aux])
2.9 AC_CONFIG_MACRO_DIR([m4])
2.10 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
3.1 --- a/lemon.spec.in Thu Oct 12 10:53:49 2006 +0000
3.2 +++ b/lemon.spec.in Thu Oct 12 10:56:26 2006 +0000
3.3 @@ -8,7 +8,7 @@
3.4 Group: Development/Libraries
3.5 BuildRoot: %{_tmppath}/%{name}-root
3.6 Requires: glpk
3.7 -# BuildRequires: glpk-devel
3.8 +BuildRequires: glpk-devel
3.9
3.10 %description
3.11 LEMON stands for Library of Efficient Models and
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/scripts/rpmbuild-glpk Thu Oct 12 10:56:26 2006 +0000
4.3 @@ -0,0 +1,98 @@
4.4 +#!/bin/bash
4.5 +
4.6 +case $# in
4.7 + 1)
4.8 + RELEASE=1
4.9 + ;;
4.10 + 2)
4.11 + RELEASE=$2
4.12 + ;;
4.13 + *)
4.14 + echo "Usage: rpmbuild-glpk tarfile [release]"
4.15 + ;;
4.16 +esac
4.17 +
4.18 +
4.19 +ORIGTAR=$1
4.20 +VERSION=`echo ${ORIGTAR/.tar.gz}|tr - ' '|awk '{print $(NF)}'`
4.21 +
4.22 +echo "GLPK VERSION: $VERSION"
4.23 +echo " RELEASE: $RELEASE"
4.24 +
4.25 +
4.26 +set -e
4.27 +
4.28 +function make-dir () {
4.29 + if [ ! -d $1 ]; then
4.30 + mkdir $1
4.31 + fi
4.32 +}
4.33 +
4.34 +rm -rf glpk-tmp
4.35 +make-dir glpk-tmp
4.36 +
4.37 +cd glpk-tmp
4.38 +
4.39 +tar xzf $ORIGTAR
4.40 +
4.41 +echo 'Summary: GNU Linear Programming toolKit
4.42 +Name: glpk
4.43 +Version: '${VERSION}'
4.44 +Release: '${RELEASE}'
4.45 +License: GPL
4.46 +URL: http://www.gnu.org/software/glpk/glpk.html
4.47 +Source0: %{name}-%{version}.tar.gz
4.48 +Group: Development/Libraries
4.49 +BuildRoot: %{_tmppath}/%{name}-root
4.50 +Provides: glpk = '${VERSION}-${RELEASE}'
4.51 +Provides: glpk-devel = '${VERSION}-${RELEASE}'
4.52 +
4.53 +%description
4.54 +The GLPK package is a set of routines written in ANSI C and organized
4.55 +in the form of a callable library. This package is intended for solving
4.56 +large-scale linear programming (LP), mixed integer linear programming
4.57 +(MIP), and other related problems.
4.58 +
4.59 +The GLPK package includes the following main components:
4.60 +
4.61 +* implementation of the simplex method;
4.62 +* implementation of the primal-dual interior-point method;
4.63 +* implementation of the branch-and-bound method;
4.64 +* application program interface (API);
4.65 +* GNU MathProg modeling language (a subset of AMPL);
4.66 +* GLPSOL, a stand-alone LP/MIP solver.
4.67 +
4.68 +See GLPK webpage <http://www.gnu.org/software/glpk/glpk.html>.
4.69 +
4.70 +%prep
4.71 +%setup -q
4.72 +
4.73 +%build
4.74 +%configure
4.75 +make
4.76 +
4.77 +%install
4.78 +rm -rf $RPM_BUILD_ROOT
4.79 +make DESTDIR=$RPM_BUILD_ROOT install
4.80 +
4.81 +%clean
4.82 +rm -rf $RPM_BUILD_ROOT
4.83 +
4.84 +%post -p /sbin/ldconfig
4.85 +
4.86 +%postun -p /sbin/ldconfig
4.87 +
4.88 +%files
4.89 +%defattr(-,root,root)
4.90 +%{_bindir}/glpsol
4.91 +%{_bindir}/tspsol
4.92 +%{_includedir}
4.93 +%{_libdir}/lib*
4.94 +%doc AUTHORS COPYING NEWS README
4.95 +'>glpk-${VERSION}/glpk.spec
4.96 +
4.97 +tar czf glpk-${VERSION}.tar.gz glpk-${VERSION}
4.98 +rpmbuild -ta glpk-${VERSION}.tar.gz
4.99 +
4.100 +cd ..
4.101 +rm -rf glpk-tmp