[coin-or-Vol/f20] Initial import (#894593).

pcpa pcpa at fedoraproject.org
Fri Mar 28 19:09:23 UTC 2014


commit f43a0f17749f9e6d88b88c355db88e0c78d7bf0a
Author: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date:   Fri Mar 28 16:09:07 2014 -0300

    Initial import (#894593).

 .gitignore                  |    1 +
 coin-or-Vol-docdir.patch    |   21 ++++++++
 coin-or-Vol-pkgconfig.patch |   12 ++++
 coin-or-Vol.spec            |  119 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 5 files changed, 154 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..296b856 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Vol-1.4.4.tgz
diff --git a/coin-or-Vol-docdir.patch b/coin-or-Vol-docdir.patch
new file mode 100644
index 0000000..f936f66
--- /dev/null
+++ b/coin-or-Vol-docdir.patch
@@ -0,0 +1,21 @@
+diff -up Vol-1.4.4/Makefile.in.orig Vol-1.4.4/Makefile.in
+--- Vol-1.4.4/Makefile.in.orig	2014-03-28 11:24:15.555858697 -0300
++++ Vol-1.4.4/Makefile.in	2014-03-28 11:24:42.266859720 -0300
+@@ -351,7 +351,7 @@ EXTRA_DIST = doc/ufldoc.bib doc/ufldoc.p
+ ########################################################################
+ pkgconfiglibdir = $(libdir)/pkgconfig
+ pkgconfiglib_DATA = vol.pc $(am__append_2)
+-addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Vol
++addlibsdir = $(DESTDIR)$(datadir)/doc/coin-or-$(PACKAGE_NAME)
+ 
+ ########################################################################
+ #                         Maintainer Stuff                             #
+@@ -360,7 +360,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-Vol-pkgconfig.patch b/coin-or-Vol-pkgconfig.patch
new file mode 100644
index 0000000..ff91a5f
--- /dev/null
+++ b/coin-or-Vol-pkgconfig.patch
@@ -0,0 +1,12 @@
+diff -up Vol-1.4.4/Makefile.in.orig Vol-1.4.4/Makefile.in
+--- Vol-1.4.4/Makefile.in.orig	2014-03-28 11:33:41.545880371 -0300
++++ Vol-1.4.4/Makefile.in	2014-03-28 11:34:42.090882689 -0300
+@@ -864,7 +864,7 @@ clean-local: clean-doxydoc
+ 
+ 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 vol > $(addlibsdir)/vol_addlibs.txt
+ @COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@	echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libVol.lib @VOLLIB_LIBS_INSTALLED@" > $(addlibsdir)/vol_addlibs.txt
+ @COIN_CXX_IS_CL_FALSE@@COIN_HAS_PKGCONFIG_FALSE@	echo -L at abs_lib_dir@ -lVol @VOLLIB_LIBS_INSTALLED@ > $(addlibsdir)/vol_addlibs.txt
diff --git a/coin-or-Vol.spec b/coin-or-Vol.spec
new file mode 100644
index 0000000..7662c6f
--- /dev/null
+++ b/coin-or-Vol.spec
@@ -0,0 +1,119 @@
+%global		module		Vol
+
+Name:		coin-or-%{module}
+Group:		Applications/Engineering
+Summary:	Vol (Volume Algorithm)
+Version:	1.4.4
+Release:	1%{?dist}
+License:	EPL
+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-CoinUtils-devel
+BuildRequires:	coin-or-Osi-devel
+BuildRequires:	doxygen
+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
+Vol (Volume Algorithm) is an open-source implementation of a subgradient
+method that produces primal as well as dual solutions. The primal solution
+comes from estimating the volumes below the faces of the dual problem. This
+is an approximate method so the primal vector might have small infeasiblities
+that are negligible in many practical settings. The original subgradient
+algorithm produces only dual solutions.
+
+%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
+%patch1 -p1
+
+# silence doxygen deprecation warnings
+sed -i 's/^\(SYMBOL_CACHE_SIZE\|SHOW_DIRECTORIES\|HTML_ALIGN_MEMBERS\|USE_INLINE_TREES\|DOT_FONTNAME\)/#\1/g' doxydoc/doxygen.conf.in
+
+%build
+%configure
+make %{?_smp_mflags} 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}/vol_addlibs.txt
+%{_libdir}/*.so.*
+
+%files		devel
+%{_includedir}/coin/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*
+
+%files		doc
+%doc %{_docdir}/%{name}/html
+
+%changelog
+* Fri Mar 28 2014 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.4.4-1
+- Update to latest upstream release.
+
+* Fri Nov  1 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.4.1-2
+- Use proper _smp_flags macro (#894586#c6).
+
+* Fri Nov  1 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.4.1-1
+- Update to latest upstream release.
+
+* Mon Jan 14 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.3-4
+- Update to run make check (#894610#c4).
+
+* Sat Jan 12 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.3-3
+- Rename repackaged tarball.
+
+* Sun Nov 18 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.3-1
+- Rename package to coin-or-Vol.
+- 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.3-1
+- Initial coinor-Vol spec.
diff --git a/sources b/sources
index e69de29..656aed6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0dd609cbc96d9e345215b0226493d4df  Vol-1.4.4.tgz


More information about the scm-commits mailing list