Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Ports
Rivet
Rivet.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Rivet.spec of Package Rivet
# # spec file for package Rivet # # Copyright (c) 2018 SUSE LINUX 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 so_name lib%{name}-2_5_4 Name: Rivet Version: 2.5.4 Release: 0 Summary: A toolkit for validation of Monte Carlo event generators License: GPL-2.0-only Group: Development/Libraries/C and C++ Url: http://rivet.hepforge.org/ Source: http://www.hepforge.org/archive/rivet/%{name}-%{version}.tar.bz2 Patch1: sover.diff BuildRequires: HepMC2-devel BuildRequires: YODA-devel >= 1.0.6 BuildRequires: autoconf BuildRequires: automake %if 0%{?suse_version} > 1325 BuildRequires: libboost_headers-devel %else BuildRequires: boost-devel %endif BuildRequires: doxygen BuildRequires: fastjet-devel BuildRequires: fastjet-plugin-siscone-devel BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkg-config BuildRequires: python-devel BuildRequires: texlive-latex-bin BuildRequires: yaml-cpp-devel BuildRequires: pkgconfig(gsl) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The Rivet project (Robust Independent Validation of Experiment and Theory) is a toolkit for validation of Monte Carlo event generators. It provides a large (and ever growing) set of experimental analyses useful for MC generator development, validation, and tuning, as well as a convenient infrastructure for adding your own analyses. Rivet is the most widespread way by which analysis code from the LHC and other high-energy collider experiments is preserved for comparison to and development of future theory models. %package -n %{so_name} Summary: A toolkit for validation of Monte Carlo event generators Group: System/Libraries %description -n %{so_name} The Rivet project (Robust Independent Validation of Experiment and Theory) is a toolkit for validation of Monte Carlo event generators. It provides a large (and ever growing) set of experimental analyses useful for MC generator development, validation, and tuning, as well as a convenient infrastructure for adding your own analyses. Rivet is the most widespread way by which analysis code from the LHC and other high-energy collider experiments is preserved for comparison to and development of future theory models. This package provides the shared libraries for %{name}. %package devel Summary: A toolkit for validation of Monte Carlo event generators Group: Development/Libraries/C and C++ Requires: %{so_name} = %{version} %description devel The Rivet project (Robust Independent Validation of Experiment and Theory) is a toolkit for validation of Monte Carlo event generators. It provides a large (and ever growing) set of experimental analyses useful for MC generator development, validation, and tuning, as well as a convenient infrastructure for adding your own analyses. Rivet is the most widespread way by which analysis code from the LHC and other high-energy collider experiments is preserved for comparison to and development of future theory models. This package provides the source files for development with %{name}. %package -n python-%{name} Summary: A toolkit for validation of Monte Carlo event generators Group: Development/Languages/Python Requires: %{so_name} = %{version} %description -n python-%{name} The Rivet project (Robust Independent Validation of Experiment and Theory) is a toolkit for validation of Monte Carlo event generators. It provides a large (and ever growing) set of experimental analyses useful for MC generator development, validation, and tuning, as well as a convenient infrastructure for adding your own analyses. Rivet is the most widespread way by which analysis code from the LHC and other high-energy collider experiments is preserved for comparison to and development of future theory models. This package provides the python bindings for %{name}. %prep %setup -q %patch -P 1 -p1 # REMOVE EXISTING rivet.pc FILE, ALLOW make TO GENERATE rivet.pc FROM rivet.pc.in rm -f rivet.pc # REMOVE INCORRECT LIBDIRS FROM .pc.in FILE (the right libdirs are already present) sed -i "s| -L@GSLLIBPATH@||g" rivet.pc.in %build autoreconf -fi %configure --docdir=%{_docdir}/%{name}/ make %{?_smp_mflags} pkglibdir="%{_libdir}/rivet-%{version}" %install %make_install pkglibdir="%{_libdir}/rivet-%{version}" # Remove traces of BUILDROOT from files sed -i "s|%{buildroot}||g" %{buildroot}%{python_sitearch}/rivet/*.pyc # MANUALLY REMOVE rpath FROM PKGCONFIG FILE AND rivet-config SCRIPT sed -i "s|-Wl,-rpath,||g" %{buildroot}%{_libdir}/pkgconfig/rivet.pc sed -i "s|-Wl,-rpath,||g" %{buildroot}%{_bindir}/rivet-config find %{buildroot}%{_libdir}/ -name "*.la" -delete %post -n %{so_name} -p /sbin/ldconfig %postun -n %{so_name} -p /sbin/ldconfig %files -n %{so_name} %defattr(-,root,root) %{_libdir}/libRivet-*.so %{_libdir}/rivet-%{version}/ %files devel %defattr(-,root,root) %doc AUTHORS ChangeLog README COPYING %{_bindir}/rivet-config %{_bindir}/rivet-buildplugin %{_includedir}/%{name}/ %{_datadir}/%{name}/ %{_libdir}/libRivet.so %{_libdir}/pkgconfig/rivet.pc %files -n python-%{name} %defattr(-,root,root) %{_bindir}/* %exclude %{_bindir}/rivet-config %exclude %{_bindir}/rivet-buildplugin %{python_sitearch}/rivet/ %{python_sitearch}/rivet-*egg-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor