SHA256
1
0
forked from pool/apfel
apfel/apfel.spec
Matthias Mailänder 7796b85926 Accepting request 417911 from home:badshah400:branches:science
- Update to version 2.7.2:
  + Full intrinsic charm contributions up to O(as) in both NC and
    CC sectors.
  + Possibility to set the heavy quark thresholds different from
    the heavy quark masses in both the pole and the MSbar schemes.
  + New and more accurate parametrization of the O(as^2) NC
    massive coefficient functions over a wider range in Q^2.
  + Implementation of the cached PDF evolution.
  + Fix of minor bugs and minor improvements.
  + Update of the documentation.
- Upstream now also installs README in /usr/share/apfel; delete
  from both non-standard locations and use %doc to package it
  instead.

OBS-URL: https://build.opensuse.org/request/show/417911
OBS-URL: https://build.opensuse.org/package/show/science/apfel?expand=0&rev=12
2016-08-09 05:58:01 +00:00

118 lines
3.3 KiB
RPMSpec

#
# spec file for package apfel
#
# Copyright (c) 2016 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 soname libAPFEL0
%define pypackage python-%{name}
Name: apfel
Version: 2.7.2
Release: 0
Summary: A Probability Distribution Function Evolution Library
License: GPL-3.0+
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: libqt4-devel
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: x86_64
%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
%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}.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
# REMOVE libtool ARCHIVES
rm %{buildroot}%{_libdir}/*.la
# 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}
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/APFEL/
%doc AUTHORS ChangeLog NEWS README COPYING
%{_bindir}/CheckAPFEL
%{_bindir}/%{name}-config
%{_libdir}/*.so
%files -n %{pypackage}
%defattr(-,root,root)
%{_bindir}/%{name}
%{_bindir}/ListFunctions
%{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
%changelog