File covid-sim.spec of Package covid-sim

#
# spec file for package covid-sim
#
# Copyright (c) 2020 SUSE LLC
#
# 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:           covid-sim
Version:        0.14.0
Release:        0
Summary:        COVID-19 CovidSim microsimulation model
License:        GPL-3.0
Group:          Productivity/Scientific/Chemistry
URL:            https://github.com/mrc-ide/covid-sim
Source0:        https://github.com/mrc-ide/covid-sim#/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  graphviz

%description
This is the COVID-19 CovidSim microsimulation model developed by the MRC
Centre for Global Infectious Disease Analysis hosted at Imperial College, London.

%prep
%autosetup

%build
%cmake -DBUILD_DOC:BOOL=ON
%cmake_build

%install
install -Dm0755 build/src/CovidSim %{buildroot}%{_bindir}/CovidSim

%check
%ctest

%files
%doc README.md build/docs
%license LICENSE.md
%{_bindir}/CovidSim

%changelog
openSUSE Build Service is sponsored by