File tauolapp.spec of Package tauolapp

#
# spec file for package tauolapp
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#


%define src_name TAUOLA
%define so_ver 0
%define shlib lib%{name}%{so_ver}
Name:           tauolapp
Version:        1.1.9
Release:        0
Summary:        A C++ library for computing tau lepton propagation
License:        GPL-3.0-or-later
URL:            https://tauolapp.web.cern.ch/tauolapp/
Source:         %{url}/resources/%{src_name}.%{version}/%{src_name}.%{version}-LHC.tar.gz#/%{src_name}-%{version}.tar.gz
BuildRequires:  HepMC-devel
BuildRequires:  LHAPDF-devel
BuildRequires:  gcc-c++
BuildRequires:  gcc-fortran
BuildRequires:  pythia-devel

%description
TAUOLApp is a C++ library used to compute tau lepton propagation in earth. It
is a C++ interface to the well known TAUOLA fortran library, which it wraps and
supersedes.

%package -n %{shlib}
Summary:        Shared library to tauolapp - a C++ library for tau propagation

%description -n %{shlib}
This package provides the shared library for %{name}.

%package devel
Summary:        Headers and source code to build apps against tauola
Requires:       %{shlib} = %{version}

%description devel
This package provides the headers and sources needed to build against tauolapp

%prep
%autosetup -p1 -n %{src_name}

%build
%configure \
	--disable-static \
  --without-hepmc \
	--with-hepmc3 \
	--with-lhapdf \
	--with-pythia8 \
	%{nil}
%make_build

%install
%make_install

find %{buildroot}%{_libdir} -name *.la -delete -print

%ldconfig_scriptlets -n %{shlib}

%files -n %{shlib}
%license COPYING
%{_libdir}/libTauola*.so.0*

%files devel
%license COPYING
%{_libdir}/libTauola*.so
%{_includedir}/Tauola/
%{_includedir}/TauSpinner/

%changelog
openSUSE Build Service is sponsored by