[pure-glpk/f19] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Fri Jan 3 01:55:45 UTC 2014


commit 1ba8747b3b74142276ee45e27f3d172f9040c555
Author: Christopher Meng <i at cicku.me>
Date:   Fri Jan 3 09:54:24 2014 +0800

    Initial SETUP.

 .gitignore     |    1 +
 pure-glpk.spec |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b92ecc0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pure-glpk-0.4.tar.gz
diff --git a/pure-glpk.spec b/pure-glpk.spec
new file mode 100644
index 0000000..743ed66
--- /dev/null
+++ b/pure-glpk.spec
@@ -0,0 +1,51 @@
+Name:           pure-glpk
+Version:        0.4
+Release:        2%{?dist}
+Summary:        GLPK interface for the Pure programming language
+License:        GPLv3
+URL:            https://purelang.bitbucket.org
+Source0:        https://bitbucket.org/purelang/pure-lang/downloads/%{name}-%{version}.tar.gz
+BuildRequires:  glpk-devel
+BuildRequires:  gmp-devel
+BuildRequires:  libtool-ltdl-devel
+BuildRequires:  mpfr-devel
+BuildRequires:  pure-devel
+BuildRequires:  unixODBC-devel
+BuildRequires:  zlib-devel
+ExcludeArch:    %{arm}
+
+%description
+This module provides a feature complete GLPK interface for the Pure 
+programming language, which lets you use all capabilities of the GNU Linear 
+Programming Kit (GLPK) directly from Pure.
+
+GLPK contains an efficient simplex LP solver, a simplex LP solver in exact 
+arithmetics, an interior-point solver, a branch-and-cut solver for mixed 
+integer programming and some specialized algorithms for net/grid problems. 
+Using this interface you can build, modify and solve the problem, retrieve 
+the solution, load and save the problem and solution data in standard formats 
+and use any of advanced GLPK features.
+
+The interface uses native Pure data types - lists and tuples - so that you
+need not perform any data conversions to/from GLPK internal data structures.
+
+%prep
+%setup -q
+
+%build
+make CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" %{?_smp_mflags}
+
+%install
+make install libdir=%{_libdir} DESTDIR=%{buildroot}
+
+%files
+%doc COPYING README examples
+%{_libdir}/pure/glpk.pure
+%{_libdir}/pure/glpk.so
+
+%changelog
+* Fri Dec 27 2013 Christopher Meng <rpm at cicku.me> - 0.4-2
+- Add ExcludeArch for ARM because of FTBFS.
+
+* Fri Aug 30 2013 Christopher Meng <rpm at cicku.me> - 0.4-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..f2ca4cb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2b659d5a5e806f3fb13856d95266c823  pure-glpk-0.4.tar.gz


More information about the scm-commits mailing list