[coin-or-Bcp/f20] Initial import (#894594).

pcpa pcpa at fedoraproject.org
Mon Apr 21 16:24:32 UTC 2014


commit f96e75771143e3fcdc701d54e4b14975a82dc814
Author: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date:   Mon Apr 21 13:24:01 2014 -0300

    Initial import (#894594).

 .gitignore                  |    1 +
 coin-or-Bcp-docdir.patch    |   21 +++++++++
 coin-or-Bcp-pkgconfig.patch |   12 +++++
 coin-or-Bcp.spec            |  105 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 5 files changed, 140 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cec926d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Bcp-1.3.8.tgz
diff --git a/coin-or-Bcp-docdir.patch b/coin-or-Bcp-docdir.patch
new file mode 100644
index 0000000..d870e5e
--- /dev/null
+++ b/coin-or-Bcp-docdir.patch
@@ -0,0 +1,21 @@
+diff -up Bcp-1.3.8/Makefile.in.orig Bcp-1.3.8/Makefile.in
+--- Bcp-1.3.8/Makefile.in.orig	2014-03-28 12:25:14.214998800 -0300
++++ Bcp-1.3.8/Makefile.in	2014-03-28 12:26:03.859000701 -0300
+@@ -346,7 +346,7 @@ EXAMPLES = BAC
+ ########################################################################
+ pkgconfiglibdir = $(libdir)/pkgconfig
+ pkgconfiglib_DATA = bcp.pc
+-addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Bcp
++addlibsdir = $(DESTDIR)$(datadir)/doc/coin-or-$(PACKAGE_NAME)
+ 
+ ########################################################################
+ #                         Maintainer Stuff                             #
+@@ -355,7 +355,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-Bcp-pkgconfig.patch b/coin-or-Bcp-pkgconfig.patch
new file mode 100644
index 0000000..fc778c6
--- /dev/null
+++ b/coin-or-Bcp-pkgconfig.patch
@@ -0,0 +1,12 @@
+diff -up Bcp-1.3.8/Makefile.in.orig Bcp-1.3.8/Makefile.in
+--- Bcp-1.3.8/Makefile.in.orig	2014-03-28 12:24:14.281996505 -0300
++++ Bcp-1.3.8/Makefile.in	2014-03-28 12:24:51.570997933 -0300
+@@ -944,7 +944,7 @@ distclean-local:
+ 
+ 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 bcp > $(addlibsdir)/bcp_addlibs.txt
+ @COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@	echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libBcp.lib @BCPLIB_LIBS_INSTALLED@" > $(addlibsdir)/bcp_addlibs.txt
+ @COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@	echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libBcp.lib @BCPLIB_LIBS_INSTALLED@" > $(addlibsdir)/bcp_addlibs_cpp.txt
diff --git a/coin-or-Bcp.spec b/coin-or-Bcp.spec
new file mode 100644
index 0000000..e059e2b
--- /dev/null
+++ b/coin-or-Bcp.spec
@@ -0,0 +1,105 @@
+%global		module		Bcp
+
+Name:		coin-or-%{module}
+Group:		Applications/Engineering
+Summary:	Branch-Cut-Price Framework
+Version:	1.3.8
+Release:	1%{?dist}
+License:	CPL
+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:	coin-or-Vol-devel
+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
+BCP is a parallel framework for implementing branch, cut, and price algorithms
+for solving mixed integer programs (MIPs). BCP provides the user with an
+object-oriented framework that can be used to develop an efficient problem
+class specific MIP solver without all the implementational effort. involved
+with implementing a branch and bound framework from scratch.
+
+%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
+make %{?_smp_mflags} all
+
+%install
+make install DESTDIR=%{buildroot}
+rm -f %{buildroot}%{_libdir}/*.la
+mkdir -p %{buildroot}%{_docdir}/%{name}
+install -p -m 644 AUTHORS LICENSE README %{buildroot}%{_docdir}/%{name}
+
+%check
+make test
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%dir %{_docdir}/%{name}
+%doc %{_docdir}/%{name}/AUTHORS
+%doc %{_docdir}/%{name}/LICENSE
+%doc %{_docdir}/%{name}/README
+%doc %{_docdir}/%{name}/bcp_addlibs.txt
+%{_libdir}/*.so.*
+
+%files		devel
+%{_includedir}/coin/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*
+
+%changelog
+* Fri Mar 28 2014 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.8-1
+- Update to latest upstream release.
+
+* Fri Nov  1 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.6-2
+- Use proper _smp_flags macro (#894586#c6).
+
+* Fri Nov  1 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.6-1
+- Update to latest upstream release.
+
+* Mon Jan 14 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.4-4
+- Update to run make check (#894610#c4).
+
+* Sat Jan 12 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.4-3
+- Rename repackaged tarball.
+
+* Sun Nov 18 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.4-2
+- Rename package to coin-or-Bcp.
+- Do not package Thirdy party data or data without clean license.
+
+* Thu Sep 27 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.4-1
+- Initial coinor-Bcp spec.
diff --git a/sources b/sources
index e69de29..ed28aec 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8f35e71e608fd73a309972096c20e81c  Bcp-1.3.8.tgz


More information about the scm-commits mailing list