Something went wrong. Try again.
Maps Linux distribution source packages to their upstream repositories, and through them to each other
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237## spec file for package Rivet## 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 so_name lib%{name}-%(echo %{version} | tr '.' '_')Name: RivetVersion: 4.1.2Release: 0Summary: A toolkit for validation of Monte Carlo event generatorsLicense: Apache-2.0 AND GPL-2.0-only AND MPL-2.0 AND LPPL-1.3a AND BSL-1.0URL: https://gitlab.com/hepcedar/rivet/Source: https://www.hepforge.org/archive/rivet/%{name}-%{version}.tar.bz2Patch0: sover.diff# PATCH-FEATURE-OPENSUSE Rivet-disable-testCmdLine.patch badshah400@gmail.com -- Disable an outdated and failing testPatch1: Rivet-disable-testCmdLine.patch# PATCH-FIX-UPSTREAM Rivet-reproducible-plugin-build.patch bwiedemann@suse.de -- Make plugin .so builds independent of CPU count and tmp file namesPatch2: Rivet-reproducible-plugin-build.patchBuildRequires: HepMC-devel >= 3.2BuildRequires: YODA-devel >= 2.0BuildRequires: bash-completionBuildRequires: fastjet-contrib-develBuildRequires: fastjet-develBuildRequires: fastjet-plugin-siscone-develBuildRequires: fdupesBuildRequires: gcc-c++BuildRequires: libboost_headers-develBuildRequires: libtoolBuildRequires: pkgconfigBuildRequires: python3-CythonBuildRequires: python3-develBuildRequires: yaml-cpp-develBuildRequires: pkgconfig(gsl)BuildRequires: pkgconfig(hdf5)BuildRequires: pkgconfig(zlib)# i586 error due to conversion from `long long` to `size_t`ExcludeArch: %ix86 %{arm}%descriptionThe Rivet project (Robust Independent Validation of Experiment andTheory) is a toolkit for validation of Monte Carlo event generators.It provides a large (and ever growing) set of experimental analysesuseful for MC generator development, validation, and tuning, as wellas a convenient infrastructure for adding your own analyses. Rivet isthe most widespread way by which analysis code from the LHC and otherhigh-energy collider experiments is preserved for comparison to anddevelopment of future theory models.%package -n %{so_name}Summary: A toolkit for validation of Monte Carlo event generators%description -n %{so_name}The Rivet project (Robust Independent Validation of Experiment andTheory) is a toolkit for validation of Monte Carlo event generators.It provides a large (and ever growing) set of experimental analysesuseful for MC generator development, validation, and tuning, as wellas a convenient infrastructure for adding your own analyses. Rivet isthe most widespread way by which analysis code from the LHC and otherhigh-energy collider experiments is preserved for comparison to anddevelopment of future theory models.This package provides the shared libraries for %{name}.%package dataSummary: Data files for RivetBuildArch: noarch%description dataThe Rivet project (Robust Independent Validation of Experiment andTheory) is a toolkit for validation of Monte Carlo event generators.This package provides common data files for Rivet used by both C++and Python bindings.%package develSummary: A toolkit for validation of Monte Carlo event generatorsRequires: %{name}-data = %{version}Requires: %{so_name} = %{version}Requires: YODA-devel >= 1.8.0%description develThe Rivet project (Robust Independent Validation of Experiment andTheory) is a toolkit for validation of Monte Carlo event generators.It provides a large (and ever growing) set of experimental analysesuseful for MC generator development, validation, and tuning, as wellas a convenient infrastructure for adding your own analyses. Rivet isthe most widespread way by which analysis code from the LHC and otherhigh-energy collider experiments is preserved for comparison to anddevelopment of future theory models.This package provides the source files for development with %{name}.%package -n python3-%{name}Summary: A toolkit for validation of Monte Carlo event generatorsRequires: %{name}-data = %{version}Provides: python-%{name} = %{version}Obsoletes: python-%{name} < %{version}%description -n python3-%{name}The Rivet project (Robust Independent Validation of Experiment andTheory) is a toolkit for validation of Monte Carlo event generators.It provides a large (and ever growing) set of experimental analysesuseful for MC generator development, validation, and tuning, as wellas a convenient infrastructure for adding your own analyses. Rivet isthe most widespread way by which analysis code from the LHC and otherhigh-energy collider experiments is preserved for comparison to anddevelopment of future theory models.This package provides the python bindings for %{name}.%package pluginsSummary: A collection of analyses plugins for %{name}Requires: %{name}-devel = %{version}%description pluginsThe Rivet project (Robust Independent Validation of Experiment andTheory) is a toolkit for validation of Monte Carlo event generators.It provides a large (and ever growing) set of experimental analysesuseful for MC generator development, validation, and tuning, as wellas a convenient infrastructure for adding your own analyses. Rivet isthe most widespread way by which analysis code from the LHC and otherhigh-energy collider experiments is preserved for comparison to anddevelopment of future theory models.This package provides all the analysis plugins for %{name}.%prep%autosetup -p1# REMOVE EXISTING rivet.pc FILE, ALLOW make TO GENERATE rivet.pc FROM rivet.pc.inrm rivet.pc# SECTION Fix/drop env based hashbangs in binaries as appropriate# Need to do this here rather than post-install in buildroot for tests in %%check to succeedsed -Ei "1s:^#!\s*/usr/bin/env bash:#!/bin/bash:" ./bin/*sed -Ei "1s:^#!\s*/usr/bin/env python3?$:#!%{_bindir}/python3:" \ ./bin/* \ ./pyext/build.py.insed -E -i '1{/^#!.*env python/d}' \ ./pyext/rivet/spiresbib.py \ ./analyses/pluginLHCb/LHCB_201*_ratios.py# /SECTION%buildautoreconf -fviexport PYTHON_VERSION=%{python3_version}%configure --with-hepmc3=%{_prefix} \ --docdir=%{_docdir}/%{name}/ \ %{nil}%make_build%installexport PYTHONPATH+=':%{buildroot}%{python3_sitearch}'%make_install# SECTION Remove rpaths from config binaries and pkgconfig filesed -i "s|-Wl,-rpath,[^ ]\+||g" %{buildroot}%{_bindir}/rivet-config# /SECTIONfind %{buildroot} -type f -name "*.la" -delete -printmkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.decho "%{_libdir}/%{name}" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-plugins.confchmod -x %{buildroot}%{_datadir}/Rivet/ALICE_2012_I1126966.info \ %{buildroot}%{_datadir}/Rivet/ALICE_2014_I1243865.info \ %{buildroot}%{_datadir}/Rivet/STAR_2017_I1510593.{info,plot} \ %{buildroot}%{_datadir}/Rivet/ATLAS_2019_I1772071.{cc,plot} \ %{buildroot}%{_datadir}/Rivet/ATLAS_2022_I2152933.cc \ %{buildroot}%{_datadir}/Rivet/ATLAS_2022_I2152933.info \ %{buildroot}%{_datadir}/Rivet/ATLAS_2022_I2152933.plot \ %{buildroot}%{_datadir}/Rivet/ATLAS_2023_I2628732.infomkdir -p %{buildroot}%{_datadir}/bash-completion/completionsmv %{buildroot}/etc/bash_completion.d/rivet-completion %{buildroot}%{_datadir}/bash-completion/completions/%fdupes %{buildroot}%{_datadir}/Rivet/%checkexport PYTHONPATH+=':%{buildroot}%{python3_sitearch}'%make_build check%ldconfig_scriptlets -n %{so_name}%files -n %{so_name}%{_libdir}/libRivet-*.so%files data%license COPYING%{_datadir}/%{name}/%files devel%license COPYING%doc ChangeLog README.md%{_bindir}/rivet-build%{_bindir}/rivet-config%{_includedir}/%{name}/%{_libdir}/lib%{name}.so%{_libdir}/pkgconfig/rivet.pc%files plugins%license COPYING%config %{_sysconfdir}/ld.so.conf.d/%{name}-plugins.conf%{_libdir}/%{name}/%files -n python3-%{name}%license COPYING%{_bindir}/make-plots%{_bindir}/rivet%{_bindir}/rivet-cmphistos%{_bindir}/rivet-diffhepdata%{_bindir}/rivet-diffhepdata-all%{_bindir}/rivet-findid%{_bindir}/rivet-merge%{_bindir}/rivet-mkanalysis%{_bindir}/rivet-mkhepdata%{_bindir}/rivet-mkhtml%{_bindir}/rivet-mkhtml-tex%{_bindir}/rivet-mkvaldir%{python3_sitearch}/rivet/%{_datadir}/bash-completion/completions/*%changelog