[coin-or-Osi] Initial import (#894586).

pcpa pcpa at fedoraproject.org
Mon Nov 4 15:10:46 UTC 2013


commit f979740f4e5ff8b93b3ec3bb79086c218d77eb02
Author: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date:   Mon Nov 4 13:10:58 2013 -0200

    Initial import (#894586).

 .gitignore                  |    1 +
 coin-or-Osi-docdir.patch    |   21 ++++++++
 coin-or-Osi-pkgconfig.patch |   12 +++++
 coin-or-Osi.spec            |  114 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 5 files changed, 149 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6223bab 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Osi-0.106.2.tgz
diff --git a/coin-or-Osi-docdir.patch b/coin-or-Osi-docdir.patch
new file mode 100644
index 0000000..f03463e
--- /dev/null
+++ b/coin-or-Osi-docdir.patch
@@ -0,0 +1,21 @@
+diff -up Osi-0.106.2/Makefile.in.orig Osi-0.106.2/Makefile.in
+--- Osi-0.106.2/Makefile.in.orig	2013-11-01 13:18:34.678592587 -0200
++++ Osi-0.106.2/Makefile.in	2013-11-01 13:18:55.667593391 -0200
+@@ -402,7 +402,7 @@ EXTRA_DIST = examples/basic2.cpp example
+ ########################################################################
+ #                  Installation of the addlibs file                    #
+ ########################################################################
+-addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Osi
++addlibsdir = $(DESTDIR)$(datadir)/doc/coin-or-$(PACKAGE_NAME)
+ 
+ ########################################################################
+ #                         Maintainer Stuff                             #
+@@ -412,7 +412,7 @@ CLEANFILES =
+ # Files that are generated and should be cleaned with make distclean
+ DISTCLEANFILES = $(am__append_15) $(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-Osi-pkgconfig.patch b/coin-or-Osi-pkgconfig.patch
new file mode 100644
index 0000000..fe01110
--- /dev/null
+++ b/coin-or-Osi-pkgconfig.patch
@@ -0,0 +1,12 @@
+diff -up Osi-0.106.2/Makefile.in.orig Osi-0.106.2/Makefile.in
+--- Osi-0.106.2/Makefile.in.orig	2013-11-01 13:17:45.603590708 -0200
++++ Osi-0.106.2/Makefile.in	2013-11-01 13:18:16.539591893 -0200
+@@ -928,7 +928,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 osi > $(addlibsdir)/osi_addlibs.txt
+ @COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@	echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libOsi.lib @OSILIB_LIBS_INSTALLED@" > $(addlibsdir)/osi_addlibs.txt
+ @COIN_CXX_IS_CL_FALSE@@COIN_HAS_PKGCONFIG_FALSE@	echo -L at abs_lib_dir@ -lOsi @OSILIB_LIBS_INSTALLED@ > $(addlibsdir)/osi_addlibs.txt
diff --git a/coin-or-Osi.spec b/coin-or-Osi.spec
new file mode 100644
index 0000000..b490a62
--- /dev/null
+++ b/coin-or-Osi.spec
@@ -0,0 +1,114 @@
+%global		module		Osi
+
+Name:		coin-or-%{module}
+Group:		Applications/Engineering
+Summary:	COIN-OR Open Solver Interface Library
+Version:	0.106.2
+Release:	3%{?dist}
+License:	EPL
+URL:		https://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-CoinUtils-devel
+BuildRequires:	doxygen
+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
+The COIN-OR Open Solver Interface Library is a collection of solver
+interfaces (SIs) that provide a common interface --- the OSI API --- for all
+the supported solvers.
+
+%package	devel
+Summary:	Development files for %{name}
+Group:		Development/Libraries
+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
+%patch1 -p1
+
+%build
+%configure
+make %{?_smp_flags} all doxydoc
+
+%install
+make install DESTDIR=%{buildroot}
+rm -f %{buildroot}%{_libdir}/*.la
+cp -a doxydoc/html %{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}/osi_addlibs.txt
+%{_libdir}/*.so.*
+
+%files		devel
+%{_includedir}/coin/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*
+
+%files		doc
+%doc %{_docdir}/%{name}/html
+
+%changelog
+* Fri Nov  1 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.106.2-3
+- Use proper _smp_flags macro (#894586#c6).
+
+* Fri Nov  1 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.106.2-2
+- Correct missing bzip2 build requires (#894586#c4).
+- Use unversioned docdir (#894586#c4).
+
+* Fri Nov  1 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.106.2-1
+- Update to latest upstream release.
+
+* Wed May 8 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.105.7-2
+- Split documentation in a new subpackage.
+- Switch to the new upstream tarballs without bundled dependencies.
+
+* Mon Jan 14 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.105.7-1
+- Update to latest upstream release.
+
+* Sat Jan 12 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.105.5-3
+- Rename repackaged tarball.
+
+* Sun Nov 18 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.105.5-2
+- Rename package to coin-or-Osi.
+- Do not package Thirdy party data or data without clean license.
+
+* Wed Sep 26 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.105.5-1
+- Initial coinor-Osi spec.
diff --git a/sources b/sources
index e69de29..cc5f04d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+44ea9e59a547f3866fd4c13bb907bbf3  Osi-0.106.2.tgz


More information about the scm-commits mailing list