4d11f9f
Name:		HepMC
4d11f9f
Version:	2.06.09
48d609b
Release:	22%{?dist}
4d11f9f
Summary:	C++ Event Record for Monte Carlo Generators
4d11f9f
4d11f9f
License:	GPLv2+
4d11f9f
URL:		http://lcgapp.cern.ch/project/simu/HepMC/
4d11f9f
Source0:	http://lcgapp.cern.ch/project/simu/HepMC/download/%{name}-%{version}.tar.gz
4d11f9f
Patch0:		%{name}-fix-typo-hierachy-hierarchy.patch
4d11f9f
Patch1:		%{name}-examples-makefile.patch
4d11f9f
Patch2:		%{name}-examples-hwaend.patch
4d11f9f
Patch3:		%{name}-linking.patch
e212ffc
Patch4:		%{name}-no-hexfloat.patch
4366ccf
Patch5:		%{name}-epsilon.patch
48d609b
Patch6:		%{name}-continue-vs-break.patch
4d11f9f
27eb6dc
BuildRequires:	gcc-c++
4d11f9f
4d11f9f
%description
4d11f9f
The HepMC package is an object oriented event record written in C++
4d11f9f
for High Energy Physics Monte Carlo Generators. Many extensions from
4d11f9f
HEPEVT, the Fortran HEP standard, are supported: the number of entries
4d11f9f
is unlimited, spin density matrices can be stored with each vertex,
4d11f9f
flow patterns (such as color) can be stored and traced, integers
4d11f9f
representing random number generator states can be stored, and an
4d11f9f
arbitrary number of event weights can be included. Particles and
4d11f9f
vertices are kept separate in a graph structure, physically similar to
4d11f9f
a physics event. The added information supports the modularization of
4d11f9f
event generators. The package has been kept as simple as possible with
4d11f9f
minimal internal/external dependencies. Event information is accessed
4d11f9f
by means of iterators supplied with the package.
4d11f9f
4d11f9f
%package devel
4d11f9f
Summary:	C++ Event Record for Monte Carlo Generators - development files
4d11f9f
Requires:	%{name}%{?_isa} = %{version}-%{release}
4d11f9f
4d11f9f
%description devel
4d11f9f
This package provides development files of HepMC.
4d11f9f
4d11f9f
%package doc
4d11f9f
Summary:	C++ Event Record for Monte Carlo Generators - documentation
4d11f9f
BuildArch:	noarch
4d11f9f
4d11f9f
%description doc
4d11f9f
This package provides HepMC manuals and examples.
4d11f9f
4d11f9f
%prep
4d11f9f
%setup -q
4d11f9f
%patch0 -p1
4d11f9f
%patch1 -p1
4d11f9f
%patch2 -p1
4d11f9f
%patch3 -p1
e212ffc
%patch4 -p1
4366ccf
%patch5 -p1
48d609b
%patch6 -p1
4d11f9f
4d11f9f
%build
Marcin Juszkiewicz 62ac979
# take care of testSimpleVector failure
afb76d5
%ifarch aarch64 %{power64} s390 s390x
27eb6dc
export CXXFLAGS="%{optflags} -ffp-contract=off"
Marcin Juszkiewicz 3203bcd
%endif
4d11f9f
%configure --with-momentum=GEV --with-length=MM --disable-static
4d11f9f
make %{?_smp_mflags}
4d11f9f
4d11f9f
%install
4d11f9f
make install DESTDIR=%{buildroot}
4d11f9f
4d11f9f
rm %{buildroot}%{_libdir}/libHepMC.la
4d11f9f
rm %{buildroot}%{_libdir}/libHepMCfio.la
4d11f9f
4d11f9f
rm %{buildroot}%{_datadir}/%{name}/examples/pythia8/config.sh
4d11f9f
rm %{buildroot}%{_datadir}/%{name}/examples/pythia8/config.csh
4d11f9f
rm %{buildroot}%{_datadir}/%{name}/examples/pythia8/README
4d11f9f
6bd9baf
mkdir -p %{buildroot}%{_pkgdocdir}
6bd9baf
mv %{buildroot}%{_datadir}/%{name}/examples %{buildroot}%{_pkgdocdir}
4d11f9f
mv %{buildroot}%{_datadir}/%{name}/doc/HepMC2_reference_manual.pdf \
6bd9baf
   %{buildroot}%{_pkgdocdir}/%{name}-reference-manual.pdf
4d11f9f
mv %{buildroot}%{_datadir}/%{name}/doc/HepMC2_user_manual.pdf \
6bd9baf
   %{buildroot}%{_pkgdocdir}/%{name}-user-manual.pdf
6bd9baf
install -p -m 644 AUTHORS %{buildroot}%{_pkgdocdir}
6bd9baf
install -p -m 644 ChangeLog %{buildroot}%{_pkgdocdir}
6bd9baf
install -p -m 644 README %{buildroot}%{_pkgdocdir}
27eb6dc
%{!?_licensedir: install -p -m 644 COPYING %{buildroot}%{_pkgdocdir}}
4d11f9f
4d11f9f
%check
4d11f9f
make check
4d11f9f
27eb6dc
%ldconfig_scriptlets
4d11f9f
4d11f9f
%files
4d11f9f
%{_libdir}/libHepMC.so.*
4d11f9f
%{_libdir}/libHepMCfio.so.*
27eb6dc
%dir %{_pkgdocdir}
6bd9baf
%doc %{_pkgdocdir}/AUTHORS
6bd9baf
%doc %{_pkgdocdir}/ChangeLog
6bd9baf
%doc %{_pkgdocdir}/README
27eb6dc
%{!?_licensedir: %doc %{_pkgdocdir}/COPYING}
27eb6dc
%{?_licensedir: %license COPYING}
4d11f9f
4d11f9f
%files devel
4d11f9f
%{_libdir}/libHepMC.so
4d11f9f
%{_libdir}/libHepMCfio.so
4d11f9f
%{_includedir}/%{name}
4d11f9f
4d11f9f
%files doc
6bd9baf
%dir %{_pkgdocdir}
6bd9baf
%doc %{_pkgdocdir}/examples
6bd9baf
%doc %{_pkgdocdir}/*.pdf
27eb6dc
%{!?_licensedir: %doc %{_pkgdocdir}/COPYING}
27eb6dc
%{?_licensedir: %license COPYING}
4d11f9f
4d11f9f
%changelog
48d609b
* Sat Dec 08 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 2.06.09-22
48d609b
- Fix a segmentation fault (continue vs. break)
48d609b
e822ca4
* Mon Jul 16 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 2.06.09-21
27eb6dc
- Add BuildRequires on gcc-c++
27eb6dc
- Packaging updates
27eb6dc
  - Remove Group and BuildRoot tags
27eb6dc
  - Don't clear the buildroot in the install section
27eb6dc
  - Remove the clean section
27eb6dc
  - Install license in licensedir (where applicable)
27eb6dc
06e1474
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.06.09-20
06e1474
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
06e1474
bc3fb1c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.06.09-19
bc3fb1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bc3fb1c
108f98b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.06.09-18
108f98b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
108f98b
1835b8c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.06.09-17
1835b8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1835b8c
844920b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.06.09-16
844920b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
844920b
afb76d5
* Fri Oct 07 2016 Dan HorĂ¡k <dan[at]danny.cz> - 2.06.09-15
afb76d5
- disable FMA on s390(x)
afb76d5
8940fa6
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.06.09-14
8940fa6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8940fa6
Marcin Juszkiewicz 62ac979
* Thu Sep 17 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 2.06.09-13
Marcin Juszkiewicz 62ac979
- disable FMA on both aarch64 and ppc64(le) to pass all tests
Marcin Juszkiewicz 62ac979
Marcin Juszkiewicz 3203bcd
* Thu Sep 03 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 2.06.09-12
Marcin Juszkiewicz 3203bcd
- disable -fexpensive-optimizations for aarch64 to get it build
Marcin Juszkiewicz 3203bcd
20267ee
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.06.09-11
20267ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
20267ee
6f60875
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.06.09-10
6f60875
- Rebuilt for GCC 5 C++11 ABI change
6f60875
4366ccf
* Fri Mar 06 2015 Mattias Ellert <mattias.ellert@fysast.uu.se> - 2.06.09-9
4366ccf
- Increase epsilon - for i686 Fedora 22+ tests
4366ccf
e212ffc
* Fri Mar 06 2015 Mattias Ellert <mattias.ellert@fysast.uu.se> - 2.06.09-8
e212ffc
- Do not trigger hexfloat output with gcc 5
e212ffc
f3846b3
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.06.09-7
f3846b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f3846b3
22ef913
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.06.09-6
22ef913
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
22ef913
6bd9baf
* Thu Aug 08 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 2.06.09-5
6bd9baf
- Use _pkgdocdir
6bd9baf
8abd06f
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.06.09-4
8abd06f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8abd06f
4d11f9f
* Wed Jun 05 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 2.06.09-3
4d11f9f
- Make doc package independent
4d11f9f
4d11f9f
* Wed May 22 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 2.06.09-2
4d11f9f
- Add isa to dependencies
4d11f9f
4d11f9f
* Fri Nov 16 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 2.06.09-1
4d11f9f
- Initial build