File fastjet.spec of Package fastjet
#
# spec file for package fastjet
#
# Copyright (c) 2022 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: fastjet
Version: 3.4.0
Release: 0
Summary: Package for jet finding in pp and e+e- collisions
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
URL: http://fastjet.fr/
Source: http://fastjet.fr/repo/%{name}-%{version}.tar.gz
BuildRequires: cgal-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python3-devel
%description
FastJet is a software package for jet finding in pp and e+e-
collisions. It includes fast native implementations of many sequential
recombination clustering algorithms, plugins for access to a range of
cone jet finders and tools for advanced jet manipulation.
It provides a fast implementation of several
longitudinally invariant sequential recombination jet algorithms, in
particular the longitudinally invariant kt jet algorithm, the
inclusive longitudinally invariant version of the Cambridge/Aachen
jet-algorithm, and the inclusive anti-kt algorithm.
%package -n libfastjet0
Summary: Shared libraries for fastjet core package
Group: Development/Libraries/C and C++
%description -n libfastjet0
FastJet is a software package for jet finding in pp and e+e-
collisions. It includes fast native implementations of many sequential
recombination clustering algorithms, plugins for access to a range of
cone jet finders and tools for advanced jet manipulation.
It provides a fast implementation of several
longitudinally invariant sequential recombination jet algorithms, in
particular the longitudinally invariant kt jet algorithm, the
inclusive longitudinally invariant version of the Cambridge/Aachen
jet-algorithm, and the inclusive anti-kt algorithm.
This package provides the shared libraries for fastjet and its
plugins.
%package -n fastjet-devel
Summary: Shared libraries for fastjet core package
Group: Development/Libraries/C and C++
Requires: cgal-devel
Requires: libfastjet0 = %{version}
%description -n fastjet-devel
FastJet is a software package for jet finding in pp and e+e-
collisions. It includes fast native implementations of many sequential
recombination clustering algorithms, plugins for access to a range of
cone jet finders and tools for advanced jet manipulation.
It provides a fast implementation of several
longitudinally invariant sequential recombination jet algorithms, in
particular the longitudinally invariant kt jet algorithm, the
inclusive longitudinally invariant version of the Cambridge/Aachen
jet-algorithm, and the inclusive anti-kt algorithm.
This package provides the header files for development with fastjet.
%package -n fastjet-plugin-siscone
Summary: SISCone plugin for fastjet
Group: Development/Libraries/C and C++
%description -n fastjet-plugin-siscone
FastJet is a software package for jet finding in pp and e+e-
collisions. It includes fast native implementations of many sequential
recombination clustering algorithms, plugins for access to a range of
cone jet finders and tools for advanced jet manipulation.
It provides a fast implementation of several
longitudinally invariant sequential recombination jet algorithms, in
particular the longitudinally invariant kt jet algorithm, the
inclusive longitudinally invariant version of the Cambridge/Aachen
jet-algorithm, and the inclusive anti-kt algorithm.
This package provides shared libraries for SISCone plugin for
fastjet.
%package -n fastjet-plugin-siscone-devel
Summary: SISCone plugin for fastjet
Group: Development/Libraries/C and C++
Requires: fastjet-devel = %{version}
Requires: fastjet-plugin-siscone = %{version}
%description -n fastjet-plugin-siscone-devel
FastJet is a software package for jet finding in pp and e+e-
collisions. It includes fast native implementations of many sequential
recombination clustering algorithms, plugins for access to a range of
cone jet finders and tools for advanced jet manipulation.
It provides a fast implementation of several
longitudinally invariant sequential recombination jet algorithms, in
particular the longitudinally invariant kt jet algorithm, the
inclusive longitudinally invariant version of the Cambridge/Aachen
jet-algorithm, and the inclusive anti-kt algorithm.
This package provides the develoment files for SISCone plugin for
fastjet.
%package -n python3-%{name}
Summary: Python3 bindings for fastjet
Group: Development/Libraries/Python
%description -n python3-%{name}
FastJet is a software package for jet finding in pp and e+e-
collisions.
This package provides python3 bindings for fastjet.
%prep
%setup -q
%build
# Don't use --enable-cgal-header-only option up to 15.2
%configure --disable-static \
--enable-allcxxplugins \
%if 0%{?sle_version} < 120000 || 0%{?sle_version} > 150200
--enable-cgal-header-only \
%endif
--enable-pyext \
--enable-cgal
%make_build
%install
%make_install
# REMOVE libtool ARCHIVES
find %{buildroot} -type f -name "*.la" -delete -print
# Remove rpaths from fastjet-contrib script
sed -i "s|-Wl,-rpath,[^ ]\+||g" %{buildroot}%{_bindir}/fastjet-config
%fdupes %{buildroot}%{python3_sitelib}/
%post -n libfastjet0 -p /sbin/ldconfig
%postun -n libfastjet0 -p /sbin/ldconfig
%post -n fastjet-plugin-siscone -p /sbin/ldconfig
%postun -n fastjet-plugin-siscone -p /sbin/ldconfig
%files -n libfastjet0
%license COPYING
%doc ChangeLog README
%{_libdir}/libfastjet.so.*
%{_libdir}/libfastjettools.so.*
%{_libdir}/libfastjetplugins.so.*
%files -n fastjet-devel
%{_bindir}/fastjet-config
%{_libdir}/libfastjet.so
%{_libdir}/libfastjettools.so
%{_libdir}/libfastjetplugins.so
%{_includedir}/fastjet/
%{_datadir}/%{name}/
%files -n fastjet-plugin-siscone
%{_libdir}/libsiscone*.so.*
%files -n fastjet-plugin-siscone-devel
%{_libdir}/libsiscone*.so
%{_includedir}/siscone/
%files -n python3-%{name}
%{python3_sitelib}/fastjet.*
%{python3_sitelib}/__pycache__/*
%{python3_sitearch}/_fastjet.*
%changelog