pcpa pushed to coin-or-Dip (f22). "Initial import (#894602)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Mar 24 20:49:38 UTC 2015


>From d5db2307e485a9efca3e57229db4a70def366e05 Mon Sep 17 00:00:00 2001
From: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date: Tue, 24 Mar 2015 17:49:02 -0300
Subject: Initial import (#894602)


diff --git a/.gitignore b/.gitignore
index e69de29..75fc804 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Dip-0.91.2.tgz
diff --git a/coin-or-Dip-docdir.patch b/coin-or-Dip-docdir.patch
new file mode 100644
index 0000000..c083328
--- /dev/null
+++ b/coin-or-Dip-docdir.patch
@@ -0,0 +1,21 @@
+diff -up Dip-0.91.2/Makefile.in.orig Dip-0.91.2/Makefile.in
+--- Dip-0.91.2/Makefile.in.orig	2015-03-07 18:12:26.000000000 -0300
++++ Dip-0.91.2/Makefile.in	2015-03-23 19:00:26.331774555 -0300
+@@ -475,7 +475,7 @@ EXTRA_DIST = $(am__append_2)
+ ########################################################################
+ pkgconfiglibdir = $(libdir)/pkgconfig
+ pkgconfiglib_DATA = dip.pc
+-addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Dip
++addlibsdir = $(DESTDIR)$(datadir)/doc/coin-or-$(PACKAGE_NAME)
+ 
+ ########################################################################
+ #                         Maintainer Stuff                             #
+@@ -484,7 +484,7 @@ addlibsdir = $(DESTDIR)$(datadir)/coin/d
+ # 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-Dip-svnversion.patch b/coin-or-Dip-svnversion.patch
new file mode 100644
index 0000000..1fc1547
--- /dev/null
+++ b/coin-or-Dip-svnversion.patch
@@ -0,0 +1,12 @@
+diff -up Dip-0.91.2/src/DecompApp.cpp.orig Dip-0.91.2/src/DecompApp.cpp
+--- Dip-0.91.2/src/DecompApp.cpp.orig	2015-03-07 18:08:35.000000000 -0300
++++ Dip-0.91.2/src/DecompApp.cpp	2015-03-23 19:01:18.952776570 -0300
+@@ -60,7 +60,7 @@ void DecompApp::startupLog()
+             <<   "\nVersion: " << DIP_VERSION
+             <<   "\nBuild Date: " << __DATE__
+ #ifdef DIP_SVN_REV
+-            <<   "\nRevision Number: " << DIP_SVN_REV
++            /*<<   "\nRevision Number: " << DIP_SVN_REV*/
+ #endif
+             << "\n========================================================"
+             << "\n========================================================"
diff --git a/coin-or-Dip.spec b/coin-or-Dip.spec
new file mode 100644
index 0000000..73d832c
--- /dev/null
+++ b/coin-or-Dip.spec
@@ -0,0 +1,153 @@
+%global		module		Dip
+
+%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:	Decomposition for Integer Programming
+Version:	0.91.2
+Release:	1%{?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-Alps-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:	glpk-devel
+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
+
+# Bad #define generated if svnversion is available
+Patch1:		%{name}-svnversion.patch
+
+%description
+DIP (Decomposition for Integer Programming) is an open-source extensible
+software framework for implementing decomposition-based bounding algorithms
+for use in solving large-scale discrete optimization problems. The framework
+provides a simple API for experimenting with various decomposition-based
+algorithms, such as Dantzig-Wolfe decomposition, Lagrangian relaxation,
+and various cutting plane methods. Given a compact formulation and a
+relaxation, the framework takes care of all algorithmic details associated
+with implementing any of a wide range of decomposition-based algorithms,
+such as branch and cut, branch and price, branch and cut and price,
+subgradient-based Lagrangian relaxation, branch and relax and cut, and
+decompose and cut. The user can specify customizations, such as methods
+for generating valid inequalities and branching, in terms of the variables
+of the compact formulation, without having to worry about the details of
+any required reformulations.
+
+%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
+%if %{with_mpi}
+%_openmpi_load
+%endif
+%configure --enable-openmp	\
+%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
+
+%check
+%if %{with_mpi}
+%_openmpi_load
+%endif
+LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%license LICENSE
+%doc AUTHORS README*
+%{_bindir}/dip
+%{_libdir}/*.so.*
+
+%files		devel
+%{_includedir}/coin/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*
+
+%changelog
+* Mon Mar 23 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.91.2-1
+- Update to latest upstream release.
+- Rediff patches (#894602#c10)
+- Use license macro (#894602#c10)
+
+* Sat Feb 28 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.91.1-1
+- Update to latest upstream release.
+
+* Mon Apr 21 2014 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.9.9-2
+- Disable python subpackage, it should be packaged separately (#894602#c4).
+
+* Sat Apr 19 2014 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.9.9-1
+- Update to latest upstream release.
+- Create new python subpackage.
+
+* Fri Nov  1 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.9.4-1
+- Update to latest upstream release.
+
+* Mon Jan 14 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.83.2-4
+- Update to run make check (#894610#c4).
+
+* Sat Jan 12 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.83.2-3
+- Rename repackaged tarball.
+
+* Sun Nov 18 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.83.2-2
+- Rename package to coin-or-Dip.
+- 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.83.2-1
+- Initial coinor-Dip spec.
diff --git a/sources b/sources
index e69de29..3f12fed 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0875580decac0a1e25bf1a06733bd097  Dip-0.91.2.tgz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/coin-or-Dip.git/commit/?h=f22&id=d5db2307e485a9efca3e57229db4a70def366e05

--
You received this message due to your preference settings at
https://apps.fedoraproject.org/notifications//fmnscmcommits.id.fedoraproject.org/email/29390


More information about the scm-commits mailing list