File mccs.spec of Package mccs

#
# spec file for package mccs
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           mccs
Version:        1.1
Release:        0
Summary:        Multi Criteria CUDF Solver
License:        BSD-3-Clause
Group:          Productivity/Scientific/Math
URL:            http://www.i3s.unice.fr/~cpjm/misc/mccs.html
Source:         http://www.i3s.unice.fr/~cpjm/misc/mccs-%{version}-srcs.tgz

BuildRequires:  gcc-c++
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  suitesparse-devel
BuildRequires:  lpsolve-devel


%description
mccs (which stands for Multi Criteria CUDF Solver) is a CUDF problem solver
developed at UNS during the European MANCOOSI project. mccs take as input a
CUDF problem and computes the best solution according to a set of criteria.
It relies on a Integer Programming solver or a Pseudo Boolean solver to achieve
its task. mccs can use a wide set of underlying solvers like Cplex, Gurobi,
Lpsolver, Glpk, CbC, SCIP or WBO.


%prep
%setup -q -n %{name}-%{version}

%build
make USELPSOLVE=1 LPSOLVEDIR=%{_libdir} LPSOLVEINC=%{_includedir}/lpsolve CCCOPT="$RPM_OPT_FLAGS"

%install
mkdir -p %{buildroot}%{_bindir}
cp mccs %{buildroot}%{_bindir}


%files
%doc CHANGES README
%license LICENCE
%{_bindir}/mccs


%changelog
openSUSE Build Service is sponsored by