Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package CSXCAD for openSUSE:Factory checked in at 2025-08-05 14:20:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/CSXCAD (Old) and /work/SRC/openSUSE:Factory/.CSXCAD.new.1085 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "CSXCAD" Tue Aug 5 14:20:43 2025 rev:12 rq:1297501 version:0.6.3 Changes: -------- --- /work/SRC/openSUSE:Factory/CSXCAD/CSXCAD.changes 2024-01-03 14:53:21.688471957 +0100 +++ /work/SRC/openSUSE:Factory/.CSXCAD.new.1085/CSXCAD.changes 2025-08-05 14:21:11.913016933 +0200 @@ -1,0 +2,5 @@ +Mon Jun 16 12:48:01 UTC 2025 - Matwey Kornilov <matwey.korni...@gmail.com> + +- Add Python bindings + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ CSXCAD.spec ++++++ --- /var/tmp/diff_new_pack.qAyL7T/_old 2025-08-05 14:21:12.573044517 +0200 +++ /var/tmp/diff_new_pack.qAyL7T/_new 2025-08-05 14:21:12.577044684 +0200 @@ -1,7 +1,7 @@ # # spec file for package CSXCAD # -# 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 @@ -29,6 +29,12 @@ Source0: https://github.com/thliebig/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz # PATCH-FIX-OPENSUSE CSXCAD-octave-AppCSXCAD-load.patch -- Fix AppCSXCAD.sh load Patch3: CSXCAD-octave-AppCSXCAD-load.patch +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module matplotlib} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: cgal-devel BuildRequires: cmake BuildRequires: double-conversion-devel @@ -42,11 +48,13 @@ BuildRequires: libboost_thread-devel BuildRequires: lzma-devel BuildRequires: octave-devel -BuildRequires: python3-devel +BuildRequires: python-rpm-macros BuildRequires: tinyxml-devel BuildRequires: vtk-devel BuildRequires: cmake(Qt5Sql) BuildRequires: cmake(Qt5Widgets) +%define python_subpackage_only 1 +%python_subpackages %description CSXCAD is a C++ library to describe geometrical objects and their physical @@ -60,12 +68,12 @@ CSXCAD is a C++ library to describe geometrical objects and their physical or non-physical properties. -%package devel +%package -n %{name}-devel Summary: Development files for %{name} Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} -%description devel +%description -n %{name}-devel CSXCAD is a C++ library to describe geometrical objects and their physical or non-physical properties. @@ -95,6 +103,16 @@ This package provides MATLAB interface for CSXCAD. +%package -n python-%{name} +Summary: Python %{python_version} bindings for CSXCAD +Group: Development/Libraries/Python +Requires: python-matplotlib +Requires: python-numpy + +%description -n python-%{name} +This package contains Python %{python_version} bindings for the CSXCAD +library. + %prep %setup -q %autopatch -p1 @@ -132,6 +150,17 @@ %octave_pkg_build popd +pushd python + mkdir -p "%{_builddir}/include" + ln -s "%{_builddir}/%{name}-%{version}/src" "%{_builddir}/include/CSXCAD" + cat >> setup.cfg << EOF +[build_ext] +include_dirs = %{_builddir}/include +library_dirs = %{_builddir}/%{name}-%{version}/build/src +EOF + %pyproject_wheel +popd + %install %cmake_install @@ -139,6 +168,10 @@ %octave_pkg_install popd +pushd python + %pyproject_install +popd + %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig @@ -153,7 +186,7 @@ %doc NEWS README %{_libdir}/lib%{name}.so.* -%files devel +%files -n %{name}-devel %{_libdir}/lib%{name}.so %{_includedir}/%{name}/ @@ -164,3 +197,8 @@ %dir %{_datadir}/%{name} %{_datadir}/%{name}/matlab/ +%files %{python_files CSXCAD} +%license COPYING +%{python_sitearch}/CSXCAD +%{python_sitearch}/csxcad-*.dist-info +