Name: pythia8 Version: 8.3.12 Release: 3%{?dist} Summary: Pythia Event Generator for High Energy Physics License: GPL-2.0-or-later URL: https://pythia.org Source0: https://pythia.org/download/pythia83/pythia8312.tgz # Link plugins to the shared library # Remove rpath Patch0: %{name}-makefile.patch BuildRequires: make BuildRequires: gcc-c++ BuildRequires: lhapdf-devel BuildRequires: zlib-devel BuildRequires: python%{python3_pkgversion}-devel BuildRequires: rsync BuildRequires: dos2unix Requires: %{name}-data = %{version}-%{release} Obsoletes: %{name}-hepmcinterface < 8.2 %if %{?rhel}%{!?rhel:0} == 8 Obsoletes: python2-%{name} < 8.3.12 %endif %description PYTHIA is a program for the generation of high-energy physics events, i.e. for the description of collisions at high energies between elementary particles such as e⁺, e⁻, p and p̄ in various combinations. It contains theory and models for a number of physics aspects, including hard and soft interactions, parton distributions, initial and final-state parton showers, multiple interactions, fragmentation and decay. %package devel Summary: Pythia 8 Development Files Requires: %{name}%{?_isa} = %{version}-%{release} Obsoletes: %{name}-hepmcinterface-devel < 8.2 %description devel This package provides development files for Pythia 8. %package lhapdf Summary: Pythia 8 LHAPDF Interface Requires: %{name}%{?_isa} = %{version}-%{release} %description lhapdf This package provides the LHAPDF interface for Pythia 8. %package -n python%{python3_pkgversion}-%{name} Summary: Pythia 8 Python 3 bindings %py_provides python%{python3_pkgversion}-%{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description -n python%{python3_pkgversion}-%{name} This package provides the Python 3 bindings for Pythia 8. %package data Summary: Pythia 8 Data Files BuildArch: noarch %description data This package provides XML data files for Pythia 8. %package examples Summary: Pythia 8 Example Source Files BuildArch: noarch %description examples This package provides example source files for Pythia 8. %package doc Summary: Pythia 8 Documentation BuildArch: noarch %description doc This package provides documentation for Pythia 8. %prep %setup -q -n pythia8312 %patch -P0 -p1 # Remove DOS end-of-line dos2unix -k share/Pythia8/htmldoc/pythia.css \ share/Pythia8/pdfdata/mrstlostarstar.00.dat %build PYTHON_CONFIG=%{__python3}-config \ ./configure --prefix=%{_prefix} --prefix-lib=%{_libdir} \ --cxx-common="%{build_cxxflags} -fPIC" \ --cxx-shared="%{build_ldflags} -shared" \ --lib-suffix="-%{version}.so" \ --with-lhapdf6 \ --with-python \ --with-gzip %make_build PYTHON_EXT_SUFFIX=%{python3_ext_suffix} ln -s libpythia8-%{version}.so lib/libpythia8.so %install %make_install \ PYTHON_EXT_SUFFIX=%{python3_ext_suffix} \ PREFIX_BIN=%{buildroot}%{_bindir} \ PREFIX_INCLUDE=%{buildroot}%{_includedir} \ PREFIX_LIB=%{buildroot}%{_libdir} \ PREFIX_SHARE=%{buildroot}%{_datadir}/Pythia8 rm %{buildroot}%{_bindir}/pythia8-config rm %{buildroot}%{_libdir}/libpythia8.a rm -rf %{buildroot}%{_datadir}/Pythia8/htmldoc rm -rf %{buildroot}%{_datadir}/Pythia8/pdfdoc rm -rf %{buildroot}%{_datadir}/Pythia8/phpdoc rm %{buildroot}%{_datadir}/Pythia8/AUTHORS rm %{buildroot}%{_datadir}/Pythia8/COPYING rm %{buildroot}%{_datadir}/Pythia8/GUIDELINES rm %{buildroot}%{_datadir}/Pythia8/README rm %{buildroot}%{_datadir}/Pythia8/examples/Makefile rm %{buildroot}%{_datadir}/Pythia8/examples/Makefile.inc rm %{buildroot}%{_datadir}/Pythia8/examples/runmains touch %{buildroot}%{_datadir}/Pythia8/examples/Makefile.inc mkdir -p %{buildroot}%{python3_sitearch} mv %{buildroot}%{_libdir}/pythia8%{python3_ext_suffix} \ %{buildroot}%{python3_sitearch} mkdir %{buildroot}%{python3_sitearch}/%{name}-%{version}.dist-info echo 'Name: %{name}' > \ %{buildroot}%{python3_sitearch}/%{name}-%{version}.dist-info/METADATA echo 'Version: %{version}' >> \ %{buildroot}%{python3_sitearch}/%{name}-%{version}.dist-info/METADATA %files %{_libdir}/libpythia8-%{version}.so %doc AUTHORS GUIDELINES %license COPYING %files devel %{_libdir}/libpythia8.so %{_includedir}/Pythia8 %{_includedir}/Pythia8Plugins %doc CODINGSTYLE %files lhapdf %{_libdir}/libpythia8lhapdf*.so %files -n python%{python3_pkgversion}-%{name} %{python3_sitearch}/%{name}-%{version}.dist-info %{python3_sitearch}/pythia8.*.so %files data %dir %{_datadir}/Pythia8 %{_datadir}/Pythia8/pdfdata %{_datadir}/Pythia8/xmldoc %license COPYING %files examples %dir %{_datadir}/Pythia8 %doc %{_datadir}/Pythia8/examples %license COPYING %files doc %doc share/Pythia8/htmldoc %doc share/Pythia8/pdfdoc %license COPYING %changelog * Fri Jul 19 2024 Fedora Release Engineering - 8.3.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 8.3.12-2 - Rebuilt for Python 3.13 * Wed Jun 05 2024 Mattias Ellert - 8.3.12-1 - Update to version 8.3.12 - Drop EPEL7 build (soon to be EOL) - Drop python2 package (EPEL8) * Fri Jan 26 2024 Fedora Release Engineering - 8.3.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 8.3.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Nov 26 2023 Mattias Ellert - 8.3.10-2 - Fix 32 bit compilation of Python module * Sat Nov 25 2023 Mattias Ellert - 8.3.10-1 - Update to version 8.3.10 - Drop patches no longer needed * Wed Oct 25 2023 Mattias Ellert - 8.3.09-4 - Update patch for Pythia 3.13.0a1 (rhbz#2245858) * Fri Jul 21 2023 Fedora Release Engineering - 8.3.09-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 8.3.09-2 - Rebuilt for Python 3.12 * Tue Mar 14 2023 Mattias Ellert - 8.3.09-1 - Update to version 8.3.09 * Fri Jan 20 2023 Fedora Release Engineering - 8.3.06-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 8.3.06-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 8.3.06-5 - Rebuilt for Python 3.11 - Update pybind headers for python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 8.3.06-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Jan 16 2022 Mattias Ellert - 8.3.06-3 - Fix this pointer is null warnings - Fix creation of std::string from null pointer error (gcc 12) * Mon Dec 20 2021 Mattias Ellert - 8.3.06-2 - Rebuild for LHAPDF 6.4.0 * Mon Aug 16 2021 Mattias Ellert - 8.3.06-1 - Update to version 8.3.06 - Drop missing include patch (fixed upstream) - Update URL and Source tags to new domain (pythia.org) * Fri Jul 23 2021 Fedora Release Engineering - 8.3.03-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 8.3.03-4 - Rebuilt for Python 3.10 * Tue Jun 01 2021 Mattias Ellert - 8.3.03-3 - Remove rpath * Mon May 31 2021 Miro Hrončok - 8.3.03-2 - Populate .egg-info with some real metadata * Sun Feb 14 2021 Mattias Ellert - 8.3.03-1 - Update to version 8.3.03 * Wed Jan 27 2021 Fedora Release Engineering - 8.2.44-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Aug 23 2020 Mattias Ellert - 8.2.44-2 - Add -std=c++11 for lhapdf 6.3 * Sun Aug 23 2020 Mattias Ellert - 8.2.44-1 - Update to version 8.2.44 - Drop EPEL 6 specializations (will be EOL November 2020) - Don't use python-embed when compiling python modules * Tue Jul 28 2020 Fedora Release Engineering - 8.2.43-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 8.2.43-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 8.2.43-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 8.2.43-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 8.2.43-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 8.2.43-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jul 05 2019 Mattias Ellert - 8.2.43-1 - Update to version 8.2.43 - Add Python 3 package for EPEL 6 - Remove ppc64 specific conditionals (ppc64 no longer built in Fedora or EPEL) * Tue Jun 11 2019 Mattias Ellert - 8.2.35-8 - Use python-embed pkg-config module if it exists (python 3.8 compatibility) * Thu Mar 07 2019 Troy Dawson - 8.2.35-6 - Rebuilt to change main python from 3.4 to 3.6 * Wed Feb 06 2019 Mattias Ellert - 8.2.35-7 - Reduce memory usage during compilation of the python module on 32 bit arm * Sat Feb 02 2019 Fedora Release Engineering - 8.2.35-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Oct 25 2018 Mattias Ellert - 8.2.35-5 - Don't build Python 2 package for Fedora >= 30 - Add Python 3.6 package for EPEL 7 - Use empty .egg-info files instead of empty .dist-info files to make virtualenv happy * Tue Jul 31 2018 Mattias Ellert - 8.2.35-4 - Don't own toplevel __pycache__ directory * Fri Jul 13 2018 Fedora Release Engineering - 8.2.35-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Jul 08 2018 Mattias Ellert - 8.2.35-2 - Create empty .dist-info files so that rpm auto-generates provides * Wed Jul 04 2018 Mattias Ellert - 8.2.35-1 - Update to version 8.2.35 - Add python bindings (except on ppc64 for EPEL 6) - Change license tag from GPLv2 to GPLv2+ * Wed Mar 07 2018 Adam Williamson - 8.2.15-7 - Rebuild to fix GCC 8 mis-compilation See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64") * Fri Feb 09 2018 Fedora Release Engineering - 8.2.15-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 8.2.15-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 8.2.15-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 8.2.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Apr 15 2016 Mattias Ellert - 8.2.15-2 - Add missing obsoletes * Thu Apr 07 2016 Mattias Ellert - 8.2.15-1 - Update to version 8.2.15 * Thu Feb 04 2016 Fedora Release Engineering - 8.1.86-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 8.1.86-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 8.1.86-3 - Rebuilt for GCC 5 C++11 ABI change * Sun Aug 17 2014 Fedora Release Engineering - 8.1.86-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Jul 18 2014 Mattias Ellert - 8.1.86-1 - Update to version 8.1.86 * Sat Jun 07 2014 Fedora Release Engineering - 8.1.80-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Oct 30 2013 Mattias Ellert - 8.1.80-1 - Update to version 8.1.80 - Use full version in soname * Sun Aug 04 2013 Fedora Release Engineering - 8.1.76-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri May 31 2013 Mattias Ellert - 8.1.76-3 - Remove DOS end-of-line * Thu May 23 2013 Mattias Ellert - 8.1.76-2 - Fix race condition in Makefile - Add isa to dependencies * Sat May 18 2013 Mattias Ellert - 8.1.76-1 - New upstream release * Wed Nov 14 2012 Mattias Ellert - 8.1.70-1 - Initial build