[coin-or-SYMPHONY/f20] Initial import (#894608).

pcpa pcpa at fedoraproject.org
Sat Apr 26 03:01:31 UTC 2014


commit 189f7401dffbfcb668ea48f0f760b8121ebbf26b
Author: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date:   Sat Apr 26 00:00:44 2014 -0300

    Initial import (#894608).

 .gitignore                       |    1 +
 coin-or-SYMPHONY-docdir.patch    |   21 +++++++
 coin-or-SYMPHONY-pkgconfig.patch |   13 ++++
 coin-or-SYMPHONY.spec            |  116 ++++++++++++++++++++++++++++++++++++++
 sources                          |    1 +
 5 files changed, 152 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b829de2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/SYMPHONY-5.5.7.tgz
diff --git a/coin-or-SYMPHONY-docdir.patch b/coin-or-SYMPHONY-docdir.patch
new file mode 100644
index 0000000..06a0fec
--- /dev/null
+++ b/coin-or-SYMPHONY-docdir.patch
@@ -0,0 +1,21 @@
+diff -up SYMPHONY-5.5.7/Makefile.in.orig SYMPHONY-5.5.7/Makefile.in
+--- SYMPHONY-5.5.7/Makefile.in.orig	2014-04-19 15:16:18.561879478 -0300
++++ SYMPHONY-5.5.7/Makefile.in	2014-04-19 15:18:01.958883438 -0300
+@@ -503,7 +503,7 @@ EXTRA_DIST = $(am__append_2)
+ ########################################################################
+ pkgconfiglibdir = $(libdir)/pkgconfig
+ pkgconfiglib_DATA = symphony.pc symphony-app.pc osi-sym.pc
+-addlibsdir = $(DESTDIR)$(datadir)/coin/doc/SYMPHONY
++addlibsdir = $(DESTDIR)$(datadir)/doc/coin-or-$(PACKAGE_NAME)
+ 
+ ########################################################################
+ #                         Maintainer Stuff                             #
+@@ -513,7 +513,7 @@ CLEANFILES =
+ # Files that are generated and should be cleaned with make distclean
+ DISTCLEANFILES = $(am__append_3) $(VPATH_DISTCLEANFILES)
+ DocFiles = README AUTHORS LICENSE
+-DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
++DocInstallDir = $(datadir)/doc/coin-or-$(PACKAGE_NAME)
+ all: all-recursive
+ 
+ .SUFFIXES:
diff --git a/coin-or-SYMPHONY-pkgconfig.patch b/coin-or-SYMPHONY-pkgconfig.patch
new file mode 100644
index 0000000..b60463d
--- /dev/null
+++ b/coin-or-SYMPHONY-pkgconfig.patch
@@ -0,0 +1,13 @@
+diff -up SYMPHONY-5.5.7/Makefile.in.orig SYMPHONY-5.5.7/Makefile.in
+--- SYMPHONY-5.5.7/Makefile.in.orig	2013-12-16 17:24:11.000000000 -0200
++++ SYMPHONY-5.5.7/Makefile.in	2014-04-19 15:16:18.561879478 -0300
+@@ -1053,7 +1053,7 @@ uninstall-local: uninstall-doc
+ 
+ install-data-hook:
+ 	@$(mkdir_p) "$(addlibsdir)"
+- at COIN_HAS_PKGCONFIG_TRUE@	PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
++ at COIN_HAS_PKGCONFIG_TRUE@	PKG_CONFIG_PATH=$(DESTDIR)$(pkgconfiglibdir) \
+ @COIN_HAS_PKGCONFIG_TRUE@	$(PKG_CONFIG) --libs symphony > $(addlibsdir)/sym_addlibs.txt
+ @COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@	echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libSym.lib @SYMPHONYLIB_LIBS_INSTALLED@" > $(addlibsdir)/sym_addlibs.txt
+ @COIN_CXX_IS_CL_FALSE@@COIN_HAS_PKGCONFIG_FALSE@	echo -L at abs_lib_dir@ -lSym @SYMPHONYLIB_LIBS_INSTALLED@ > $(addlibsdir)/sym_addlibs.txt
+diff -up SYMPHONY-5.5.7/Makefile.orig SYMPHONY-5.5.7/Makefile
diff --git a/coin-or-SYMPHONY.spec b/coin-or-SYMPHONY.spec
new file mode 100644
index 0000000..92580bb
--- /dev/null
+++ b/coin-or-SYMPHONY.spec
@@ -0,0 +1,116 @@
+%global		with_bundle	0
+%global		module		SYMPHONY
+
+Name:		coin-or-%{module}
+Group:		Applications/Engineering
+Summary:	Solver for mixed-integer linear programs
+Version:	5.5.7
+Release:	1%{?dist}
+License:	EPL
+URL:		http://projects.coin-or.org/%{module}
+Source0:	http://www.coin-or.org/download/pkgsource/%{module}/%{module}-%{version}.tgz
+BuildRequires:	atlas-devel
+BuildRequires:	blas-devel
+BuildRequires:	bzip2-devel
+BuildRequires:	coin-or-Cgl-devel
+BuildRequires:	coin-or-Clp-devel
+BuildRequires:	coin-or-CoinUtils-devel
+BuildRequires:	coin-or-Osi-devel
+BuildRequires:	doxygen
+BuildRequires:	glpk-devel
+BuildRequires:	graphviz
+BuildRequires:	lapack-devel
+BuildRequires:	pkgconfig
+BuildRequires:	readline-devel
+BuildRequires:	zlib-devel
+
+# Properly handle DESTDIR
+Patch0:		%{name}-pkgconfig.patch
+
+# Install documentation in standard rpm directory
+Patch1:		%{name}-docdir.patch
+
+%description
+SYMPHONY is an open-source solver for mixed-integer linear programs (MILPs)
+written in C. It can be used in three different main modes:
+
+  * As a callable library through either the native C interface or through
+    the Osi.
+  * As an interactive solver using a command-line interface.
+  * As a framework to build customized solvers for specific problem classes. 
+
+SYMPHONY can be executed in either parallel (distributed or shared memory)
+or sequential modes and has a number of advanced features that make it unique,
+including the ability to
+
+  * solve biobjective MILPs,
+  * warm start the solution procedure, and
+  * perform basic sensitivity analyses. 
+
+SYMPHONY links to a number of other COIN projects for additional
+functionality, including:
+
+   * Clp (the default solver for LP relaxations)
+   * Osi (an interface to alternative solvers for solving LP relaxations)
+   * Cgl (for cut generation)
+   * CoinUtils (for reading in MPS files and various utilities)
+
+%package	devel
+Summary:	Development files for %{name}
+Group:		Development/Libraries
+Requires:	coin-or-CoinUtils-devel
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q -n %{module}-%{version}
+%patch0 -p1
+%patch1 -p1
+
+%build
+%configure
+# Kill rpaths
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+make %{?_smp_mflags} all
+
+%install
+make install DESTDIR=%{buildroot}
+rm -f %{buildroot}%{_libdir}/*.la
+
+%check
+LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc %{_docdir}/%{name}
+%{_bindir}/symphony
+%{_libdir}/*.so.*
+
+%files		devel
+%{_includedir}/coin/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*
+
+%changelog
+* Sat Apr 19 2014 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 5.5.7-1
+- Update to latest upstream release.
+
+* Mon Jan 14 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 5.4.6-1
+- Update to latest upstream release.
+
+* Sat Jan 12 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 5.4.5-3
+- Rename repackaged tarball.
+
+* Sun Nov 18 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 5.4.5-2
+- Rename package to coin-or-SYMPHONY.
+- Do not package Thirdy party data or data without clean license.
+
+* Thu Sep 27 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 5.4.5-1
+- Initial coinor-SYMPHONY spec.
diff --git a/sources b/sources
index e69de29..fabac2b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+99b416e58a97f001cb63775d508ed5d0  SYMPHONY-5.5.7.tgz


More information about the scm-commits mailing list