[coin-or-Couenne] Initial import (#894606).

pcpa pcpa at fedoraproject.org
Sun Mar 1 16:56:30 UTC 2015


commit 9d0d62e7c12bd558a7165e548b84a254797f2c02
Author: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date:   Sun Mar 1 13:56:24 2015 -0300

    Initial import (#894606).

 .gitignore                   |   1 +
 coin-or-Couenne-docdir.patch |  21 ++++++
 coin-or-Couenne.spec         | 171 +++++++++++++++++++++++++++++++++++++++++++
 sources                      |   1 +
 4 files changed, 194 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9104770 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Couenne-0.5.2.tgz
diff --git a/coin-or-Couenne-docdir.patch b/coin-or-Couenne-docdir.patch
new file mode 100644
index 0000000..ce7a2b3
--- /dev/null
+++ b/coin-or-Couenne-docdir.patch
@@ -0,0 +1,21 @@
+diff -up Couenne-0.5.2/Makefile.in.orig Couenne-0.5.2/Makefile.in
+--- Couenne-0.5.2/Makefile.in.orig	2015-03-01 10:33:28.348025992 -0300
++++ Couenne-0.5.2/Makefile.in	2015-03-01 10:33:31.539026194 -0300
+@@ -371,7 +371,7 @@ EXTRA_DIST = test/grandTest.sh.in $(am__
+ ########################################################################
+ pkgconfiglibdir = $(libdir)/pkgconfig
+ pkgconfiglib_DATA = couenne.pc
+-addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Couenne
++addlibsdir = $(DESTDIR)$(datadir)/doc/coin-or-$(PACKAGE_NAME)
+ 
+ ########################################################################
+ #                         Maintainer Stuff                             #
+@@ -380,7 +380,7 @@ addlibsdir = $(DESTDIR)$(datadir)/coin/d
+ # Files that are generated and should be cleaned with make distclean
+ DISTCLEANFILES = $(am__append_4) $(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-Couenne.spec b/coin-or-Couenne.spec
new file mode 100644
index 0000000..6ac3755
--- /dev/null
+++ b/coin-or-Couenne.spec
@@ -0,0 +1,171 @@
+%global		module		Couenne
+
+%if 0%{?fedora} > 21
+%global		with_asl	1
+%else
+%global		with_asl	0
+%endif
+
+%global		with_mpi	0
+
+Name:		coin-or-%{module}
+Group:		Applications/Engineering
+Summary:	An exact solver for nonconvex MINLPs
+Version:	0.5.2
+Release:	3%{?dist}
+License:	EPL
+URL:		http://www.coin-or.org/projects/%{module}.xml
+Source0:	http://www.coin-or.org/download/pkgsource/%{module}/%{module}-%{version}.tgz
+BuildRequires:	atlas-devel
+BuildRequires:	blas-devel
+BuildRequires:	bzip2-devel
+BuildRequires:	coin-or-Bonmin-devel
+BuildRequires:	coin-or-Cbc-devel
+BuildRequires:	coin-or-Cgl-devel
+BuildRequires:	coin-or-Clp-devel
+BuildRequires:	coin-or-CoinUtils-devel
+%if %{with_mpi}
+BuildRequires:	coin-or-Ipopt-openmpi-devel
+%else
+BuildRequires:	coin-or-Ipopt-devel
+%endif
+BuildRequires:	coin-or-Osi-devel
+BuildRequires:	doxygen
+BuildRequires:	glpk-devel
+BuildRequires:	graphviz
+BuildRequires:	lapack-devel
+%if %{with_asl}
+BuildRequires:	mp-devel
+%endif
+%if %{with_mpi}
+BuildRequires:	openmpi-devel
+BuildRequires:	scalapack-openmpi-devel
+BuildRequires:	openssh-clients
+%endif
+BuildRequires:	pkgconfig
+BuildRequires:	readline-devel
+BuildRequires:	zlib-devel
+
+# Install documentation in standard rpm directory
+Patch0:		%{name}-docdir.patch
+
+%description
+Couenne (Convex Over and Under ENvelopes for Nonlinear Estimation) is a
+branch&bound algorithm to solve Mixed-Integer Nonlinear Programming (MINLP)
+problems of the form:
+      min f0(x,y)
+             fi(x,y) <= 0     i=1,2..., m
+             x in Rn, y in Zp
+
+where all fi(x,y) are, in general, nonlinear functions.
+
+Couenne aims at finding global optima of nonconvex MINLPs. It implements
+linearization, bound reduction, and branching methods within a
+branch-and-bound framework. Its main components are:
+
+  * an expression library;
+  * separation of linearization cuts;
+  * branching rules;
+  * bound tightening methods.
+
+%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}.
+
+%package	doc
+Summary:	Documentation files for %{name}
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+BuildArch:	noarch
+
+%description	doc
+This package contains the documentation for %{name}.
+
+%prep
+%setup -q -n %{module}-%{version}
+%patch0 -p1
+
+%build
+%if %{with_mpi}
+%_openmpi_load
+%endif
+%configure	\
+%if %{with_asl}
+	--with-asl-lib="-lasl -lmp -lipoptamplinterface -lbonminampl" \
+	--with-asl-incdir="%{_includedir}/asl"
+%endif
+
+# 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
+mkdir -p %{buildroot}%{_docdir}/%{name}/
+install -p -m644 doc/couenne-user-manual.pdf -t %{buildroot}%{_docdir}/%{name}/
+
+%check
+%if %{with_mpi}
+%_openmpi_load
+%endif
+LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH make test
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%{_bindir}/couenne
+%dir %{_docdir}/%{name}
+%doc %{_docdir}/%{name}/AUTHORS
+%license %{_docdir}/%{name}/LICENSE
+%doc %{_docdir}/%{name}/README
+%doc %{_docdir}/%{name}/couenne_addlibs.txt
+%{_libdir}/*.so.*
+
+%files		devel
+%{_includedir}/coin/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*
+
+%files		doc
+%doc %{_docdir}/%{name}/*.pdf
+
+%changelog
+* Sun Mar  1 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.5.2-3
+- Rediff patches (#894606#c15)
+- Use license macro (#894606#c14)
+- Do not mix rpm macros and rpm shell variables (#894606#c14)
+
+* Sat Feb 28 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.5.2-2
+- Correct make check.
+
+* Sat Feb 28 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.5.2-1
+- Update to latest upstream release.
+
+* Sat Sep 20 2014 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.4.7-1
+- Update to latest upstream release
+- Remove module name from description
+- Create doc subpackage
+
+* Mon Jan 14 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.4.3-4
+- Update to run make check (#894610#c4).
+
+* Sat Jan 12 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.4.3-3
+- Rename repackaged tarball.
+
+* Sun Nov 18 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.4.3-2
+- Rename package to coin-or-Couenne.
+- Do not package Thirdy party data or data without clean license.
+
+* Sat Sep 29 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.4.3-1
+- Initial coinor-Couenne spec.
diff --git a/sources b/sources
index e69de29..f611ad6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+589169389d68d3366b102ae2a808e656  Couenne-0.5.2.tgz


More information about the scm-commits mailing list