File jags.spec of Package jags

#
# spec file for package jags
#
# Copyright (c) 2018 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 http://bugs.opensuse.org/
#


Name:           jags
Version:        4.3.0
Release:        1%{?dist}
Summary:        Just Another Gibbs Sampler
License:        GPL-2.0-only
Group:          Productivity/Scientific/Math
URL:            http://mcmc-jags.sourceforge.net
Source0:        http://mcmc-jags.sourceforge.net/JAGS-%{version}.tar.gz
BuildRequires:  blas
BuildRequires:  blas-devel
BuildRequires:  gcc-c++
BuildRequires:  gcc-fortran
BuildRequires:  glibc-devel
BuildRequires:  lapack
BuildRequires:  lapack-devel
BuildRequires:  libblas3
BuildRequires:  liblapack3
BuildRequires:  libltdl7
BuildRequires:  pkgconfig

%description
JAGS (Just Another Gibbs Sampler) is a program for the analysis of
Bayesian statistical models using Markov Chain Monte Carlo (MCMC)
simulation.

JAGS is similar to the BUGS (Bayesian Inference using Gibbs Sampling)
program developed at the MRC Biostatistics Unit, Cambridge, and uses a
dialect of the BUGS language to describe Bayesian hierarchical models.

%package devel
Summary:        JAGS development libraries
Group:          Development/Libraries/C and C++
Requires:       gcc-c++
Requires:       gcc-fortran
Requires:       glibc-devel
Requires:       jags = %{version}

%description devel

JAGS headers and libraries. Install jags-devel if you are going to
link a program against the JAGS library, or extend the functionality
of JAGS by developing/installing JAGS modules.

%prep
%setup -q -n JAGS-%{version}
export F77=gfortran
%configure

%build
make %{?_smp_mflags}

%install
%make_install

# Remove libtool files, we don't package static libraries
rm %{buildroot}/%{_libdir}/libjags.la
rm %{buildroot}/%{_libdir}/libjrmath.la

%files
%{_bindir}/jags
%{_libexecdir}/jags-terminal
%{_libdir}/JAGS
%{_libdir}/libjags.so.*
%{_libdir}/libjrmath.so.*
%{_mandir}/man1/jags.1%{?ext_man}

%files devel
%{_libdir}/pkgconfig/jags.pc
%{_includedir}/JAGS
%{_libdir}/libjags.so
%{_libdir}/libjrmath.so

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%changelog
openSUSE Build Service is sponsored by