help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Help-glpk] RPM Spec file for GLPK


From: Robert Lopaka Lee
Subject: RE: [Help-glpk] RPM Spec file for GLPK
Date: Wed, 13 Oct 2004 10:21:46 -0600 (MDT)
User-agent: SquirrelMail/1.4.3a-0.e3.1

Below is a RPM spec file for glpk.  I've used it to build packages on
RedHat Enterprise Linux x86 versions 2.1 and 3.0.  Also Fedora Core 1 and
2 for x86 and x86-64 in 64bit mode.

#### RPM Spec File ####

Summary: The GNU Linear Programming Kit (GLPK)
Name:    glpk
Epoch:   0
Version: 4.7
Release: 0.fc2%{?dist_tag}
Group:   System Environment/Libraries
License: GPL
URL:     http://www.gnu.org/software/glpk/glpk.html
Source:  ftp://ftp.gnu.org/gnu/glpk/glpk-4.7.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

# for version 4.2 you'll need to add -lm to build glpsol
#Patch1: glpk-4.2-lm.patch

%description
The GLPK (GNU Linear Programming Kit) package is intended for solving
large-scale linear programming (LP), mixed integer programming (MIP),
and other related problems. It is a set of routines written in ANSI C
and organized in the form of a callable library.

GLPK supports the GNU MathProg language, which is a subset of the
AMPL language.

The GLPK package includes the following main components:
    * Revised simplex method.
    * Primal-dual interior point method.
    * Branch-and-bound method.
    * Translator for GNU MathProg.
    * Application program interface (API).
    * Stand-alone LP/MIP solver.

%package devel
Summary: %{name} headers and libraries
Group:  Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
%description devel
%{name} header files and libraries.


%prep
%setup -q

# Use -lm in version 4.2
#%patch1 -p1 -b .lm

%build
%configure

make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make install DESTDIR=$RPM_BUILD_ROOT

# remove unpackaged/unwanted files
rm -f   $RPM_BUILD_ROOT%{_libdir}/*.la


%clean
rm -rf $RPM_BUILD_ROOT


%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README doc
%{_bindir}/*
## Note: we don't build shared libs by default
#%{_libdir}/lib*.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/lib*.a

%changelog
* Mon Oct 12 2004 Lopaka Lee <rclee a fpcc.net> 0:4.7-0
- update to glpk 4.7.
- Now packages documentation.
* Mon Nov 17 2003 Rex Dieter <rexdieter af users.sf.net> 0:4.2-0.fdr.0
- first try





reply via email to

[Prev in Thread] Current Thread [Next in Thread]