public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Susi Lehtola <jussilehtola@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/libxc] rawhide: Update to 7.1.0.
Date: Fri, 17 Jul 2026 18:01:32 GMT	[thread overview]
Message-ID: <178431129280.1.14286242616921118310.rpms-libxc-702c624a85fa@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/libxc
Branch : rawhide
Commit : 702c624a85fad21e97a1f0861f7af7e9b593aa10
Author : Susi Lehtola <jussilehtola@fedoraproject.org>
Date   : 2026-07-17T18:01:27+00:00
Stats  : +113/-113 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/libxc/c/702c624a85fad21e97a1f0861f7af7e9b593aa10?branch=rawhide

Log:
Update to 7.1.0.

---
diff --git a/.gitignore b/.gitignore
index 9633f81..866b7a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,3 +39,4 @@
 /libxc-6.2.0.tar.gz
 /libxc-6.2.2.tar.gz
 /libxc-7.0.0.tar.gz
+/libxc-7.1.0.tar.gz

diff --git a/libxc-7.0.0-pylibxc.patch b/libxc-7.0.0-pylibxc.patch
deleted file mode 100644
index 89da5ab..0000000
--- a/libxc-7.0.0-pylibxc.patch
+++ /dev/null
@@ -1,109 +0,0 @@
-diff -up libxc-7.0.0/pylibxc/core.py.pylibxc libxc-7.0.0/pylibxc/core.py
---- libxc-7.0.0/pylibxc/core.py.pylibxc	2024-10-11 12:16:16.185474666 +0000
-+++ libxc-7.0.0/pylibxc/core.py	2024-10-11 12:16:55.033770181 +0000
-@@ -8,26 +8,8 @@ import numpy as np
- import os
- 
- # Attempt to load the compiled C code
--core = None
--__libxc_path = None
--
--# First check the local folder
--try:
--    __libxc_path = os.path.abspath(os.path.dirname(__file__))
--    core = np.ctypeslib.load_library("libxc", __libxc_path)
--except OSError:
--    # If no libxc is local, check LD_LIBRARY_PATHS's
--    __libxc_path = ctypes.util.find_library("xc")
--
--    # If we still havent found it, give up and throw an error
--    if __libxc_path is None:
--        raise ImportError(
--            "LibXC Shared object not found, searched Python module local directory and library paths"
--        )
--
--    # Load the C object
--    core = ctypes.CDLL(__libxc_path)
--
-+core = ctypes.CDLL("libxc.so.@SOVERSION@")
-+__libxc_path = "@LIBDIR@"
- 
- def get_core_path():
-     """
-diff -up libxc-7.0.0/setup.py.pylibxc libxc-7.0.0/setup.py
---- libxc-7.0.0/setup.py.pylibxc	2024-10-10 11:13:52.000000000 +0000
-+++ libxc-7.0.0/setup.py	2024-10-11 12:16:16.185474666 +0000
-@@ -8,64 +8,6 @@ from setuptools import setup, find_packa
- from setuptools.command.build_ext import build_ext
- from distutils.version import LooseVersion
- 
--
--class CMakeExtension(Extension):
--    def __init__(self, name, sourcedir=''):
--        Extension.__init__(self, name, sources=[])
--        self.sourcedir = os.path.abspath(sourcedir)
--
--
--class CMakeBuild(build_ext):
--    def run(self):
--        try:
--            out = subprocess.check_output(['cmake', '--version'])
--        except OSError:
--            raise RuntimeError("CMake must be installed to build the following extensions: " +
--                               ", ".join(e.name for e in self.extensions))
--
--        if platform.system() == "Windows":
--            cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
--            if cmake_version < '3.1.0':
--                raise RuntimeError("CMake >= 3.1.0 is required on Windows")
--
--        for ext in self.extensions:
--            self.build_extension(ext)
--
--    def build_extension(self, ext):
--        extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name)))
--        cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir]
--        cmake_args += ['-DBUILD_SHARED_LIBS=ON']
--        cmake_args += ['-DBUILD_TESTING=OFF']
--        # Python tests need third derivatives
--        cmake_args += ['-DDISABLE_KXC=OFF']
--
--        cfg = 'Debug' if self.debug else 'Release'
--        build_args = ['--config', cfg]
--
--        if platform.system() == "Windows":
--            cmake_args += ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}'.format(cfg.upper(), extdir)]
--            if sys.maxsize > 2**32:
--                cmake_args += ['-A', 'x64']
--            build_args += ['--', '/m']
--        else:
--            cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg]
--            nprocs = 1
--            try:
--                import multiprocessing as mp
--                nprocs = mp.cpu_count()
--            except ImportError:
--                pass
--            build_args += ['--', '-j{}'.format(nprocs)]
--
--        env = os.environ.copy()
--        env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(
--            env.get('CXXFLAGS', ''), self.distribution.get_version())
--        if not os.path.exists(self.build_temp):
--            os.makedirs(self.build_temp)
--        subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
--        subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
--
--
- if __name__ == "__main__":
-     exec(open(os.path.join(os.path.abspath(os.path.dirname(__file__)), "pylibxc/version.py")).read())
-     setup(
-@@ -97,8 +39,6 @@ if __name__ == "__main__":
-             'pytest-cov',
-         ],
-         packages=find_packages(),
--        ext_modules=[CMakeExtension('pylibxc.libxc')],
--        cmdclass=dict(build_ext=CMakeBuild),
-         classifiers=[
-             'Development Status :: 4 - Beta',
-             'Intended Audience :: Science/Research',

diff --git a/libxc-7.1.0-pylibxc.patch b/libxc-7.1.0-pylibxc.patch
new file mode 100644
index 0000000..dd7685c
--- /dev/null
+++ b/libxc-7.1.0-pylibxc.patch
@@ -0,0 +1,105 @@
+diff -up libxc-7.1.0/pylibxc/core.py.pylibxc libxc-7.1.0/pylibxc/core.py
+--- libxc-7.1.0/pylibxc/core.py.pylibxc	2026-07-17 17:38:12.000000000 +0000
++++ libxc-7.1.0/pylibxc/core.py	2026-07-17 17:47:32.346322506 +0000
+@@ -50,22 +50,8 @@ def _load_library(libname, loader_path):
+     raise OSError("no file with expected extension")
+ 
+ 
+-# First check the local folder
+-try:
+-    __libxc_path = os.path.abspath(os.path.dirname(__file__))
+-    core = _load_library("libxc", __libxc_path)
+-except OSError:
+-    # If no libxc is local, check LD_LIBRARY_PATHS's
+-    __libxc_path = ctypes.util.find_library("xc")
+-
+-    # If we still havent found it, give up and throw an error
+-    if __libxc_path is None:
+-        raise ImportError(
+-            "LibXC Shared object not found, searched Python module local directory and library paths"
+-        )
+-
+-    # Load the C object
+-    core = ctypes.CDLL(__libxc_path)
++core = ctypes.CDLL("libxc.so.@SOVERSION@")
++__libxc_path = "@LIBDIR@"
+ 
+ 
+ def get_core_path():
+diff -up libxc-7.1.0/setup.py.pylibxc libxc-7.1.0/setup.py
+--- libxc-7.1.0/setup.py.pylibxc	2026-07-17 17:38:12.000000000 +0000
++++ libxc-7.1.0/setup.py	2026-07-17 17:46:23.332022022 +0000
+@@ -8,64 +8,6 @@ from setuptools import setup, find_packa
+ from setuptools.command.build_ext import build_ext
+ from distutils.version import LooseVersion
+ 
+-
+-class CMakeExtension(Extension):
+-    def __init__(self, name, sourcedir=''):
+-        Extension.__init__(self, name, sources=[])
+-        self.sourcedir = os.path.abspath(sourcedir)
+-
+-
+-class CMakeBuild(build_ext):
+-    def run(self):
+-        try:
+-            out = subprocess.check_output(['cmake', '--version'])
+-        except OSError:
+-            raise RuntimeError("CMake must be installed to build the following extensions: " +
+-                               ", ".join(e.name for e in self.extensions))
+-
+-        if platform.system() == "Windows":
+-            cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
+-            if cmake_version < '3.1.0':
+-                raise RuntimeError("CMake >= 3.1.0 is required on Windows")
+-
+-        for ext in self.extensions:
+-            self.build_extension(ext)
+-
+-    def build_extension(self, ext):
+-        extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name)))
+-        cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir]
+-        cmake_args += ['-DBUILD_SHARED_LIBS=ON']
+-        cmake_args += ['-DBUILD_TESTING=OFF']
+-        # Python tests need third derivatives
+-        cmake_args += ['-DDISABLE_KXC=OFF']
+-
+-        cfg = 'Debug' if self.debug else 'Release'
+-        build_args = ['--config', cfg]
+-
+-        if platform.system() == "Windows":
+-            cmake_args += ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}'.format(cfg.upper(), extdir)]
+-            if sys.maxsize > 2**32:
+-                cmake_args += ['-A', 'x64']
+-            build_args += ['--', '/m']
+-        else:
+-            cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg]
+-            nprocs = 1
+-            try:
+-                import multiprocessing as mp
+-                nprocs = mp.cpu_count()
+-            except ImportError:
+-                pass
+-            build_args += ['--', '-j{}'.format(nprocs)]
+-
+-        env = os.environ.copy()
+-        env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(
+-            env.get('CXXFLAGS', ''), self.distribution.get_version())
+-        if not os.path.exists(self.build_temp):
+-            os.makedirs(self.build_temp)
+-        subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
+-        subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
+-
+-
+ if __name__ == "__main__":
+     exec(open(os.path.join(os.path.abspath(os.path.dirname(__file__)), "pylibxc/version.py")).read())
+     setup(
+@@ -97,8 +39,6 @@ if __name__ == "__main__":
+             'pytest-cov',
+         ],
+         packages=find_packages(),
+-        ext_modules=[CMakeExtension('pylibxc.libxc')],
+-        cmdclass=dict(build_ext=CMakeBuild),
+         classifiers=[
+             'Development Status :: 4 - Beta',
+             'Intended Audience :: Science/Research',

diff --git a/libxc.spec b/libxc.spec
index b0f4cfb..1822c1e 100644
--- a/libxc.spec
+++ b/libxc.spec
@@ -15,12 +15,12 @@
 
 Name:           libxc
 Summary:        Library of exchange and correlation functionals for density-functional theory
-Version:        7.0.0
-Release:        12%{?dist}
+Version:        7.1.0
+Release:        1%{?dist}
 License:        MPL-2.0
 Source0:        https://gitlab.com/libxc/libxc/-/archive/%{version}/%{name}-%{version}.tar.gz
 # Don't rebuild libxc for pylibxc
-Patch0:         libxc-7.0.0-pylibxc.patch
+Patch0:         libxc-7.1.0-pylibxc.patch
 URL:            http://www.tddft.org/programs/octopus/wiki/index.php/Libxc
 
 BuildRequires:  make
@@ -132,6 +132,9 @@ sed -i 's|includedir=${prefix}/include/|includedir=%{_libdir}/gfortran/modules|g
 %{python3_sitearch}/pylibxc/
 
 %changelog
+* Fri Jul 17 2026 Susi Lehtola <jussilehtola@fedoraproject.org> - 7.1.0-1
+- Update to 7.1.0.
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/sources b/sources
index fcebdb4..82718b5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libxc-7.0.0.tar.gz) = ae50760cb4afb37af26cbc5cf819d1bfaa2fa1fc01509b73a4e2533ca772cff5750493974f63f573cf5748ed1007e21c7611d3840b3fa50a3e77e74f7a027988
+SHA512 (libxc-7.1.0.tar.gz) = 61cd13c8ee29a26a0a83d85b2564970d595e92a5ff0badd5174c5b14cbc2bebf2830989ab495dd5937c940818fe81503d988a4163bbd78f18bb830a28772b507

                 reply	other threads:[~2026-07-17 18:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178431129280.1.14286242616921118310.rpms-libxc-702c624a85fa@fedoraproject.org \
    --to=jussilehtola@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox