[metslib] Initial import

rmattes rmattes at fedoraproject.org
Mon Aug 26 21:27:57 UTC 2013


commit f79adb913c70111836e116c641f483063e09571b
Author: Rich Mattes <richmattes at gmail.com>
Date:   Mon Aug 26 17:27:42 2013 -0400

    Initial import

 .gitignore                 |    1 +
 metslib-0.5.3-noarch.patch |   14 +++++++
 metslib.spec               |   91 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 4 files changed, 107 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c7c5363 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/metslib-0.5.3.tgz
diff --git a/metslib-0.5.3-noarch.patch b/metslib-0.5.3-noarch.patch
new file mode 100644
index 0000000..22f62fa
--- /dev/null
+++ b/metslib-0.5.3-noarch.patch
@@ -0,0 +1,14 @@
+diff -up ./metslib.pc.in.noarch ./metslib.pc.in
+--- ./metslib.pc.in.noarch	2013-08-10 11:03:19.804295046 -0400
++++ ./metslib.pc.in	2013-08-10 11:03:33.005806016 -0400
+@@ -1,9 +1,8 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+-libdir=@libdir@
+ includedir=@includedir@
+ 
+ Name: METS tabu search generic library.
+ Description: METS Tabu Search Metaheuristic C++ generic library.
+ Version: @VERSION@
+-Cflags: -I${includedir}/@GENERIC_LIBRARY_NAME at -@GENERIC_API_VERSION@ -I${libdir}/@GENERIC_LIBRARY_NAME at -@GENERIC_API_VERSION@/include
++Cflags: -I${includedir}/@GENERIC_LIBRARY_NAME at -@GENERIC_API_VERSION@ 
diff --git a/metslib.spec b/metslib.spec
new file mode 100644
index 0000000..5ee70b6
--- /dev/null
+++ b/metslib.spec
@@ -0,0 +1,91 @@
+# This is really a noarch package, we're just building on all arches so we 
+# can run unit tests across all arches.   The debuginfo will always be empty
+# (no executables or libraries,) so we can disable it
+%global debug_package %{nil}
+
+Name:           metslib
+Version:        0.5.3
+Release:        4%{?dist}
+Summary:        Metaheuristic modeling framework and optimization toolkit in modern C++
+
+License:        GPLv3+ or CPL
+URL:            https://projects.coin-or.org/metslib
+Source0:        http://www.coin-or.org/download/source/%{name}/%{name}-%{version}.tgz
+# Removes all "libdir" paths from .pc file (which are unneeded).  Not upstream
+Patch0:         %{name}-0.5.3-noarch.patch
+
+BuildRequires:  doxygen
+BuildRequires:  graphviz
+
+%description
+%{summary}.
+
+%package        devel
+Summary:        Metaheuristic modeling framework and optimization toolkit in modern C++
+Provides:       %{name}-static = %{version}-%{release}
+BuildArch:      noarch
+
+%description    devel
+METSlib is a metaheuristic modeling framework and optimization toolkit in
+modern C++ released as Free/Libre/Open Source Software.
+
+Model and algorithms are modular: any search algorithm can be applied to the
+same model. On the other hand no assumption is made on the model, you can
+work on any problem type: timetabling, assignment problems, vehicle routing,
+bin-packing and so on.
+
+Once you have implemented your model in the problem framework, the library
+makes easy testing different Tabu Search strategies or even different
+algorithms (Simulated Annealing or other local search based algorithms) with
+a few lines of code.
+
+%package doc
+Summary:     Documentation for %{name}
+BuildArch:   noarch
+
+%description doc
+The %{name}-doc package provides documentation for the %{name} library.
+
+%prep
+%setup -q
+%patch0 -p0
+# Disable -O3 optimization for unit tests
+sed -i 's| -O3||g' configure
+
+%build
+%configure 
+CXXFLAGS="%{optflags}" make %{?_smp_mflags}
+doxygen doxydoc/doxygen.conf
+
+%install
+%make_install
+# Move pkgconfig file to /usr/share/pkgconfig (since package is noarch)
+mkdir -p %{buildroot}%{_datadir}
+mv %{buildroot}%{_libdir}/pkgconfig %{buildroot}%{_datadir}
+
+%check
+make test
+
+%files devel
+%doc AUTHORS COPYING NEWS README 
+%{_includedir}/*
+%{_datadir}/pkgconfig/*.pc
+
+%files doc
+%doc doxydoc/html COPYING
+
+%changelog
+* Fri Aug 23 2013 Rich Mattes <richmattes at gmail.com> - 0.5.3-4
+- Added -doc subpackage
+- Fixed license to read GPLv3+ instead of GPLv3
+
+* Thu Aug 22 2013 Rich Mattes <richmattes at gmail.com> - 0.5.3-3
+- Remove -O3 from configure instead of configure.ac
+
+* Sun Aug 11 2013 Rich Mattes <richmattes at gmail.com> - 0.5.3-2
+- Removed metslib virtual provide
+- Removed optimization flags from unit tests
+- Added patch to remove libdir references from pkgconfig file
+
+* Sun Aug 04 2013 Rich Mattes <richmattes at gmail.com> - 0.5.3-1
+- Initial package
diff --git a/sources b/sources
index e69de29..e693634 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+abe958de95754786e9d3bcce30d997e7  metslib-0.5.3.tgz


More information about the scm-commits mailing list