# # spec file for package apfel # # Copyright (c) 2019 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 https://bugs.opensuse.org/ # %define soname libAPFEL0 %define pypackage python-%{name} Name: apfel Version: 3.0.4 Release: 0 Summary: A Probability Distribution Function Evolution Library License: GPL-3.0-or-later Group: Development/Libraries/C and C++ URL: http://apfel.hepforge.org/ Source: https://github.com/scarrazza/%{name}/archive/%{version}.tar.gz BuildRequires: LHAPDF-devel BuildRequires: gcc-c++ BuildRequires: gcc-fortran BuildRequires: python-devel %if 0%{?suse_version} > 1320 BuildRequires: libboost_headers-devel %else BuildRequires: boost-devel %endif %description APFEL is a library to perform the combined QCD+QED DGLAP evolution of parton distributions. %package -n %{soname} Summary: A Probability Distribution Function Evolution Library Group: System/Libraries %description -n %{soname} APFEL is a library to perform the combined QCD+QED DGLAP evolution of parton distributions. This package provides the shared libraries for %{name}. %package devel Summary: Development files for Apfel, a PDF Evolution Library Group: Development/Libraries/C and C++ Requires: %{soname} = %{version} Requires: LHAPDF-devel Recommends: %{name}-doc = %{version} %description devel APFEL is a library to perform the combined QCD+QED DGLAP evolution of parton distributions. This package provides the source files required to develop applications with %{name}. %package -n %{pypackage} Summary: A PDF Evolution Library Group: Development/Languages/Python %description -n %{pypackage} APFEL is a library to perform the combined QCD+QED DGLAP evolution of parton distributions. This package provides the shared libraries for %{name}. %package doc Summary: Documentation for APFEL, a PDF evolution library Group: Documentation/Other %description doc This package provides documentation for APFEL in PDF (Portable Document Format), a PDF (Probability Distribution Function) evolution library. %prep %setup -q %build %configure --disable-static make %{?_smp_mflags} %install %make_install # REMOVE libtool ARCHIVES find %{buildroot} -type f -name "*.la" -delete -print # FIX env BASED SCRIPT INTERPRETER sed -Ei "1{s|#\!\s*/usr/bin/env bash|#\!/bin/bash|}" %{buildroot}%{_bindir}/apfel-config # REMOVE README FROM NON-STD LOCATIONS, INSTALL IT USING %%doc INSTEAD rm -fr %{buildroot}%{_datadir}/apfel/README rm -fr %{buildroot}%{_datadir}/doc/apfel %post -n %{soname} -p /sbin/ldconfig %postun -n %{soname} -p /sbin/ldconfig %files -n %{soname} %{_libdir}/*.so.* %files devel %{_includedir}/APFEL/ %license COPYING %doc AUTHORS ChangeLog NEWS README %{_bindir}/CheckAPFEL %{_bindir}/%{name}-config %{_bindir}/ListFunctions %{_libdir}/*.so %files -n %{pypackage} %{_bindir}/%{name} %{python_sitearch}/%{name}.py # COMPILED OBJECT FILE CONTAINS BUILDROOT %exclude %{python_sitearch}/%{name}.pyc %{python_sitearch}/_%{name}.so %{python_sitearch}/APFEL-*py%{py_ver}.egg-info %files doc %doc doc/pdfs/manual.pdf %changelog