* update spglib to 2.3.1-1

This commit is contained in:
Alexander Baldeck 2024-02-23 09:52:15 +01:00
parent cbacb57104
commit a3c4cea2a7
2 changed files with 17 additions and 16 deletions

View File

@ -2,12 +2,12 @@
# Maintainer: Antonio Rojas <arojas@archlinux.org>
pkgname=spglib
pkgver=2.2.0
pkgver=2.3.1
pkgrel=1
pkgdesc='C library for finding and handling crystal symmetries'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://spglib.readthedocs.io/en/latest/'
license=(custom)
license=(BSD-3-Clause)
depends=(glibc)
makedepends=(cmake
gcc-fortran
@ -18,8 +18,8 @@ optdepends=('gcc-libs: Fortran interface'
'python-numpy: Python interface')
source=(https://github.com/spglib/spglib/archive/v$pkgver/$pkgname-$pkgver.tar.gz
fix-duplicate-libs.patch)
sha256sums=('ac929e20ec9d4621411e2cdec59b1442e02506c1e546005bbe2c7f781e9bd49a'
'07e887901ddc521907eaf8d9e1632e5935554f544690c2744f9f66b05d104341')
sha256sums=('c295dbea7d2fc9e50639aa14331fef277878c35f00ef0766e688bfbb7b17d44c'
'3f649edcda3fb466f2c51ab10a6b255e171826e1c695fcb98de58a9c90bbc34e')
prepare() {
patch -d $pkgname-$pkgver -p1 < fix-duplicate-libs.patch # Don't duplicate shared libs in python tree

View File

@ -2,16 +2,17 @@ diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index 14499af..6850d76 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -19,12 +19,6 @@ if (SPGLIB_INSTALL)
LIBRARY DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime
PUBLIC_HEADER DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime
RUNTIME DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime)
- else ()
- # TODO: Cmake forces to install PUBLIC_HEADER when defined
- # https://gitlab.kitware.com/cmake/cmake/-/issues/24326
- install(TARGETS Spglib_symspg
- LIBRARY DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime
- PUBLIC_HEADER DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime)
endif ()
@@ -15,13 +15,6 @@
if (SPGLIB_INSTALL)
# TODO: Cmake forces to install PUBLIC_HEADER when defined
# https://gitlab.kitware.com/cmake/cmake/-/issues/24326
- install(TARGETS Spglib_symspg
- LIBRARY DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime
- NAMELINK_COMPONENT Spglib_Development
- ARCHIVE DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Development
- PUBLIC_HEADER DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Development
- RUNTIME DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime
- )
install(TARGETS Spglib_python
LIBRARY DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime)
LIBRARY DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime
)