public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/xeus] epel10: Initial import (#1750069).
@ 2026-07-11 22:27 Elliott Sales de Andrade
0 siblings, 0 replies; only message in thread
From: Elliott Sales de Andrade @ 2026-07-11 22:27 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/xeus
Branch : epel10
Commit : d090011b40856f6bbd60709517939cfe7c0a3b52
Author : Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date : 2019-09-23T17:50:04-04:00
Stats : +319/-0 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/xeus/c/d090011b40856f6bbd60709517939cfe7c0a3b52?branch=epel10
Log:
Initial import (#1750069).
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..450f093
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/xeus-0.23.1.tar.gz
diff --git a/0001-Don-t-set-_any_-options-if-DISABLE_ARCH_NATIVE-ON.patch b/0001-Don-t-set-_any_-options-if-DISABLE_ARCH_NATIVE-ON.patch
new file mode 100644
index 0000000..389c248
--- /dev/null
+++ b/0001-Don-t-set-_any_-options-if-DISABLE_ARCH_NATIVE-ON.patch
@@ -0,0 +1,31 @@
+From c15a7b64d1ab035dbdf0f4fdb0bada91cc4495f8 Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+Date: Sat, 7 Sep 2019 20:42:41 -0400
+Subject: [PATCH] Don't set _any_ options if DISABLE_ARCH_NATIVE=ON.
+
+On some platforms (e.g., s390x), even -mtune=generic is not allowed, so
+just don't pass anything.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+---
+ CMakeLists.txt | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a331df6..9d54cf3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -236,9 +236,7 @@ macro(xeus_create_target target_name linkage output_name)
+
+ target_compile_options(${target_name} PUBLIC -Wunused-parameter -Wextra -Wreorder)
+
+- if (DISABLE_ARCH_NATIVE)
+- target_compile_options(${target_name} PUBLIC -mtune=generic)
+- else ()
++ if (NOT DISABLE_ARCH_NATIVE)
+ target_compile_options(${target_name} PUBLIC -march=native)
+ endif ()
+
+--
+2.21.0
+
diff --git a/184.patch b/184.patch
new file mode 100644
index 0000000..2615a6b
--- /dev/null
+++ b/184.patch
@@ -0,0 +1,37 @@
+From aba9b9899f38849f6ac6ad668c72083efd92e4c9 Mon Sep 17 00:00:00 2001
+From: Sylvain Corlay <sylvain.corlay@gmail.com>
+Date: Thu, 5 Sep 2019 00:31:00 +0200
+Subject: [PATCH] Do not use MDC2
+
+---
+ CMakeLists.txt | 2 +-
+ src/xauthentication.cpp | 3 ++-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index fb91263..a331df6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -49,7 +49,7 @@ message(STATUS "xeus binary version: v${XEUS_BINARY_VERSION}")
+ set(nlohmann_json_REQUIRED_VERSION 3.2.0)
+ set(xtl_REQUIRED_VERSION 0.5)
+ set(cppzmq_REQUIRED_VERSION 4.3.0)
+-set(zeromq_REQUIRED_VERSION 4.2.3)
++set(zeromq_REQUIRED_VERSION 4.2.5)
+
+ find_package(nlohmann_json ${nlohmann_json_REQUIRED_VERSION} REQUIRED)
+ find_package(xtl ${xtl_REQUIRED_VERSION} REQUIRED)
+diff --git a/src/xauthentication.cpp b/src/xauthentication.cpp
+index 8039fa9..ff95141 100644
+--- a/src/xauthentication.cpp
++++ b/src/xauthentication.cpp
+@@ -108,7 +108,8 @@ namespace xeus
+ static const std::map<std::string, const EVP_MD*(*)()> schemes = {
+ {"hmac-md5", EVP_md5},
+ {"hmac-sha1", EVP_sha1},
+- {"hmac-mdc2", EVP_mdc2},
++ // MDC2 is disabled by default unless enable-mdc2 is specified
++ // {"hmac-mdc2", EVP_mdc2},
+ {"hmac-ripemd160", EVP_ripemd160},
+ #if OPENSSL_VERSION_NUMBER >= 0x10100000L
+ {"hmac-blake2b512", EVP_blake2b512},
diff --git a/fix-tests-cmake.patch b/fix-tests-cmake.patch
new file mode 100644
index 0000000..d8ac7ca
--- /dev/null
+++ b/fix-tests-cmake.patch
@@ -0,0 +1,162 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a331df6..228fb0b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -301,14 +301,14 @@ endif ()
+ # Tests
+ # =====
+
+-OPTION(BUILD_TESTS "xeus test suite" OFF)
++include(CTest)
+ OPTION(DOWNLOAD_GTEST "build gtest from downloaded sources" OFF)
+
+ if(DOWNLOAD_GTEST OR GTEST_SRC_DIR)
+- set(BUILD_TESTS ON)
++ set(BUILD_TESTING ON)
+ endif()
+
+-if(BUILD_TESTS)
++if(BUILD_TESTING)
+ add_subdirectory(test)
+ endif()
+
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index 4061248..e04d98d 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -81,6 +81,9 @@ endif()
+
+ find_package(Threads)
+
++find_program(PYTEST
++ NAMES pytest-3 pytest py.test-3 py.test)
++
+ include_directories(${GTEST_INCLUDE_DIRS})
+
+ set(XEUS_TESTS
+@@ -115,23 +118,21 @@ foreach(filename IN LISTS XEUS_TESTS)
+ add_test(NAME ${targetname} COMMAND ${targetname})
+ endforeach()
+
+-add_executable(test_xeus ${XEUS_TESTS} ${XEUS_HEADERS})
+ if(DOWNLOAD_GTEST OR GTEST_SRC_DIR)
+- add_dependencies(test_xeus gtest_main)
+-
+ # https://github.com/QuantStack/xeus/pull/126
++ # This should really just be post gtest and gtest_main targets, but CMake
++ # won't allow us to do that. So do it after the last test (which depends on
++ # those anyway.)
+ if (BUILD_SHARED_LIBS)
+ add_custom_command(
+- TARGET test_xeus POST_BUILD
++ TARGET ${targetname} POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:gtest>" "${CMAKE_CURRENT_BINARY_DIR}/")
++
+ add_custom_command(
+- TARGET test_xeus POST_BUILD
++ TARGET ${targetname} POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:gtest_main>" "${CMAKE_CURRENT_BINARY_DIR}/")
+ endif ()
+ endif()
+-target_link_libraries(test_xeus ${xeus_TARGET} ${GTEST_BOTH_LIBRARIES} Threads::Threads ${nlohmann_json_TARGET})
+-
+-add_custom_target(xtest COMMAND test_xeus DEPENDS test_xeus)
+
+ # Test_kernel tests
+ # =================
+@@ -141,9 +142,9 @@ set(TEST_KERNEL_SOURCES
+ test_interpreter.hpp
+ main.cpp)
+
+-configure_file (
++configure_file(
+ "${XEUS_TEST_DIR}/test_kernel/kernel.json.in"
+- "${XEUS_TEST_DIR}/test_kernel/kernel.json"
++ "kernels/test_kernel/kernel.json"
+ )
+
+ add_executable(test_kernel ${TEST_KERNEL_SOURCES})
+@@ -153,12 +154,16 @@ target_compile_features(test_kernel PRIVATE cxx_std_11)
+
+ set(CONNECTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/connection.json)
+
+-add_custom_command(
+- TARGET test_kernel POST_BUILD
+- COMMAND jupyter-kernelspec install "${XEUS_TEST_DIR}/test_kernel" --sys-prefix)
+-add_custom_command(
+- TARGET test_kernel POST_BUILD
+- COMMAND ${CMAKE_COMMAND} -E copy "${XEUS_TEST_DIR}/test_kernel.py" "${CMAKE_CURRENT_BINARY_DIR}/")
++configure_file(
++ "${XEUS_TEST_DIR}/test_kernel.py"
++ "${CMAKE_CURRENT_BINARY_DIR}/"
++ COPYONLY)
++
++add_test(NAME test_kernel
++ COMMAND ${PYTEST} test_kernel.py)
++set_tests_properties(test_kernel
++ PROPERTIES
++ ENVIRONMENT "JUPYTER_PATH=${CMAKE_CURRENT_BINARY_DIR}")
+
+ # Test_kernel_control tests
+ # =========================
+@@ -170,7 +175,7 @@ set(TEST_KERNEL_SPLIT_SOURCES
+
+ configure_file(
+ "${XEUS_TEST_DIR}/test_kernel_control/kernel.json.in"
+- "${XEUS_TEST_DIR}/test_kernel_control/kernel.json"
++ "kernels/test_kernel_control/kernel.json"
+ )
+
+ add_executable(test_kernel_control ${TEST_KERNEL_SPLIT_SOURCES})
+@@ -180,12 +185,16 @@ target_compile_features(test_kernel_control PRIVATE cxx_std_11)
+
+ set(CONNECTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/connection.json)
+
+-add_custom_command(
+- TARGET test_kernel_control POST_BUILD
+- COMMAND jupyter-kernelspec install "${XEUS_TEST_DIR}/test_kernel_control" --sys-prefix)
+-add_custom_command(
+- TARGET test_kernel_control POST_BUILD
+- COMMAND ${CMAKE_COMMAND} -E copy "${XEUS_TEST_DIR}/test_kernel_control.py" "${CMAKE_CURRENT_BINARY_DIR}/")
++configure_file(
++ "${XEUS_TEST_DIR}/test_kernel_control.py"
++ "${CMAKE_CURRENT_BINARY_DIR}/"
++ COPYONLY)
++
++add_test(NAME test_kernel_control
++ COMMAND ${PYTEST} test_kernel_control.py)
++set_tests_properties(test_kernel_control
++ PROPERTIES
++ ENVIRONMENT "JUPYTER_PATH=${CMAKE_CURRENT_BINARY_DIR}")
+
+ # Test_kernel_shell tests
+ # =======================
+@@ -197,7 +206,7 @@ set(TEST_KERNEL_SPLIT_SOURCES
+
+ configure_file(
+ "${XEUS_TEST_DIR}/test_kernel_shell/kernel.json.in"
+- "${XEUS_TEST_DIR}/test_kernel_shell/kernel.json"
++ "kernels/test_kernel_shell/kernel.json"
+ )
+
+ add_executable(test_kernel_shell ${TEST_KERNEL_SPLIT_SOURCES})
+@@ -207,9 +216,13 @@ target_compile_features(test_kernel_shell PRIVATE cxx_std_11)
+
+ set(CONNECTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/connection.json)
+
+-add_custom_command(
+- TARGET test_kernel_shell POST_BUILD
+- COMMAND jupyter-kernelspec install "${XEUS_TEST_DIR}/test_kernel_shell" --sys-prefix)
+-add_custom_command(
+- TARGET test_kernel_shell POST_BUILD
+- COMMAND ${CMAKE_COMMAND} -E copy "${XEUS_TEST_DIR}/test_kernel_shell.py" "${CMAKE_CURRENT_BINARY_DIR}/")
++configure_file(
++ "${XEUS_TEST_DIR}/test_kernel_shell.py"
++ "${CMAKE_CURRENT_BINARY_DIR}/"
++ COPYONLY)
++
++add_test(NAME test_kernel_shell
++ COMMAND ${PYTEST} test_kernel_shell.py)
++set_tests_properties(test_kernel_shell
++ PROPERTIES
++ ENVIRONMENT "JUPYTER_PATH=${CMAKE_CURRENT_BINARY_DIR}")
diff --git a/sources b/sources
new file mode 100644
index 0000000..42383e7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (xeus-0.23.1.tar.gz) = a016f0f76150a3cab5b5fe1f1978983e0a19eb4c9aee0985a55b2b6342ad2c29ca5f7a8b0fb81db578a0e300a8c3bc06c7c57fb84d164bad3d05b40377ad22ed
diff --git a/xeus.spec b/xeus.spec
new file mode 100644
index 0000000..234fc8d
--- /dev/null
+++ b/xeus.spec
@@ -0,0 +1,87 @@
+Name: xeus
+Version: 0.23.1
+Release: 1%{?dist}
+Summary: C++ implementation of the Jupyter kernel protocol
+
+License: BSD
+URL: https://github.com/QuantStack/xeus
+Source0: https://github.com/QuantStack/xeus/archive/%{version}/%{name}-%{version}.tar.gz
+# https://github.com/QuantStack/xeus/issues/182
+# https://github.com/QuantStack/xeus/issues/183
+Patch0001: https://github.com/QuantStack/xeus/pull/184.patch
+# https://github.com/QuantStack/xeus/pull/187
+Patch0002: fix-tests-cmake.patch
+# https://github.com/QuantStack/xeus/pull/188
+Patch0003: 0001-Don-t-set-_any_-options-if-DISABLE_ARCH_NATIVE-ON.patch
+
+# xtl is broken on some arches.
+# https://bugzilla.redhat.com/show_bug.cgi?id=1745840
+# https://bugzilla.redhat.com/show_bug.cgi?id=1745841
+ExcludeArch: armv7hl ppc64le
+
+BuildRequires: cmake >= 3.8
+BuildRequires: cmake(cppzmq) >= 4.3.0
+BuildRequires: cmake(nlohmann_json) >= 3.2.0
+BuildRequires: cmake(xtl) >= 0.5
+BuildRequires: doxygen
+BuildRequires: gcc-c++
+BuildRequires: gtest-devel
+BuildRequires: libuuid-devel
+BuildRequires: openssl-devel >= 1.0.1
+BuildRequires: pkgconfig(libzmq) >= 4.2.5
+BuildRequires: python3dist(breathe)
+BuildRequires: python3dist(jupyter-kernel-test)
+BuildRequires: python3dist(pytest)
+BuildRequires: python3dist(sphinx)
+BuildRequires: python3dist(sphinx-rtd-theme)
+
+%description
+xeus is a library meant to facilitate the implementation of kernels for
+Jupyter. It takes the burden of implementing the Jupyter Kernel protocol so
+developers can focus on implementing the interpreter part of the kernel.
+
+
+%package devel
+Summary: %{summary}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Development files for %{name} library.
+
+
+%prep
+%autosetup -p1
+
+
+%build
+mkdir build && cd build
+%cmake -DBUILD_STATIC_LIBS=OFF -DDISABLE_ARCH_NATIVE=ON ..
+%make_build
+
+make -C ../docs SPHINXBUILD=sphinx-build-3 html BUILDDIR=${PWD}
+rm html/.buildinfo
+
+
+%install
+%make_install -C build
+
+
+%check
+cd build
+ctest -V
+
+
+%files
+%doc README.md build/html
+%license LICENSE
+%{_libdir}/libxeus.so.1*
+
+%files devel
+%{_includedir}/xeus/
+%{_libdir}/cmake/xeus/
+%{_libdir}/libxeus.so
+
+
+%changelog
+* Sat Sep 07 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.1-1
+- Initial package release
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-11 22:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-11 22:27 [rpms/xeus] epel10: Initial import (#1750069) Elliott Sales de Andrade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox