Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP3:Update
YODA
YODA.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File YODA.spec of Package YODA
# # spec file for package YODA # # Copyright (c) 2020 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define so_name lib%{name}-1_8_0 Name: YODA Version: 1.8.0 Release: 0 Summary: A small set of data analysis classes for MC event generator validation analyses License: GPL-2.0-only Group: Development/Libraries/C and C++ URL: http://yoda.hepforge.org/ Source: http://www.hepforge.org/archive/yoda/%{name}-%{version}.tar.bz2 Patch1: sover.diff # PATCH-FIX-UPSTREAM YODA-py3-compatibility-for-IO_pyx.patch badshah400@gmail.com -- Py3 compatibilty for IO.pyx; patch taken from upstream commit Patch2: YODA-py3-compatibility-for-IO_pyx.patch BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkg-config BuildRequires: python3-Cython BuildRequires: python3-devel # SECTION For running python tests in make check BuildRequires: python3-matplotlib BuildRequires: python3-numpy # /SECTION BuildRequires: pkgconfig(zlib) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description YODA is a small set of data analysis (specifically histogramming) classes being developed by MCnet members as a lightweight common system for MC event generator validation analyses. A few key features of YODA are as follows: * Storage of all information needed for statistically correct run combination and reweighting up to second-order correlations (e.g. variances, std devs, etc.) not just in the number of entries in a bin, but also the correlations of that with the x and y fill values. * Separation of statistics and data handling from presentation. YODA is primarily a library for doing the data part correctly: while we love really high quality data presentation, that's a separate goal. * A sensible class hierarchy for histogramming, recognising that a histogram contains details of fill history beyond the pure visual height of a bin, and that just counting weights, or binning arbitrary types on an axis are valuable operations. * Flexible data format support, including a new text-based, compact, and human-readable YODA format. * Proper and convenience treatment of "details" like irregular bin widths, gaps in contiguous binning, and overflows/underflows/etc. (incuding how they impact normalisation and calculation of histo- wide stat quantities) * Carefully designed programming interfaces in C++ and Python. We are very welcoming of feedback and design evolution, too! %package -n %{so_name} Summary: A small set of data analysis classes for MC event generator validation analyses Group: System/Libraries %description -n %{so_name} YODA is a small set of data analysis (specifically histogramming) classes being developed by MCnet members as a lightweight common system for MC event generator validation analyses. This package provides the source files for development with %{name}. %package devel Summary: A small set of data analysis classes for MC event generator validation analyses Group: Development/Libraries/C and C++ Requires: %{so_name} = %{version} %description devel YODA is a small set of data analysis (specifically histogramming) classes being developed by MCnet members as a lightweight common system for MC event generator validation analyses. This package provides the source files for development with %{name}. %package -n python3-%{name} Summary: A small set of data analysis classes for MC event generator validation analyses Group: Development/Libraries/Python Requires: %{so_name} = %{version} Provides: python-%{name} = %{version} %description -n python3-%{name} YODA is a small set of data analysis (specifically histogramming) classes being developed by MCnet members as a lightweight common system for MC event generator validation analyses. This package provides the python binidings for %{name}. %prep %setup -q %patch -P 1 -p1 %patch2 -p1 # USE PYTHON3 FOR HASHBANGS sed -Ei "1{s|/usr/bin/python|/usr/bin/python3|}" bin/* sed -Ei "1{s|/usr/bin/env python|/usr/bin/python3|}" bin/* sed -Ei "1{s|/usr/bin/env python|/usr/bin/python3|}" tests/pytest-* # FIX env BASED HASHBANGS sed -E -i "s|^#! /usr/bin/env bash|#! /bin/bash|" bin/yoda-config* # REMOVE AN UNNECESSARY ONE sed -E -i "1{s|^#! /usr/bin/env python||}" pyext/yoda/search.py %build export PYTHON_VERSION=%{py3_ver} autoreconf -fi %configure make %{?_smp_mflags} %install %make_install find %{buildroot}%{_libdir}/ -name "*.la" -delete %check make %{?_smp_mflags} check %post -n %{so_name} -p /sbin/ldconfig %postun -n %{so_name} -p /sbin/ldconfig %files -n %{so_name} %defattr(-,root,root) %{_libdir}/libYODA-*.so %files devel %defattr(-,root,root) %doc AUTHORS ChangeLog %license COPYING %{_bindir}/yoda-config %{_libdir}/libYODA.so %{_libdir}/pkgconfig/yoda.pc %{_includedir}/%{name}/ %{_datadir}/%{name}/ %files -n python3-%{name} %defattr(-,root,root) %{python3_sitearch}/yoda/ %{python3_sitearch}/yoda1/ %{python3_sitearch}/yoda*.egg-info %{_bindir}/aida2flat %{_bindir}/aida2yoda %{_bindir}/flat2yoda %{_bindir}/yoda2aida %{_bindir}/yoda2flat %{_bindir}/yoda2yoda %{_bindir}/yodamerge %{_bindir}/yodacmp %{_bindir}/yodacnv %{_bindir}/yodadiff %{_bindir}/yodahist %{_bindir}/yodals %{_bindir}/yodaplot %{_bindir}/yodascale %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