2 Commits

Author SHA256 Message Date
2818414a01 Accepting request 1274356 from science
OBS-URL: https://build.opensuse.org/request/show/1274356
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/LHAPDF?expand=0&rev=25
2025-05-05 20:28:12 +00:00
d05e2855c2 * Update to version 6.5.5.
* Drop patch sover.diff. Use configure option --enable-librelease to add so versioning to shared object instead.

OBS-URL: https://build.opensuse.org/package/show/science/LHAPDF?expand=0&rev=49
2025-05-05 07:40:28 +00:00
5 changed files with 39 additions and 50 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2443a4b32cc3b0597c8248bd6e25703ace9c91a7a253c5f60b1b5428ef9c869e
size 869707

3
LHAPDF-6.5.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:641d5ea0942b79e4447e15e5a33491ff3c7032d71d618119935e14ad27f5e3a5
size 946776

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Fri May 2 08:55:07 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 6.5.5:
* Allow use of an external yaml-cpp library via a new
--with-yaml-cpp configure-script flag.
* Add filter kwarg to tarfile.extractall() call in the "lhapdf
install" script action, if supported.
* Change Python build to use PY_LDFLAGS rather than
LINKFORSHARED variable.
* Add ForcePositive regularisation to PDF values computed via
the accelerated vector-return variant.
* Fix the getPDFSet() function to raise a Python exception if it
fails via the Python interface.
* Expose LHAPDF_PYTHONPATH as a configure-time environment
variable for overriding the calculated install path.
* Fix a typo in PDF upgrading via lhapdf.
* Improvements to lhapdf-config, including a --pythonpath flag.
* Update yaml.load() call to use SafeLoader.
* Make lhapdf update return a non-zero exit code if data
installation fails.
* Add --enable-librelease configure option to use libtool
-release
- Drop patch sover.diff. Use configure option --enable-librelease
to add so versioning to shared object instead.
-------------------------------------------------------------------
Mon Apr 10 04:18:13 UTC 2023 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package LHAPDF
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,19 +16,15 @@
#
# Not needed for actual use, but quilt does not work without this
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
#
%define so_name libLHAPDF-6_5_4
%define so_name libLHAPDF-6_5_5
%define execname lhapdf
Name: LHAPDF
Version: 6.5.4
Version: 6.5.5
Release: 0
Summary: A library for unified interface to PDF sets
License: GPL-3.0-only
URL: https://lhapdf.hepforge.org/
Source: http://www.hepforge.org/archive/lhapdf/%{name}-%{version}.tar.gz
Patch1: sover.diff
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
@@ -41,7 +37,7 @@ BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: texlive-latex-bin
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@@ -102,7 +98,11 @@ export PYTHON=%{_bindir}/$python
mkdir ../$python
cp -pr ./ ../$python
pushd ../$python
%configure --disable-static --docdir=%{_docdir}/%{name}/
%configure \
--disable-static \
--docdir=%{_docdir}/%{name}/ \
--enable-librelease \
%{nil}
%make_build
# Build doc only for one flavour, viz., which provides the default python3
if [ "$python_" = "python3_" -o "%{$python_provides}" = "python3" ]; then
@@ -137,8 +137,7 @@ sed -E -i "s|#! /usr/bin/env bash|#! /bin/bash|" %{buildroot}%{_bindir}/lhapdf-c
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{so_name} -p /sbin/ldconfig
%postun -n %{so_name} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{so_name}
%files -n %{so_name}
%license COPYING

View File

@@ -1,36 +0,0 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2017-02-13 18:39:04.166820498 +0100
build: enforce library versioning
Bad things happen when the ABI changes and there is no way
to notice it.
---
src/Makefile.am | 4 ++++
1 file changed, 4 insertions(+)
Index: LHAPDF-6.3.0/src/Makefile.am
===================================================================
--- LHAPDF-6.3.0.orig/src/Makefile.am
+++ LHAPDF-6.3.0/src/Makefile.am
@@ -21,15 +21,19 @@ libLHAPDF_la_SOURCES = \
libLHAPDFInfo_la_SOURCES = Info.cc
libLHAPDFInfo_la_CPPFLAGS = -I$(srcdir)/yamlcpp -DYAML_NAMESPACE=LHAPDF_YAML $(AM_CPPFLAGS)
libLHAPDFInfo_la_LIBADD = $(builddir)/yamlcpp/liblhapdf-yaml-cpp.la
+libLHAPDFInfo_la_LDFLAGS = -release ${PACKAGE_VERSION}
libLHAPDFPaths_la_SOURCES = Paths.cc
libLHAPDFPaths_la_CPPFLAGS = $(AM_CPPFLAGS) -DLHAPDF_INSTALL_PREFIX=\"$(prefix)\" -DLHAPDF_DATA_PREFIX=\"$(datadir)\"
+libLHAPDFPaths_la_LDFLAGS = -release ${PACKAGE_VERSION}
libLHAPDF_la_LIBADD = libLHAPDFInfo.la libLHAPDFPaths.la
+libLHAPDF_la_LDFLAGS = -release ${PACKAGE_VERSION}
if ENABLE_LHAGLUE
noinst_LTLIBRARIES += libLHAPDFGlue.la
libLHAPDFGlue_la_SOURCES = LHAGlue.cc
libLHAPDFGlue_la_CPPFLAGS = $(AM_CPPFLAGS) -DENABLE_LHAGLUE_CXX
+ libLHAPDFGlue_la_LDFLAGS = -release ${PACKAGE_VERSION}
libLHAPDF_la_LIBADD += libLHAPDFGlue.la
endif