|
|
7badc08 |
Name: pythia8
|
|
|
fa2915f |
Version: 8.2.15
|
|
|
8b95c77 |
Release: 2%{?dist}
|
|
|
7badc08 |
Summary: Pythia Event Generator for High Energy Physics
|
|
|
7badc08 |
Group: System Environment/Libraries
|
|
|
7badc08 |
|
|
|
7badc08 |
License: GPLv2
|
|
|
7badc08 |
URL: http://home.thep.lu.se/~torbjorn/Pythia.html
|
|
|
fa2915f |
Source0: http://home.thep.lu.se/~torbjorn/pythia8/pythia8215.tgz
|
|
|
fa2915f |
# Link plugins to the shared library
|
|
|
fa2915f |
# Remove rpath
|
|
|
fa2915f |
# Work around broken -x c++ -c with old g++ versions
|
|
|
fa2915f |
Patch0: %{name}-makefile.patch
|
|
|
7badc08 |
|
|
|
7badc08 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
81d417c |
BuildRequires: lhapdf-devel
|
|
|
fa2915f |
BuildRequires: zlib-devel
|
|
|
fa2915f |
BuildRequires: gcc-gfortran
|
|
|
fa2915f |
BuildRequires: rsync
|
|
|
7badc08 |
BuildRequires: dos2unix
|
|
|
7badc08 |
Requires: %{name}-data = %{version}-%{release}
|
|
|
8b95c77 |
Obsoletes: %{name}-hepmcinterface < 8.2
|
|
|
7badc08 |
|
|
|
7badc08 |
%description
|
|
|
7badc08 |
PYTHIA is a program for the generation of high-energy physics events, i.e.
|
|
|
7badc08 |
for the description of collisions at high energies between elementary
|
|
|
7badc08 |
particles such as e⁺, e⁻, p and p̄ in various combinations. It contains
|
|
|
7badc08 |
theory and models for a number of physics aspects, including hard and soft
|
|
|
7badc08 |
interactions, parton distributions, initial and final-state parton showers,
|
|
|
7badc08 |
multiple interactions, fragmentation and decay.
|
|
|
7badc08 |
|
|
|
7badc08 |
%package devel
|
|
|
7badc08 |
Summary: Pythia 8 Development Files
|
|
|
7badc08 |
Group: Development/Libraries
|
|
|
7badc08 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
8b95c77 |
Obsoletes: %{name}-hepmcinterface-devel < 8.2
|
|
|
7badc08 |
|
|
|
7badc08 |
%description devel
|
|
|
7badc08 |
This package provides development files for Pythia 8.
|
|
|
7badc08 |
|
|
|
fa2915f |
%package lhapdf
|
|
|
fa2915f |
Summary: Pythia 8 LHAPDF Interface
|
|
|
7badc08 |
Group: System Environment/Libraries
|
|
|
7badc08 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
7badc08 |
|
|
|
fa2915f |
%description lhapdf
|
|
|
fa2915f |
This package provides the LHAPDF interface for Pythia 8.
|
|
|
7badc08 |
|
|
|
7badc08 |
%package data
|
|
|
7badc08 |
Summary: Pythia 8 Data Files
|
|
|
7badc08 |
Group: Applications/Engineering
|
|
|
7badc08 |
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
|
|
|
7badc08 |
BuildArch: noarch
|
|
|
7badc08 |
%endif
|
|
|
7badc08 |
|
|
|
7badc08 |
%description data
|
|
|
7badc08 |
This package provides XML data files for Pythia 8.
|
|
|
7badc08 |
|
|
|
7badc08 |
%package examples
|
|
|
7badc08 |
Summary: Pythia 8 Example Source Files
|
|
|
7badc08 |
Group: Documentation
|
|
|
7badc08 |
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
|
|
|
7badc08 |
BuildArch: noarch
|
|
|
7badc08 |
%endif
|
|
|
7badc08 |
|
|
|
7badc08 |
%description examples
|
|
|
7badc08 |
This package provides example source files for Pythia 8.
|
|
|
7badc08 |
|
|
|
7badc08 |
%package doc
|
|
|
7badc08 |
Summary: Pythia 8 Documentation
|
|
|
7badc08 |
Group: Documentation
|
|
|
7badc08 |
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
|
|
|
7badc08 |
BuildArch: noarch
|
|
|
7badc08 |
%endif
|
|
|
7badc08 |
|
|
|
7badc08 |
%description doc
|
|
|
7badc08 |
This package provides documentation for Pythia 8.
|
|
|
7badc08 |
|
|
|
7badc08 |
%prep
|
|
|
fa2915f |
%setup -q -n pythia8215
|
|
|
7badc08 |
%patch0 -p1
|
|
|
7badc08 |
|
|
|
7badc08 |
# Remove DOS end-of-line
|
|
|
fa2915f |
dos2unix -k share/Pythia8/htmldoc/pythia.css \
|
|
|
fa2915f |
share/Pythia8/phpdoc/pythia.css \
|
|
|
fa2915f |
share/Pythia8/xmldoc/mrstlostarstar.00.dat
|
|
|
7badc08 |
|
|
|
7badc08 |
%build
|
|
|
fa2915f |
./configure --prefix=%{_prefix} --prefix-lib=%{_libdir} \
|
|
|
fa2915f |
--cxx-common="%{optflags} -fPIC" \
|
|
|
fa2915f |
--cxx-shared="%{?__global_ldflags} -Wl,-z,defs -shared" \
|
|
|
fa2915f |
--lib-suffix=".so.%{version}" \
|
|
|
fa2915f |
--enable-shared --with-lhapdf5 --with-gzip
|
|
|
fa2915f |
make %{?_smp_mflags} BOOST_INCLUDE=/dummy-path
|
|
|
7badc08 |
|
|
|
7badc08 |
%install
|
|
|
7badc08 |
rm -rf %{buildroot}
|
|
|
fa2915f |
make %{?_smp_mflags} install \
|
|
|
fa2915f |
PREFIX_BIN=%{buildroot}%{_bindir} \
|
|
|
fa2915f |
PREFIX_INCLUDE=%{buildroot}%{_includedir} \
|
|
|
fa2915f |
PREFIX_LIB=%{buildroot}%{_libdir} \
|
|
|
fa2915f |
PREFIX_SHARE=%{buildroot}%{_datadir}/Pythia8
|
|
|
81d417c |
ln -s libpythia8.so.%{version} %{buildroot}%{_libdir}/libpythia8.so
|
|
|
7badc08 |
|
|
|
fa2915f |
rm %{buildroot}%{_bindir}/pythia8-config
|
|
|
fa2915f |
rm %{buildroot}%{_libdir}/libpythia8.a
|
|
|
8b95c77 |
rm -rf %{buildroot}%{_datadir}/Pythia8/htmldoc
|
|
|
fa2915f |
rm -rf %{buildroot}%{_datadir}/Pythia8/pdfdoc
|
|
|
fa2915f |
rm -rf %{buildroot}%{_datadir}/Pythia8/phpdoc
|
|
|
fa2915f |
rm %{buildroot}%{_datadir}/Pythia8/AUTHORS
|
|
|
fa2915f |
rm %{buildroot}%{_datadir}/Pythia8/COPYING
|
|
|
fa2915f |
rm %{buildroot}%{_datadir}/Pythia8/GUIDELINES
|
|
|
fa2915f |
rm %{buildroot}%{_datadir}/Pythia8/README
|
|
|
fa2915f |
rm %{buildroot}%{_datadir}/Pythia8/examples/Makefile
|
|
|
fa2915f |
rm %{buildroot}%{_datadir}/Pythia8/examples/Makefile.inc
|
|
|
7badc08 |
|
|
|
7badc08 |
%clean
|
|
|
7badc08 |
rm -rf %{buildroot}
|
|
|
7badc08 |
|
|
|
7badc08 |
%post -p /sbin/ldconfig
|
|
|
7badc08 |
|
|
|
7badc08 |
%postun -p /sbin/ldconfig
|
|
|
7badc08 |
|
|
|
fa2915f |
%post lhapdf -p /sbin/ldconfig
|
|
|
fa2915f |
|
|
|
fa2915f |
%postun lhapdf -p /sbin/ldconfig
|
|
|
7badc08 |
|
|
|
fa2915f |
%{!?_licensedir: %global license %%doc}
|
|
|
7badc08 |
|
|
|
7badc08 |
%files
|
|
|
81d417c |
%{_libdir}/libpythia8.so.*
|
|
|
fa2915f |
%doc AUTHORS GUIDELINES
|
|
|
fa2915f |
%license COPYING
|
|
|
7badc08 |
|
|
|
7badc08 |
%files devel
|
|
|
7badc08 |
%{_libdir}/libpythia8.so
|
|
|
81d417c |
%{_includedir}/Pythia8
|
|
|
fa2915f |
%{_includedir}/Pythia8Plugins
|
|
|
7badc08 |
%doc CODINGSTYLE
|
|
|
7badc08 |
|
|
|
fa2915f |
%files lhapdf
|
|
|
fa2915f |
%{_libdir}/libpythia8lhapdf5.so
|
|
|
7badc08 |
|
|
|
7badc08 |
%files data
|
|
|
fa2915f |
%dir %{_datadir}/Pythia8
|
|
|
fa2915f |
%{_datadir}/Pythia8/xmldoc
|
|
|
fa2915f |
%license COPYING
|
|
|
7badc08 |
|
|
|
7badc08 |
%files examples
|
|
|
fa2915f |
%dir %{_datadir}/Pythia8
|
|
|
fa2915f |
%doc %{_datadir}/Pythia8/examples
|
|
|
fa2915f |
%doc %{_datadir}/Pythia8/outref
|
|
|
fa2915f |
%license COPYING
|
|
|
7badc08 |
|
|
|
7badc08 |
%files doc
|
|
|
8b95c77 |
%doc share/Pythia8/htmldoc
|
|
|
8b95c77 |
%doc share/Pythia8/pdfdoc
|
|
|
fa2915f |
%license COPYING
|
|
|
7badc08 |
|
|
|
7badc08 |
%changelog
|
|
|
8b95c77 |
* Fri Apr 15 2016 Mattias Ellert <mattias.ellert@fysast.uu.se> - 8.2.15-2
|
|
|
8b95c77 |
- Add missing obsoletes
|
|
|
8b95c77 |
|
|
|
fa2915f |
* Thu Apr 07 2016 Mattias Ellert <mattias.ellert@fysast.uu.se> - 8.2.15-1
|
|
|
fa2915f |
- Update to version 8.2.15
|
|
|
fa2915f |
|
|
|
7ae69ad |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.86-5
|
|
|
7ae69ad |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
7ae69ad |
|
|
|
d76a432 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.86-4
|
|
|
d76a432 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
d76a432 |
|
|
|
f0044fa |
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 8.1.86-3
|
|
|
f0044fa |
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
f0044fa |
|
|
|
b8063c3 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.86-2
|
|
|
b8063c3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
b8063c3 |
|
|
|
58b6d3b |
* Fri Jul 18 2014 Mattias Ellert <mattias.ellert@fysast.uu.se> - 8.1.86-1
|
|
|
58b6d3b |
- Update to version 8.1.86
|
|
|
58b6d3b |
|
|
|
c5d98bb |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.80-2
|
|
|
c5d98bb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
c5d98bb |
|
|
|
81d417c |
* Wed Oct 30 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 8.1.80-1
|
|
|
81d417c |
- Update to version 8.1.80
|
|
|
81d417c |
- Use full version in soname
|
|
|
81d417c |
|
|
|
ae91df3 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.76-4
|
|
|
ae91df3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
ae91df3 |
|
|
|
7badc08 |
* Fri May 31 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 8.1.76-3
|
|
|
7badc08 |
- Remove DOS end-of-line
|
|
|
7badc08 |
|
|
|
7badc08 |
* Thu May 23 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 8.1.76-2
|
|
|
7badc08 |
- Fix race condition in Makefile
|
|
|
7badc08 |
- Add isa to dependencies
|
|
|
7badc08 |
|
|
|
7badc08 |
* Sat May 18 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 8.1.76-1
|
|
|
7badc08 |
- New upstream release
|
|
|
7badc08 |
|
|
|
7badc08 |
* Wed Nov 14 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 8.1.70-1
|
|
|
7badc08 |
- Initial build
|