public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openms] main: Disable pyopenms for missing required packages
@ 2026-12-01 20:50 Antonio Trande
  0 siblings, 0 replies; only message in thread
From: Antonio Trande @ 2026-12-01 20:50 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/openms
Branch : main
Commit : 48a6e42ccb2accb82ed5541790b6df8a485c3a7b
Author : Antonio Trande <sagitter@fedoraproject.org>
Date   : 2026-12-01T21:49:45+01:00
Stats  : +67/-57 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/openms/c/48a6e42ccb2accb82ed5541790b6df8a485c3a7b?branch=main

Log:
Disable pyopenms for missing required packages

---
diff --git a/openms.spec b/openms.spec
index f4b1832..635e5ad 100644
--- a/openms.spec
+++ b/openms.spec
@@ -1,10 +1,13 @@
 %bcond_with check
 %bcond_with debug
 
-ExclusiveArch: %{qt6_qtwebengine_arches}
+ExclusiveArch: x86_64 %{arm64}
 
 # Python binding
-%global with_pyOpenMS 1
+# Python OpenMS needs new packages currently not available on Fedora
+# nanobind-3, nanobind-backend, python-py_build_cmake, python-opentims
+# It must be disable for now
+%global with_pyOpenMS 0
 #
 
 # Filter private libraries
@@ -30,7 +33,7 @@ Epoch:     2
 %if 0%{?use_intermediate}
 Release:  %autorelease -p -s %{date}git%{shortcommit}
 %else
-Release:  %autorelease
+Release:  %autorelease -b 1
 %endif
 
 # BSD-3-Clause is the main license
@@ -78,11 +81,12 @@ BuildRequires: percolator
 BuildRequires: libappstream-glib
 BuildRequires: yaml-cpp-devel >= 0.8.0
 BuildRequires: libarrow-devel
+# Not available on Fedora
+#BuildRequires: libopentims-devel
 BuildRequires: libcurl-devel
 BuildRequires: libzip-devel
 BuildRequires: libzstd-devel
 BuildRequires: parquet-libs-devel
-BuildRequires: uv
 Requires:      qt6-qtdeclarative-devel%{?_isa}
 # Build documentation
 # Doxygen useful only on SVN versions  
@@ -93,28 +97,30 @@ BuildRequires: xorg-x11-server-Xvfb, gnuplot, gawk
 Requires: percolator%{?_isa}
 Requires: %{name}-data%{?_isa} = 2:%{version}-%{release}
 Requires: R-core%{?_isa}
+
+Obsoletes: python3-openms < 2:3.6.0-1
+
 # Remove -O0 flag for tests compiling
 Patch0: %{name}-remove_testflag.patch
 
+Patch1: %{name}-3.6.0-fix_opentims_paths.patch
+Patch3: %{name}-fix_install_pyopenms.patch
+
 %description
 OpenMS is a C++ library for LC-MS data management and analyses.
 It offers an infrastructure for the rapid development of mass spectrometry
 related software. OpenMS is free software available under the three clause BSD
 license and runs under Windows, MacOSX and Linux.
-
 It comes with a vast variety of pre-built and ready-to-use tools for proteomics
 and metabolomics data analysis (TOPPTools) and
 powerful 2D and 3D visualization(TOPPView).
-
 OpenMS offers analyses for various quantitation protocols,
 including label-free quantitation, SILAC, iTRAQ, SRM, SWATH, etc.
-
 It provides built-in algorithms for de-novo identification and database search,
 as well as adapters to other state-of-the art tools like Mascot, OMSSA, etc.
 It supports easy integration of OpenMS built tools into workflow engines like
 Knime, Galaxy, WS-Pgrade, and TOPPAS via the TOPPtools concept and
 a unified parameter handling via a 'common tool description' (CTD) scheme.
-
 The OpenMS Proteomics Pipeline is a pipeline for 
 the analysis of HPLC-MS data. 
 It consists of several small applications that 
@@ -165,16 +171,19 @@ BuildRequires: python3-devel
 BuildRequires: python3-nanobind >= 3.1
 BuildRequires: python3-numpy
 BuildRequires: python3-autowrap >= 0.23.0
+BuildRequires: python3-pyarrow-devel
 BuildRequires: python3-pip
 BuildRequires: python3-cython >= 3.1.0
 BuildRequires: python3-wheel
 BuildRequires: python3-biopython
 BuildRequires: python3-virtualenv
+# Not available on Fedora
+#BuildRequires: python3-opentims
+#BuildRequires: python3-py_build_cmake
 BuildRequires: python3-pandas
 BuildRequires: python3-pytest
+BuildRequires: auditwheel
 Requires:      python3-biopython
-Requires:      %{name}%{?_isa} = 2:%{version}-%{release}
-
 %description -n python3-openms
 This package contains Python3 bindings for a large part of the OpenMS library
 for mass spectrometry based proteomics.  It thus provides providing facile 
@@ -211,17 +220,24 @@ HTML documentation of OpenMS.
 %endif
 
 %patch -P 0 -p1 -b .backup
+%patch -P 1 -p1 -b .backup
+%patch -P 3 -p1 -b .backup
 
 # Remove invalid tags
 sed -e 's| <project_group></project_group>||g' -i share/OpenMS/DESKTOP/*.appdata.xml
 
+%if 0%{?with_pyOpenMS}
+pushd src/pyOpenMS
+%generate_buildrequires
+%pyproject_buildrequires -N
+%endif
+
 %build
 # Likely running out of memory during build
 %global _smp_ncpus_max 2
 
 %if %{with debug}
 cmake -Wno-dev -DCMAKE_CXX_COMPILER_VERSION:STRING=$(gcc -dumpversion) \
- -DENABLE_UPDATE_CHECK:BOOL=OFF -DGIT_TRACKING:BOOL=OFF \
  -DCMAKE_COLOR_MAKEFILE:BOOL=ON \
  -DENABLE_IPO:BOOL=ON \
  -DCMAKE_CXX_FLAGS_DEBUG:STRING="-DDEBUG -O0 -g %{__global_ldflags}" -DCMAKE_C_FLAGS_DEBUG:STRING="-DDEBUG -O0 -g %{__global_ldflags}" \
@@ -231,9 +247,7 @@ cmake -Wno-dev -DCMAKE_CXX_COMPILER_VERSION:STRING=$(gcc -dumpversion) \
  -DBoost_REGEX_LIBRARY_DEBUG:FILEPATH=%{_libdir}/libboost_regex.so \
  -DXercesC_LIBRARY_DEBUG:FILEPATH=%{_libdir}/libxerces-c.so \
 %else
-%cmake -Wno-dev -DCMAKE_CXX_COMPILER_VERSION:STRING=$(gcc -dumpversion) \
- -DGIT_TRACKING:BOOL=OFF \
- -DENABLE_UPDATE_CHECK:BOOL=OFF \
+%cmake -DCMAKE_CXX_COMPILER_VERSION:STRING=$(gcc -dumpversion) \
  -DCMAKE_COLOR_MAKEFILE:BOOL=ON \
  -DCMAKE_CXX_FLAGS_RELEASE:STRING="-Wno-cpp %{build_cxxflags}" -DCMAKE_C_FLAGS_RELEASE:STRING="-Wno-cpp %{build_cflags}" \
  -DCMAKE_BUILD_TYPE=Release \
@@ -265,8 +279,10 @@ cmake -Wno-dev -DCMAKE_CXX_COMPILER_VERSION:STRING=$(gcc -dumpversion) \
 %else
  -DOPENMS_64BIT_ARCHITECTURE:BOOL=OFF \
 %endif
- -DWITH_OPENTIMS:BOOL=OFF -DENABLE_OPENTIMS_TESTS:BOOL=OFF \
- -DWITH_THERMO_RAW:BOOL=OFF \
+ -DWITH_OPENTIMS:BOOL=ON -DENABLE_OPENTIMS_TESTS:BOOL=OFF \
+ -DWITH_THERMO_RAW:BOOL=OFF -DOPENMS_THERMO_BRIDGE_ENABLE_VENDOR_DOWNLOAD:BOOL=OFF \
+ -DFETCHCONTENT_UPDATES_DISCONNECTED_OPENMSTHERMOBRIDGE:BOOL=ON \
+ -DWITH_HDF5:BOOL=ON \
 %if %{with check}
  -DBUILD_TESTING:BOOL=ON \
  -DBUILD_EXAMPLES:BOOL=OFF \
@@ -278,25 +294,28 @@ cmake -Wno-dev -DCMAKE_CXX_COMPILER_VERSION:STRING=$(gcc -dumpversion) \
  -DENABLE_TOPP_TESTING:BOOL=OFF \
  -DENABLE_CLASS_TESTING:BOOL=OFF \
 %endif
+ -DWITH_UV:BOOL=OFF \
 %if 0%{?with_pyOpenMS}
  -DPYOPENMS=ON -DPYTHON_EXECUTABLE:FILEPATH=%{__python3} \
  -DCYTHON_EXECUTABLE:FILEPATH=%{_bindir}/cython3 \
  -DPY_NUM_THREADS:STRING=2 -DPY_NUM_MODULES:STRING=4 \
  -DPython_NumPy_INCLUDE_DIR=$(python3 -c "import numpy; print(numpy.get_include())") \
+ -Dnanobind_DIR=%(python3 -m nanobind --cmake_dir) \
+ -DPYOPENMS_GENERATE_STUBS:BOOL=ON \
+ -DPYOPENMS_SPLIT_MODE:BOOL=OFF \
+ -DPYOPENMS_INSTALL_DIR:PATH=%{python3_sitearch} \
 %else
  -DPYOPENMS=OFF \
 %endif
-%if "%{?_lib}" == "lib64"
-  %{?_cmake_lib_suffix64}
-%endif
-
-%cmake_build --target OpenMS TOPP GUI doc_minimal
 
-%if 0%{?with_pyOpenMS}
 export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH
-cmake --build %_vpath_builddir -j1 --verbose --target pyopenms
-pushd %_vpath_builddir/pyOpenMS
+%if 0%{?with_pyOpenMS}
+%cmake_build --target OpenMS TOPP GUI doc_minimal pyopenms
+pushd src/pyOpenMS
 %pyproject_wheel
+popd
+%else
+%cmake_build --target OpenMS TOPP GUI doc_minimal
 %endif
 
 %install
@@ -308,54 +327,37 @@ patchelf --set-rpath %{_libdir}/OpenMS %{buildroot}%{_bindir}/*
 patchelf --set-rpath %{_libdir}/OpenMS %{buildroot}%{_libdir}/OpenMS/*.so
 
 %if 0%{?with_pyOpenMS}
-pushd %_vpath_builddir/pyOpenMS
+pushd src/pyOpenMS
 %pyproject_install
 
-ln -s -f %{_libdir}/OpenMS/libOpenMS.so %{buildroot}%{python3_sitearch}/pyopenms/libOpenMS.so
-ln -s -f %{_libdir}/OpenMS/libOpenSwathAlgo.so %{buildroot}%{python3_sitearch}/pyopenms/libOpenSwathAlgo.so
-ln -s -f %{_libdir}/OpenMS/libSuperHirn.so %{buildroot}%{python3_sitearch}/pyopenms/libSuperHirn.so
-
 ## Fix R script
 sed -i "1 s|^#!/usr/bin/env Rscript\b|#!/usr/bin/Rscript|" %{buildroot}%{python3_sitearch}/pyopenms/share/OpenMS/SCRIPTS/plot_trafo.R
 chmod 0755 %{buildroot}%{python3_sitearch}/pyopenms/share/OpenMS/SCRIPTS/plot_trafo.R
-sed -i -e '1i#!/usr/bin/Rscript' %{buildroot}%{python3_sitearch}/pyopenms/share/OpenMS/SCRIPTS/mzTab2tsv_PEP.R
-sed -i -e '1i#!/usr/bin/Rscript' %{buildroot}%{python3_sitearch}/pyopenms/share/OpenMS/SCRIPTS/mzTab2tsv_PRT.R
-sed -i -e '1i#!/usr/bin/Rscript' %{buildroot}%{python3_sitearch}/pyopenms/share/OpenMS/SCRIPTS/mzTab2tsv_PSM.R
-
-# wrong-script-end-of-line-encoding
-sed -i 's/\r$//' %{buildroot}%{python3_sitearch}/pyopenms/share/OpenMS/SCRIPTS/mzTab2tsv_PRT.R
-sed -i 's/\r$//' %{buildroot}%{python3_sitearch}/pyopenms/share/OpenMS/TOOLS/EXTERNAL/Rscript_mzTab2tsv_PRT.ttd
-sed -i 's/\r$//' %{buildroot}%{python3_sitearch}/pyopenms/share/OpenMS/TOOLS/EXTERNAL/Rscript_mzTab2tsv_PSM.ttd
-
-# OBO should be a text file format used by OBO-Edit
-chmod 0644 %{buildroot}%{python3_sitearch}/pyopenms/share/OpenMS/CV/*.obo
-chmod 0644 %{buildroot}%{python3_sitearch}/pyopenms/share/OpenMS/TOOLS/EXTERNAL/*.ttd
-chmod 0644 %{buildroot}%{python3_sitearch}/pyopenms/share/OpenMS/CHEMISTRY/Enzymes.xml
 popd
 %endif
 # with_pyOpenMS
 
-##Install TOPPAS/TOPPView .png icons
+## Install TOPPAS/TOPPView .png icons
 mkdir -p %{buildroot}%{_datadir}/icons/TOPP/pixmaps
 install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/icons/TOPP
 install -pm 644 %{SOURCE2} %{buildroot}%{_datadir}/icons/TOPP
 install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/icons/TOPP
 
-##Install TOPPAS/TOPPView/inifileeditor .desktop files
+## Install TOPPAS/TOPPView/inifileeditor .desktop files
 mkdir -p %{buildroot}%{_datadir}/applications
-desktop-file-install \
+desktop-file-install share/OpenMS/DESKTOP/TOPPAS.desktop \
  --set-key=Exec --set-value="env OPENMS_DATA_PATH=%{_datadir}/OpenMS TOPPAS" \
  --set-icon=%{_datadir}/icons/TOPP/TOPPAS.png \
  --set-key=StartupNotify --set-value=true \
  --add-category=Utility \
- --dir=%{buildroot}%{_datadir}/applications share/OpenMS/DESKTOP/TOPPAS.desktop
+ --dir=%{buildroot}%{_datadir}/applications
 
-desktop-file-install \
+desktop-file-install share/OpenMS/DESKTOP/TOPPView.desktop \
  --set-key=Exec --set-value="env OPENMS_DATA_PATH=%{_datadir}/OpenMS TOPPView %U" \
  --set-icon=%{_datadir}/icons/TOPP/TOPPView.png \
  --set-key=StartupNotify --set-value=true \
  --add-category=Utility \
- --dir=%{buildroot}%{_datadir}/applications share/OpenMS/DESKTOP/TOPPView.desktop
+ --dir=%{buildroot}%{_datadir}/applications
 
 desktop-file-install \
  --add-category=Utility \
@@ -409,7 +411,6 @@ LD_PRELOAD=%{buildroot}%{_libdir}/OpenMS/libSuperHirn.so
 %{_bindir}/DTAExtractor
 %{_bindir}/DatabaseSuitability
 %{_bindir}/StaticModification
-%{_bindir}/SwathWizard
 %{_bindir}/FileConverter
 %{_bindir}/FileInfo
 %{_bindir}/FileMerger
@@ -471,7 +472,6 @@ LD_PRELOAD=%{buildroot}%{_libdir}/OpenMS/libSuperHirn.so
 %{_bindir}/OpenSwathConfidenceScoring
 %{_bindir}/OpenSwathAssayGenerator
 %{_bindir}/OpenNuXL
-%{_bindir}/GenericWrapper
 %{_bindir}/ExecutePipeline
 %{_bindir}/FeatureFinderIdentification
 %{_bindir}/FeatureFinderMultiplex
@@ -489,7 +489,17 @@ LD_PRELOAD=%{buildroot}%{_libdir}/OpenMS/libSuperHirn.so
 %{_bindir}/DatabaseFilter
 %{_bindir}/IsobaricWorkflow
 %{_bindir}/PeakPickerIM
-%{_bindir}/PeptideDataBaseSearchFI
+%{_bindir}/DIAuditor
+%{_bindir}/MS1LabeledWorkflow
+%{_bindir}/OpenSwathExport
+%{_bindir}/OpenSwathInfer
+%{_bindir}/OpenSwathPeakMapExtractor
+%{_bindir}/OpenSwathPercolatorScoring
+%{_bindir}/ParquetConverter
+%{_bindir}/ParquetDiff
+%{_bindir}/ProSE
+%{_bindir}/TransitionListEvidenceFilter
+%{_bindir}/UniPEFF
 %{_metainfodir}/*.appdata.xml
 %{_datadir}/applications/TOPPAS.desktop
 %{_datadir}/applications/TOPPView.desktop
@@ -559,9 +569,7 @@ LD_PRELOAD=%{buildroot}%{_libdir}/OpenMS/libSuperHirn.so
 %{_bindir}/QCExtractor
 %{_bindir}/QCMerger
 %{_bindir}/QCShrinker
-%{_bindir}/TriqlerConverter
 %{_bindir}/FLASHDeconv
-%{_bindir}/FLASHDeconvWizard
 %{_bindir}/JSONExporter
 
 %files data
@@ -579,14 +587,16 @@ LD_PRELOAD=%{buildroot}%{_libdir}/OpenMS/libSuperHirn.so
 %doc CHANGELOG AUTHORS README* CODE_OF_CONDUCT.md
 %doc src/openms/extern/tool_description_lib/README-tdl.md
 %{_includedir}/OpenMS/
-%{_includedir}/tdl/
 %{_libdir}/cmake/OpenMS/
-%{_libdir}/cmake/tdl/
 
 %if 0%{?with_pyOpenMS}
 %files -n python3-openms
-%license License.txt
-%doc src/pyOpenMS/README_WRAPPING_NEW_CLASSES
+%license src/pyOpenMS/LICENSE
+%doc CHANGELOG AUTHORS CODE_OF_CONDUCT.md
+%doc src/pyOpenMS/README*
+%doc src/pyOpenMS/THREAD_SAFETY.md
+%doc src/pyOpenMS/CLAUDE.md
+%doc src/pyOpenMS/OWNERSHIP.md
 %{python3_sitearch}/pyopenms/
 %{python3_sitearch}/pyopenms-*.dist-info/
 %endif

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-01 20:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 20:50 [rpms/openms] main: Disable pyopenms for missing required packages Antonio Trande

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox