[coin-or-CoinMP/f20] Initial import (#894599).

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


commit 12ef8dfacdcd1e70da9897faf25ffc6f9af2cad9
Author: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date:   Mon Apr 21 13:21:18 2014 -0300

    Initial import (#894599).

 .gitignore                     |    1 +
 coin-or-CoinMP-docdir.patch    |   21 ++++++++
 coin-or-CoinMP-pkgconfig.patch |   12 +++++
 coin-or-CoinMP.spec            |  101 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 5 files changed, 136 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7960ce1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/CoinMP-1.7.6.tgz
diff --git a/coin-or-CoinMP-docdir.patch b/coin-or-CoinMP-docdir.patch
new file mode 100644
index 0000000..7521a3d
--- /dev/null
+++ b/coin-or-CoinMP-docdir.patch
@@ -0,0 +1,21 @@
+diff -up CoinMP-1.7.6/Makefile.in.orig CoinMP-1.7.6/Makefile.in
+--- CoinMP-1.7.6/Makefile.in.orig	2014-04-19 13:26:15.086626608 -0300
++++ CoinMP-1.7.6/Makefile.in	2014-04-19 13:26:41.846627633 -0300
+@@ -291,7 +291,7 @@ EXTRA_DIST = examples/Makefile examples/
+ ########################################################################
+ pkgconfiglibdir = $(libdir)/pkgconfig
+ pkgconfiglib_DATA = coinmp.pc
+-addlibsdir = $(DESTDIR)$(datadir)/coin/doc/CoinMP
++addlibsdir = $(DESTDIR)$(datadir)/doc/coin-or-$(PACKAGE_NAME)
+ addlibs_DATA = examples/Makefile examples/example.c
+ 
+ ########################################################################
+@@ -301,7 +301,7 @@ addlibs_DATA = examples/Makefile example
+ # 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-CoinMP-pkgconfig.patch b/coin-or-CoinMP-pkgconfig.patch
new file mode 100644
index 0000000..d256001
--- /dev/null
+++ b/coin-or-CoinMP-pkgconfig.patch
@@ -0,0 +1,12 @@
+diff -up CoinMP-1.7.6/Makefile.in.orig CoinMP-1.7.6/Makefile.in
+--- CoinMP-1.7.6/Makefile.in.orig	2013-11-15 02:33:30.000000000 -0200
++++ CoinMP-1.7.6/Makefile.in	2014-04-19 13:26:15.086626608 -0300
+@@ -791,7 +791,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 coinmp > $(addlibsdir)/coinmp_addlibs.txt
+ @COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@	echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinMP.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/coin_addlibs.txt
+ @COIN_CXX_IS_CL_FALSE@@COIN_HAS_PKGCONFIG_FALSE@	echo -L at abs_lib_dir@ -lCoinMP @COINMP_LIBS_INSTALLED@ > $(addlibsdir)/coinmp_addlibs.txt
diff --git a/coin-or-CoinMP.spec b/coin-or-CoinMP.spec
new file mode 100644
index 0000000..02bb39e
--- /dev/null
+++ b/coin-or-CoinMP.spec
@@ -0,0 +1,101 @@
+%global		module		CoinMP
+
+Name:		coin-or-%{module}
+Group:		Applications/Engineering
+Summary:	C-API interface to CLP, CBC and CGL
+Version:	1.7.6
+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-Cbc-devel
+BuildRequires:	coin-or-Cgl-devel
+BuildRequires:	coin-or-Clp-devel
+BuildRequires:	coin-or-CoinUtils-devel
+BuildRequires:	coin-or-Osi-devel
+BuildRequires:	glpk-devel
+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
+CoinMP is a C-API library that supports most of the functionality of CLP
+(Coin LP), CBC (Coin Branch-and-Cut), and CGL (Cut Generation Library)
+projects.
+
+%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
+# Some install rule install 2 sample doc files under buildroot/buildroot
+for file in `find %{buildroot}%{buildroot} -type f`; do
+    mv $file `echo $file | sed -e 's|%{buildroot}||'`
+done
+# Use unix style line endings
+for file in README AUTHORS example.c LICENSE; do
+    sed -i 's|\r||' %{buildroot}%{_docdir}/%{name}/$file
+done
+
+%check
+make test
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc %{_docdir}/%{name}
+%{_libdir}/*.so.*
+
+%files		devel
+%{_includedir}/coin/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*
+
+%changelog
+* Sat Apr 19 2014 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.7.6-1
+- Update to latest upstream release.
+
+* Fri Nov  1 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.7.1-1
+- Update to latest upstream release.
+
+* Mon Jan 14 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.6.0-4
+- Update to run make check (#894610#c4).
+
+* Sat Jan 12 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.6.0-3
+- Rename repackaged tarball.
+
+* Sun Nov 18 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.6.0-2
+- Rename package to coin-or-CoinMP.
+- Do not package Thirdy party data or data without clean license.
+
+* Sat Sep 29 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.6.0-1
+- Initial coinor-CoinMP spec.
diff --git a/sources b/sources
index e69de29..4c37911 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+61642ac64dbbf0e59935d2a74be99949  CoinMP-1.7.6.tgz


More information about the scm-commits mailing list