File MrBayes.spec of Package MrBayes

#
# spec file for package MrBayes
#
# Copyright (c) 2024 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:           MrBayes
Version:        3.2.7
Release:        0
Summary:        Bayesian inference across a wide range of phylogenetic and evolutionary models
License:        GPL-3.0-or-later
Group:          Productivity/Scientific/Other
URL:            https://nbisweden.github.io/MrBayes/
Source:         https://github.com/NBISweden/MrBayes/archive/v%{version}.tar.gz#/MrBayes-%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  ncurses-devel
BuildRequires:  openmpi-macros-devel
BuildRequires:  readline-devel
BuildRequires:  texlive-bibtex-bin
BuildRequires:  texlive-latex-bin-bin
Requires:       ncurses
Requires:       readline
Conflicts:      MrBayes-mpi

%description
MrBayes is a program for Bayesian inference and model choice across a wide range of phylogenetic and evolutionary models. MrBayes uses Markov chain Monte Carlo (MCMC) methods to estimate the posterior distribution of model parameters.

%package doc
Summary:        MrBayes documentation and examples
Group:          Productivity/Scientific/Other
BuildArch:      noarch

%description doc
MrBayes is a program for Bayesian inference and model choice across a wide range of phylogenetic and evolutionary models. MrBayes uses Markov chain Monte Carlo (MCMC) methods to estimate the posterior distribution of model parameters. Documentation and examples.

%prep
%setup -q

%build
%{setup_openmpi}
%configure --enable-mpi=yes --with-beagle=no --enable-sse=yes --enable-avx=yes --enable-fma=yes --with-readline
%make_build
sed -i 's/\r$//' doc/tutorial/hym.nex examples/*.nex

%install
%make_install

%check
%{setup_openmpi}

%files
%license COPYING
%{_bindir}/*

%files doc
%doc %{_datadir}/doc/mrbayes
%doc %{_datadir}/examples

%changelog
openSUSE Build Service is sponsored by