Notification time stamped 2021-05-31 19:36:27 UTC
From 079c51cf7ec3550b39d8f6b990683f638903350c Mon Sep 17 00:00:00 2001
From: Alejandro Alvarez Ayllon <a.alvarezayllon(a)gmail.com>
Date: May 31 2021 19:36:17 +0000
Subject: Release 2.19
---
diff --git a/elements-alexandria.spec b/elements-alexandria.spec
index 4b7f75f..3848855 100644
--- a/elements-alexandria.spec
+++ b/elements-alexandria.spec
@@ -1,7 +1,7 @@
Summary: A lightweight C++ utility library
Name: elements-alexandria
-Version: 2.18
-Release: 3%{?dist}
+Version: 2.19
+Release: 1%{?dist}
License: LGPLv3+
URL:
https://github.com/astrorama/Alexandria
Source0:
https://github.com/astrorama/Alexandria/archive/%{version}/%{name}-%{vers...
@@ -9,11 +9,6 @@ Source0:
https://github.com/astrorama/Alexandria/archive/%{version}/%{nam
# It is downloaded from:
#
https://upload.cppreference.com/w/File:cppreference-doxygen-web.tag.xml
Source1: cppreference-doxygen-web.tag.xml
-# Test assumes little endian
-# Fixed on next version
-Patch0: elements-alexandria_bigendian_test.patch
-# Fix an padding issue that causes a bad alignment signal on armv7
-Patch1: elements-alexandria_ndarray_align.patch
%global elements_version 5.12
@@ -182,6 +177,9 @@ make test -C "%{_vpath_builddir}"
%{docdir}
%changelog
+* Mon May 31 2021 Alejandro Alvarez Ayllon <aalvarez(a)fedoraproject.org> - 2.19-1
+- Release 2.19
+
* Mon May 10 2021 Alejandro Alvarez Ayllon <aalvarez(a)fedoraproject.org> - 2.18-3
- Rebuild for gcc11.1
diff --git a/elements-alexandria_bigendian_test.patch
b/elements-alexandria_bigendian_test.patch
deleted file mode 100644
index d152049..0000000
--- a/elements-alexandria_bigendian_test.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-diff --git a/NdArray/NdArray/io/_impl/NpyCommon.h b/NdArray/NdArray/io/_impl/NpyCommon.h
-index 84efd49..8c95078 100644
---- a/NdArray/NdArray/io/_impl/NpyCommon.h
-+++ b/NdArray/NdArray/io/_impl/NpyCommon.h
-@@ -236,7 +236,7 @@ inline void readNpyHeader(std::istream& input, std::string&
dtype, std::vector<s
- if (fortran_order)
- throw Elements::Exception() << "Fortran order not supported";
-
-- if (big_endian && (BYTE_ORDER != BIG_ENDIAN))
-+ if ((big_endian && (BYTE_ORDER != BIG_ENDIAN)) || (!big_endian &&
(BYTE_ORDER != LITTLE_ENDIAN)))
- throw Elements::Exception() << "Only native endianness supported for
reading";
- }
-
-diff --git a/NdArray/tests/src/Npy_test.cpp b/NdArray/tests/src/Npy_test.cpp
-index 7839032..b8a9f9d 100644
---- a/NdArray/tests/src/Npy_test.cpp
-+++ b/NdArray/tests/src/Npy_test.cpp
-@@ -160,11 +160,19 @@ BOOST_AUTO_TEST_CASE(Npy_badtype_test) {
- BOOST_AUTO_TEST_CASE(Npy_badendian_test) {
- Elements::TempFile file(std::string("npy_testpy_endian_%%.npy"));
-
-+#if BYTE_ORDER == LITTLE_ENDIAN
- constexpr const char* PYCODE = R"EDOCYP(
- import sys
- import numpy as np
- np.save(sys.argv[1], np.arange(100, 400, dtype='>i8'))
- )EDOCYP";
-+#else
-+ constexpr const char* PYCODE = R"EDOCYP(
-+import sys
-+import numpy as np
-+np.save(sys.argv[1], np.arange(100, 400, dtype='<i8'))
-+)EDOCYP";
-+#endif
-
- runPython(PYCODE, file.path());
-
diff --git a/elements-alexandria_ndarray_align.patch
b/elements-alexandria_ndarray_align.patch
deleted file mode 100644
index 37f014d..0000000
--- a/elements-alexandria_ndarray_align.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-commit c467d22132935c9c385a591d48eeb6bc68196fa1
-Author: Alejandro Alvarez Ayllon <a.alvarezayllon(a)gmail.com>
-Date: Mon Feb 8 15:02:43 2021 +0100
-
- Fix alignment when creating mmapped ndarrays
-
- * Detected on armv7hl, where aligmnment requirements are harder
-
-diff --git a/NdArray/NdArray/io/_impl/NpyCommon.h b/NdArray/NdArray/io/_impl/NpyCommon.h
-index 8c95078..43f176d 100644
---- a/NdArray/NdArray/io/_impl/NpyCommon.h
-+++ b/NdArray/NdArray/io/_impl/NpyCommon.h
-@@ -294,13 +294,14 @@ void writeNpyHeader(std::ostream& out,
std::vector<size_t> shape, const std::vec
- little_uint32_t header_len = header_str.size();
-
- // Pad header with spaces so the header block is 64 bytes aligned
-- size_t total_length = sizeof(NPY_MAGIC) + sizeof(NPY_VERSION) + sizeof(header_len) +
header_len - 1; // Keep 1 for \n
-+ size_t total_length = sizeof(NPY_MAGIC) + sizeof(NPY_VERSION) + sizeof(header_len) +
header_len + 1; // Keep 1 for \n
- size_t padding = 64 - total_length % 64;
- if (padding) {
-- header << std::string(padding, '\x20') << '\n';
-- header_str = header.str();
-- header_len = header_str.size();
-+ header << std::string(padding, '\x20');
- }
-+ header << '\n';
-+ header_str = header.str();
-+ header_len = header_str.size();
-
- // Magic and version
- out.write(NPY_MAGIC, sizeof(NPY_MAGIC));
-diff --git a/NdArray/NdArray/io/_impl/NpyMmap.icpp
b/NdArray/NdArray/io/_impl/NpyMmap.icpp
-index 5cdd603..c7b34dc 100644
---- a/NdArray/NdArray/io/_impl/NpyMmap.icpp
-+++ b/NdArray/NdArray/io/_impl/NpyMmap.icpp
-@@ -67,6 +67,8 @@ NdArray<T> createMmapNpy(const boost::filesystem::path& path,
const std::vector<
- auto header_str = header.str();
- auto header_size = header_str.size();
-
-+ assert(header_size % 64 == 0);
-+
- // Compute file expected size
- size_t n_elements = std::accumulate(shape.begin(), shape.end(), 1,
std::multiplies<size_t>());
- if (!attrs.empty())
diff --git a/sources b/sources
index 8380884..05c5f13 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (elements-alexandria-2.18.tar.gz) =
01d037b1b209dabd465e325ca21b1989a659e9b757fbefc3cc3aa5d6bea6aa020c44c5328307652dfb99a25e31a1da05753fef454294108f606b3606d6c17d3d
+SHA512 (elements-alexandria-2.19.tar.gz) =
23cc4876d97bcf993a667c08a39161ddf5ad59803c8f6a2e2d0f53f84ae0766af71b4b74eaa3f66bb0d289ecc2a91891aec348894d0000128ef4f8278254d4b1
https://src.fedoraproject.org/rpms/elements-alexandria/c/079c51cf7ec3550b...