public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openms] main: Upload missing patches
@ 2026-12-01 21:12 Antonio Trande
0 siblings, 0 replies; only message in thread
From: Antonio Trande @ 2026-12-01 21:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/openms
Branch : main
Commit : ead60257e2617d95bcf51437f19580645d167a06
Author : Antonio Trande <sagitter@fedoraproject.org>
Date : 2026-12-01T22:11:39+01:00
Stats : +121/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/openms/c/ead60257e2617d95bcf51437f19580645d167a06?branch=main
Log:
Upload missing patches
---
diff --git a/openms-3.6.0-fix_opentims_paths.patch b/openms-3.6.0-fix_opentims_paths.patch
new file mode 100644
index 0000000..8a04dc4
--- /dev/null
+++ b/openms-3.6.0-fix_opentims_paths.patch
@@ -0,0 +1,37 @@
+--- a/cmake/Modules/FindOpentims.orig.cmake 2026-09-30 10:23:17.000000000 +0200
++++ b/cmake/Modules/FindOpentims.cmake 2026-11-28 10:33:32.451180961 +0100
+@@ -21,8 +21,8 @@
+ # by CMake (CMP0074); Opentims_ROOT_DIR is the legacy OpenMS-specific hint.
+ find_package(opentims CONFIG QUIET
+ HINTS
+- "${Opentims_ROOT_DIR}"
+- "${Opentims_ROOT_DIR}/lib/cmake/opentims"
++ "${LIB_INSTALL_DIR}"
++ "${LIB_INSTALL_DIR}/cmake/opentims"
+ )
+ if(opentims_FOUND)
+ if(NOT TARGET opentims::opentims_cpp)
+@@ -52,20 +52,15 @@
+ find_path(Opentims_INCLUDE_DIR
+ NAMES opentims++/opentims.h
+ HINTS
+- "${opentims_ROOT}/include"
+- "${opentims_ROOT}"
+- "${Opentims_ROOT_DIR}/include"
+- "${Opentims_ROOT_DIR}"
++ "${CMAKE_INSTALL_PREFIX}/include"
++ "${CMAKE_INSTALL_PREFIX}/include/opentims++"
+ DOC "opentims include directory (parent of opentims++/)"
+ )
+
+ find_library(Opentims_LIBRARY
+ NAMES opentims_cpp
+ HINTS
+- "${opentims_ROOT}/lib"
+- "${opentims_ROOT}"
+- "${Opentims_ROOT_DIR}/lib"
+- "${Opentims_ROOT_DIR}"
++ "${LIB_INSTALL_DIR}"
+ DOC "opentims library"
+ )
+
diff --git a/openms-fix_install_pyopenms.patch b/openms-fix_install_pyopenms.patch
new file mode 100644
index 0000000..f579eaf
--- /dev/null
+++ b/openms-fix_install_pyopenms.patch
@@ -0,0 +1,84 @@
+--- a/src/pyOpenMS/CMakeLists.orig.txt 2026-09-30 10:23:17.000000000 +0200
++++ b/src/pyOpenMS/CMakeLists.txt 2026-11-30 14:40:42.000765244 +0100
+@@ -535,8 +535,8 @@
+ )
+ endif()
+ install(TARGETS ${target_name}
+- LIBRARY DESTINATION pyopenms COMPONENT python_modules
+- RUNTIME DESTINATION pyopenms COMPONENT python_modules
++ LIBRARY DESTINATION ${PYOPENMS_INSTALL_DIR}/pyopenms COMPONENT python_modules
++ RUNTIME DESTINATION ${PYOPENMS_INSTALL_DIR}/pyopenms COMPONENT python_modules
+ )
+ endfunction()
+
+@@ -925,7 +925,7 @@
+ endif()
+
+ install(DIRECTORY ${PYOPENMS_BUILD_DIR}/pyopenms/
+- DESTINATION pyopenms
++ DESTINATION ${PYOPENMS_INSTALL_DIR}/pyopenms
+ COMPONENT python_modules
+ FILES_MATCHING
+ PATTERN "*.py"
+@@ -941,7 +941,7 @@
+ # --------------------------------------------------------------------------
+ if(PYOPENMS_USE_PREBUILT)
+ install(DIRECTORY ${PYOPENMS_BUILD_DIR}/pyopenms/
+- DESTINATION pyopenms
++ DESTINATION ${PYOPENMS_INSTALL_DIR}/pyopenms
+ COMPONENT python_modules
+ FILES_MATCHING
+ PATTERN "*.py"
+@@ -958,7 +958,7 @@
+ # Install share data if included
+ if(NOT NO_SHARE AND EXISTS "${PYOPENMS_BUILD_DIR}/pyopenms/share")
+ install(DIRECTORY ${PYOPENMS_BUILD_DIR}/pyopenms/share
+- DESTINATION pyopenms
++ DESTINATION ${PYOPENMS_INSTALL_DIR}/pyopenms
+ COMPONENT python_modules
+ )
+ endif()
+--- a/src/pyOpenMS/pyproject.orig.toml 2026-09-30 10:23:17.000000000 +0200
++++ b/src/pyOpenMS/pyproject.toml 2026-11-30 23:54:29.580514480 +0100
+@@ -174,9 +174,9 @@
+ minimum_version = "3.26"
+ build_type = "Release"
+ source_path = "."
+-install_args = ["--strip"]
++install_args = []
+ build_args = []
+-install_components = ["python_modules"]
++install_components = []
+
+ [tool.py-build-cmake.wheel]
+ # The extensions are compiled in nanobind split mode against the CPython 3.11
+@@ -198,7 +198,8 @@
+ #
+ # Skip dependency bundling - wheel repair tools will usually handle this
+ NO_DEPENDENCIES = "ON"
+-
++PYOPENMS_USE_PREBUILT ="ON"
++PYOPENMS_PREBUILT_DIR = "../../redhat-linux-build/pyOpenMS"
+
+ #------------------------------------------------------------------------------
+ # cibuildwheel configuration
+@@ -228,7 +229,9 @@
+ [tool.cibuildwheel.config-settings]
+ "override" = [
+ "cmake.options.NO_DEPENDENCIES=ON",
+- "cmake.options.PYOPENMS_PREPARE_WHEEL_REPAIR=ON"
++ "cmake.options.PYOPENMS_PREPARE_WHEEL_REPAIR=ON",
++ "cmake.options.PYOPENMS_USE_PREBUILT=ON",
++ "cmake.options.PYOPENMS_PREBUILT_DIR=../../redhat-linux-build/pyOpenMS",
+ ]
+
+ [tool.cibuildwheel.linux]
+@@ -257,6 +260,8 @@
+ "cmake.options.NO_DEPENDENCIES=ON",
+ "cmake.options.PYOPENMS_PREPARE_WHEEL_REPAIR=ON",
+ "cmake.options.ARROW_USE_STATIC=ON",
++ "cmake.options.PYOPENMS_USE_PREBUILT=ON",
++ "cmake.options.PYOPENMS_PREBUILT_DIR=../../redhat-linux-build/pyOpenMS",
+ ]
+
+ [tool.cibuildwheel.macos]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-01 21:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 21:12 [rpms/openms] main: Upload missing patches Antonio Trande
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox