File SHERPA-MC.spec of Package SHERPA-MC
#
# spec file for package SHERPA-MC
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define soname lib%{name}
Name: SHERPA-MC
Version: 2.1.1
Release: 0
Summary: MC event generator for Simulation of High-Energy Reactions of PArticles
License: GPL-2.0+ and GPL-3.0
Group: Development/Libraries/C and C++
Url: https://sherpa.hepforge.org/
Source: http://www.hepforge.org/archive/sherpa/%{name}-%{version}.tar.gz
BuildRequires: HepMC-devel
BuildRequires: LHAPDF-devel
BuildRequires: Rivet-devel
BuildRequires: boost-devel
BuildRequires: fastjet-devel
BuildRequires: fastjet-plugin-siscone-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gcc-fortran
BuildRequires: openmpi-devel
BuildRequires: pkg-config
BuildRequires: pythia-devel
BuildRequires: python-devel
BuildRequires: sqlite3-devel
BuildRequires: swig
BuildRequires: pkgconfig(gsl)
BuildRequires: pkgconfig(yaml-cpp)
BuildRequires: pkgconfig(zlib)
Requires(post): info
Requires(preun): info
%description
Sherpa is a Monte Carlo event generator for the Simulation of
High-Energy Reactions of PArticles in lepton-lepton, lepton-photon,
photon-photon, lepton-hadron and hadron-hadron collisions. It provides
complete hadronic final states in simulations of high-energy particle
collisions. The produced events may be passed into detector
simulations used by the various experiments. The entire code has been
written in C++.
Sherpa simulations can be achieved for the following types of
collisions:
- For lepton–lepton collisions, as explored by the CERN LEP
experiments,
- for lepton–photon collisions,
- for photon–photon collisions with both photons either resolved or
unresolved,
- for deep-inelastic lepton-hadron scattering, as investigated by
the HERA experiments at DESY, and,
- in particular, for hadronic interactions as studied at the
Fermilab Tevatron or the CERN LHC.
%package -n %soname
Summary: MC event generator for Simulation of High-Energy Reactions of PArticles
Group: Development/Libraries/C and C++
%description -n %soname
Sherpa is a Monte Carlo event generator for the Simulation of
High-Energy Reactions of PArticles in lepton-lepton, lepton-photon,
photon-photon, lepton-hadron and hadron-hadron collisions. It provides
complete hadronic final states in simulations of high-energy particle
collisions. The produced events may be passed into detector
simulations used by the various experiments. The entire code has been
written in C++.
This package provides the shared libraries for Sherpa.
%package devel
Summary: MC event generator for Simulation of High-Energy Reactions of PArticles
Group: Development/Libraries/C and C++
Requires: %soname = %{version}
%description devel
Sherpa is a Monte Carlo event generator for the Simulation of
High-Energy Reactions of PArticles in lepton-lepton, lepton-photon,
photon-photon, lepton-hadron and hadron-hadron collisions. It provides
complete hadronic final states in simulations of high-energy particle
collisions. The produced events may be passed into detector
simulations used by the various experiments. The entire code has been
written in C++.
This package provides the source and header files for development with
Sherpa.
%package -n python-%{name}
Summary: Python extensions for SHERPA-MC
Group: Development/Libraries/C and C++
%description -n python-%{name}
Sherpa is a Monte Carlo event generator for the Simulation of
High-Energy Reactions of PArticles in lepton-lepton, lepton-photon,
photon-photon, lepton-hadron and hadron-hadron collisions. It provides
complete hadronic final states in simulations of high-energy particle
collisions. The produced events may be passed into detector
simulations used by the various experiments. The entire code has been
written in C++.
This package provides the python extensions for Sherpa.
%prep
%setup -q
%build
%configure \
--libdir=%{_libdir} \
--docdir=%{_docdir}/%{name} \
--enable-pyext \
--enable-analysis \
--enable-multithread \
--enable-gzip \
--enable-hepmc2=%{_prefix} \
--enable-fastjet=%{_prefix} \
--enable-lhapdf=%{_prefix} \
--enable-pythia=%{_prefix}
# FIXME: Disable rivet bindings until SHERPA-MC builds with latest Rivet >= 2.1.2
# --enable-rivet=%{_prefix} \
make %{?_smp_mflags}
%install
%make_install
mkdir -p %{buildroot}/%{_sysconfdir}/ld.so.conf.d
echo %{_libdir}/%{name} > %{buildroot}/%{_sysconfdir}/ld.so.conf.d/%{name}.conf
find %{buildroot}%{_libdir}/%{name}/ -name *.la -delete
%fdupes %{buildroot}%{_datadir}/%{name}/
%fdupes %{buildroot}%{python_sitelib}/
%post -n %soname
/sbin/ldconfig
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/Sherpa.*.gz
%postun -n %soname
/sbin/ldconfig
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/Sherpa.*.gz
%files -n %soname
%defattr(-,root,root)
%dir %{_libdir}/%{name}/
%{_libdir}/%{name}/*.so.*
%config %{_sysconfdir}/ld.so.conf.d/%{name}.conf
%files devel
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/get_bibtex
%{_bindir}/Combine_Analysis
%{_bindir}/Sherpa
%{_bindir}/Sherpa-config
%{_bindir}/init_nlo.sh
%{_bindir}/make2scons
%{_bindir}/plot_graphs.sh
%dir %{_docdir}/%{name}/
%{_docdir}/%{name}/*.html
%{_docdir}/%{name}/*.jpg
%{_libdir}/%{name}/*.so
%{_includedir}/%{name}/
%{_datadir}/%{name}/
%{_mandir}/man1/Sherpa.*.gz
%{_infodir}/Sherpa.*.gz
%files -n python-%{name}
%defattr(-,root,root)
%{python_sitelib}/Sherpa.py*
%{python_sitelib}/_Sherpa.*
%changelog