1
0

Compare commits

7 Commits

Author SHA256 Message Date
4d685451ff Accepting request 1299276 from devel:libraries:c_c++
- Update to 0.28
  * Adjust xtensor includes
  * Provide pkg-config file
- Adapt 0001-Install-as-arch-independent.patch
- Remove cxx-flags.patch as there is no longer a single place
  to add compiler flags for tests.

OBS-URL: https://build.opensuse.org/request/show/1299276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xtensor-python?expand=0&rev=5
2025-08-19 14:47:18 +00:00
d401bf3ca0 - Update to 0.28
* Adjust xtensor includes
  * Provide pkg-config file
- Adapt 0001-Install-as-arch-independent.patch
- Remove cxx-flags.patch as there is no longer a single place
  to add compiler flags for tests.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/xtensor-python?expand=0&rev=9
2025-08-10 19:27:52 +00:00
266337606c Accepting request 1248894 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1248894
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xtensor-python?expand=0&rev=4
2025-02-27 13:51:14 +00:00
19c968f30e - BuildRequires: python3-sphinx_rtd_theme to fix Factory build
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/xtensor-python?expand=0&rev=7
2025-02-27 10:06:27 +00:00
f983f6eb64 Accepting request 1233926 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1233926
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xtensor-python?expand=0&rev=3
2025-01-01 22:05:00 +00:00
55ef08022c - Run unit tests for all available python versions
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/xtensor-python?expand=0&rev=5
2024-12-30 14:15:15 +00:00
4c28b4f5fe Accepting request 1177178 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1177178
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xtensor-python?expand=0&rev=2
2024-05-28 15:29:15 +00:00
6 changed files with 61 additions and 34 deletions

View File

@@ -16,9 +16,9 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6521c98..47af271 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -123,7 +123,7 @@ export(EXPORT ${PROJECT_NAME}-targets
install(FILES ${XTENSOR_PYTHON_HEADERS}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/xtensor-python)
@@ -130,7 +130,7 @@ export(EXPORT ${PROJECT_NAME}-targets
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
DESTINATION "${CMAKE_INSTALL_DATADIR}/pkgconfig/")
-set(XTENSOR_PYTHON_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}" CACHE
+set(XTENSOR_PYTHON_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME}" CACHE

View File

@@ -1,13 +0,0 @@
Index: xtensor-python-0.27.0/test/CMakeLists.txt
===================================================================
--- xtensor-python-0.27.0.orig/test/CMakeLists.txt
+++ xtensor-python-0.27.0/test/CMakeLists.txt
@@ -30,7 +30,7 @@ include(CheckCXXCompilerFlag)
string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wunused-parameter -Wextra -Wreorder -Wconversion -fvisibility=hidden")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-parameter -Wextra -Wreorder -Wconversion -fvisibility=hidden")
CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
if (HAS_CPP14_FLAG)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:40ee01bd213aeb7bf64f6d8a3257f4fa98ed31c401596c6c7b3b115f61a473b9
size 65455

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3be09f2bc284e5a468937ad411a9976f9ab7ea5d0df40f5b1964a3694e7ee931
size 66807

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Thu Jul 24 05:19:43 UTC 2025 - Christoph G <foss@grueninger.de>
- Update to 0.28
* Adjust xtensor includes
* Provide pkg-config file
- Adapt 0001-Install-as-arch-independent.patch
- Remove cxx-flags.patch as there is no longer a single place
to add compiler flags for tests.
-------------------------------------------------------------------
Mon Feb 17 19:15:37 UTC 2025 - Matwey Kornilov <matwey.kornilov@gmail.com>
- BuildRequires: python3-sphinx_rtd_theme to fix Factory build
-------------------------------------------------------------------
Thu Dec 19 13:50:59 UTC 2024 - Matwey Kornilov <matwey.kornilov@gmail.com>
- Run unit tests for all available python versions
-------------------------------------------------------------------
Mon May 27 17:29:38 UTC 2024 - Andreas Schwab <schwab@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package xtensor-python
#
# Copyright (c) 2024 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
@@ -17,24 +17,26 @@
Name: xtensor-python
Version: 0.27.0
Version: 0.28.0
Release: 0
Summary: Python bindings for the xtensor C++ multi-dimensional array library
License: BSD-3-Clause
URL: https://github.com/xtensor-stack/xtensor-python
Source0: https://github.com/xtensor-stack/xtensor-python/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
Patch0: 0001-Install-as-arch-independent.patch
Patch1: cxx-flags.patch
BuildRequires: cmake
BuildRequires: %{python_module breathe}
BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module sphinx_rtd_theme}
BuildRequires: %{pythons}
BuildRequires: cmake >= 3.14
BuildRequires: doctest-devel
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gtest
BuildRequires: make
BuildRequires: python3
BuildRequires: python3-breathe
BuildRequires: python3-numpy-devel
BuildRequires: xtensor-devel >= 0.25.0
BuildRequires: python-rpm-macros
BuildRequires: xtensor-devel >= 0.26
BuildRequires: cmake(pybind11) >= 2.6.1
Group: Development/Libraries/C and C++
@@ -79,22 +81,39 @@ enables seamless interoperability between C++ and Python.
%autosetup -p1
%build
%cmake -DBUILD_TESTS:BOOL=ON
%define __builddir build
%cmake
%cmake_build
#build documentation
cd %{_builddir}/%{name}-%{version}/docs
make html
# build documentation
make -C %{_builddir}/%{buildsubdir}/docs html
# build unit tests for each available python version
%{python_expand #
cd %{_builddir}/%{buildsubdir}
%define __builddir build.$python
%cmake -DBUILD_TESTS:BOOL=ON -DPYTHON_EXECUTABLE=%{_bindir}/$python
%cmake_build
}
%install
%define __builddir build
%cmake_install
#install documentation
# install documentation
mkdir -p %{buildroot}/%{_docdir}/%{name}
cp -r %{_builddir}/%{name}-%{version}/docs/build/html/* %{buildroot}/%{_docdir}/%{name}
cp -r %{_builddir}/%{buildsubdir}/docs/build/html/* %{buildroot}/%{_docdir}/%{name}
%fdupes -s %{buildroot}/%{_docdir}
%fdupes %{buildroot}/%{_prefix}
%check
%cmake_build -C %{__builddir} xtest
# run unit tests
%{python_expand #
%cmake_build -C %{_builddir}/%{buildsubdir}/build.$python xtest
}
%files doc
%doc %{_docdir}/%{name}
@@ -103,5 +122,6 @@ cp -r %{_builddir}/%{name}-%{version}/docs/build/html/* %{buildroot}/%{_docdir}/
%license LICENSE
%{_includedir}/xtensor-python
%{_datadir}/cmake/xtensor-python
%{_datadir}/pkgconfig/xtensor-python.pc
%changelog