forked from pool/CSXCAD
Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f21baf7415 | |||
|
|
9d060d61fa | ||
| 1c9293e2c7 | |||
| 6342db5359 | |||
| 2c65533f8f |
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 2 10:10:29 UTC 2025 - Ana Guerrero <ana.guerrero@suse.com>
|
||||
|
||||
- Remove BuildRequires on libboost_system-devel,
|
||||
removed on boost 1.89 (bsc#1249599)
|
||||
* Add patch boost.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 16 12:48:01 UTC 2025 - Matwey Kornilov <matwey.kornilov@gmail.com>
|
||||
|
||||
- Add Python bindings
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 31 19:29:12 UTC 2023 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
|
||||
50
CSXCAD.spec
50
CSXCAD.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package CSXCAD
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -27,8 +27,15 @@ License: LGPL-3.0-or-later
|
||||
Group: Productivity/Scientific/Physics
|
||||
URL: https://openems.de
|
||||
Source0: https://github.com/thliebig/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Patch0: boost.patch
|
||||
# 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
|
||||
@@ -38,15 +45,16 @@ BuildRequires: libboost_chrono-devel
|
||||
BuildRequires: libboost_date_time-devel
|
||||
BuildRequires: libboost_headers-devel
|
||||
BuildRequires: libboost_serialization-devel
|
||||
BuildRequires: libboost_system-devel
|
||||
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 @@ Group: System/Libraries
|
||||
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 @@ or non-physical properties.
|
||||
|
||||
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 @@ pushd octave_build
|
||||
%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 @@ pushd octave_build
|
||||
%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 @@ popd
|
||||
%doc NEWS README
|
||||
%{_libdir}/lib%{name}.so.*
|
||||
|
||||
%files devel
|
||||
%files -n %{name}-devel
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_includedir}/%{name}/
|
||||
|
||||
@@ -164,4 +197,9 @@ popd
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/%{name}/matlab/
|
||||
|
||||
%files %{python_files CSXCAD}
|
||||
%license COPYING
|
||||
%{python_sitearch}/CSXCAD
|
||||
%{python_sitearch}/csxcad-*.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
11
boost.patch
Normal file
11
boost.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
diff -Nrua CSXCAD-0.6.3.orig/CMakeLists.txt CSXCAD-0.6.3/CMakeLists.txt
|
||||
--- CSXCAD-0.6.3.orig/CMakeLists.txt 2023-10-22 16:26:48.000000000 +0200
|
||||
+++ CSXCAD-0.6.3/CMakeLists.txt 2025-10-10 11:40:09.608834958 +0200
|
||||
@@ -120,7 +120,6 @@
|
||||
# TODO what are the needed libs?
|
||||
find_package(Boost 1.46 COMPONENTS
|
||||
thread
|
||||
- system
|
||||
date_time
|
||||
serialization
|
||||
chrono
|
||||
Reference in New Issue
Block a user