forked from pool/xtensor-python
Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 4d685451ff | |||
| d401bf3ca0 | |||
| 266337606c | |||
| 19c968f30e | |||
| f983f6eb64 | |||
| 55ef08022c | |||
| 4c28b4f5fe |
@@ -16,9 +16,9 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|||||||
index 6521c98..47af271 100644
|
index 6521c98..47af271 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -123,7 +123,7 @@ export(EXPORT ${PROJECT_NAME}-targets
|
@@ -130,7 +130,7 @@ export(EXPORT ${PROJECT_NAME}-targets
|
||||||
install(FILES ${XTENSOR_PYTHON_HEADERS}
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
|
||||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/xtensor-python)
|
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_LIBDIR}/cmake/${PROJECT_NAME}" CACHE
|
||||||
+set(XTENSOR_PYTHON_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME}" CACHE
|
+set(XTENSOR_PYTHON_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME}" CACHE
|
||||||
|
|||||||
@@ -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)
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:40ee01bd213aeb7bf64f6d8a3257f4fa98ed31c401596c6c7b3b115f61a473b9
|
|
||||||
size 65455
|
|
||||||
3
xtensor-python-0.28.0.tar.gz
Normal file
3
xtensor-python-0.28.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3be09f2bc284e5a468937ad411a9976f9ab7ea5d0df40f5b1964a3694e7ee931
|
||||||
|
size 66807
|
||||||
@@ -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>
|
Mon May 27 17:29:38 UTC 2024 - Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package xtensor-python
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,24 +17,26 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: xtensor-python
|
Name: xtensor-python
|
||||||
Version: 0.27.0
|
Version: 0.28.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python bindings for the xtensor C++ multi-dimensional array library
|
Summary: Python bindings for the xtensor C++ multi-dimensional array library
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/xtensor-stack/xtensor-python
|
URL: https://github.com/xtensor-stack/xtensor-python
|
||||||
Source0: https://github.com/xtensor-stack/xtensor-python/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/xtensor-stack/xtensor-python/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
|
||||||
Patch0: 0001-Install-as-arch-independent.patch
|
Patch0: 0001-Install-as-arch-independent.patch
|
||||||
Patch1: cxx-flags.patch
|
BuildRequires: %{python_module breathe}
|
||||||
BuildRequires: cmake
|
BuildRequires: %{python_module numpy-devel}
|
||||||
|
BuildRequires: %{python_module sphinx_rtd_theme}
|
||||||
|
BuildRequires: %{pythons}
|
||||||
|
BuildRequires: cmake >= 3.14
|
||||||
BuildRequires: doctest-devel
|
BuildRequires: doctest-devel
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gtest
|
BuildRequires: gtest
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: python3
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-breathe
|
BuildRequires: xtensor-devel >= 0.26
|
||||||
BuildRequires: python3-numpy-devel
|
|
||||||
BuildRequires: xtensor-devel >= 0.25.0
|
|
||||||
BuildRequires: cmake(pybind11) >= 2.6.1
|
BuildRequires: cmake(pybind11) >= 2.6.1
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
@@ -79,22 +81,39 @@ enables seamless interoperability between C++ and Python.
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -DBUILD_TESTS:BOOL=ON
|
%define __builddir build
|
||||||
|
|
||||||
|
%cmake
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
#build documentation
|
# build documentation
|
||||||
cd %{_builddir}/%{name}-%{version}/docs
|
make -C %{_builddir}/%{buildsubdir}/docs html
|
||||||
make 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
|
%install
|
||||||
|
%define __builddir build
|
||||||
|
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
#install documentation
|
# install documentation
|
||||||
mkdir -p %{buildroot}/%{_docdir}/%{name}
|
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
|
%check
|
||||||
%cmake_build -C %{__builddir} xtest
|
# run unit tests
|
||||||
|
%{python_expand #
|
||||||
|
%cmake_build -C %{_builddir}/%{buildsubdir}/build.$python xtest
|
||||||
|
}
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc %{_docdir}/%{name}
|
%doc %{_docdir}/%{name}
|
||||||
@@ -103,5 +122,6 @@ cp -r %{_builddir}/%{name}-%{version}/docs/build/html/* %{buildroot}/%{_docdir}/
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_includedir}/xtensor-python
|
%{_includedir}/xtensor-python
|
||||||
%{_datadir}/cmake/xtensor-python
|
%{_datadir}/cmake/xtensor-python
|
||||||
|
%{_datadir}/pkgconfig/xtensor-python.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user