public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tomas Hrcka <thrcka@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/xtl] epel10: Revert "xtl fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1676253"
Date: Sat, 11 Jul 2026 22:45:32 GMT	[thread overview]
Message-ID: <178380993217.1.9514271526415172330.rpms-xtl-36de6a9b4fbe@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/xtl
            Branch : epel10
            Commit : 36de6a9b4fbec7a619e6c03a16495ed44e373f15
            Author : Tomas Hrcka <thrcka@redhat.com>
            Date   : 2019-08-19T17:03:29+02:00
            Stats  : +185/-1 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/xtl/c/36de6a9b4fbec7a619e6c03a16495ed44e373f15?branch=epel10

            Log:
            Revert "xtl fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1676253"

This reverts commit 8f9c4a20327134a34533ff5ec27e38c42b4d59ba.
Unretirement issue: https://pagure.io/releng/issue/8625

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..289c854
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
+/xtl-0.4.4.tar.gz
+/xtl-0.4.7.tar.gz
+/xtl-0.4.13.tar.gz
+/xtl-0.4.14.tar.gz
+/xtl-0.4.15.tar.gz
+/xtl-0.5.3.tar.gz
+/xtl-0.5.4.tar.gz
+/xtl-0.6.0.tar.gz
+/xtl-0.6.1.tar.gz
+/xtl-0.6.2.tar.gz
+/xtl-0.6.3.tar.gz
+/xtl-0.6.4.tar.gz

diff --git a/0001-Fix-complex-test.patch b/0001-Fix-complex-test.patch
new file mode 100644
index 0000000..b87df5a
--- /dev/null
+++ b/0001-Fix-complex-test.patch
@@ -0,0 +1,43 @@
+From 517cd4f961c155284916fe393445adbe0e137d2b Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+Date: Wed, 8 Aug 2018 00:03:32 -0400
+Subject: [PATCH 1/2] Fix complex test.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+---
+ test/test_xcomplex.cpp | 17 +++++++++++++----
+ 1 file changed, 13 insertions(+), 4 deletions(-)
+
+diff --git a/test/test_xcomplex.cpp b/test/test_xcomplex.cpp
+index d238f33..a8a96c9 100644
+--- a/test/test_xcomplex.cpp
++++ b/test/test_xcomplex.cpp
+@@ -253,12 +253,21 @@ namespace xtl
+     TEST(xcomplex, power)
+     {
+         complex_type c(1., 2.);
++        complex_type r, sr;
+         std::complex<double> sc(c);
+         double d = 1.5;
+-        EXPECT_EQ(pow(c, c), complex_type(std::pow(sc, sc)));
+-        EXPECT_EQ(pow(c, d), complex_type(std::pow(sc, d)));
+-        EXPECT_EQ(pow(d, c), complex_type(std::pow(d, sc)));
+-        EXPECT_EQ(sqrt(c), complex_type(std::sqrt(sc)));
++#define EXPECT_COMPLEX_EQ(a, b) \
++        do { \
++                r = a; \
++                sr = b; \
++                EXPECT_DOUBLE_EQ(r.real(), sr.real()); \
++                EXPECT_DOUBLE_EQ(r.imag(), sr.imag()); \
++        } while (0)
++        EXPECT_COMPLEX_EQ(pow(c, c), complex_type(std::pow(sc, sc)));
++        EXPECT_COMPLEX_EQ(pow(c, d), complex_type(std::pow(sc, d)));
++        EXPECT_COMPLEX_EQ(pow(d, c), complex_type(std::pow(d, sc)));
++        EXPECT_COMPLEX_EQ(sqrt(c), complex_type(std::sqrt(sc)));
++#undef EXPECT_COMPLEX_EQ
+     }
+ 
+     TEST(xcomplex, trigonometric)
+-- 
+2.17.1
+

diff --git a/dead.package b/dead.package
deleted file mode 100644
index f74c628..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-xtl fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1676253

diff --git a/sources b/sources
new file mode 100644
index 0000000..d743b00
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (xtl-0.6.4.tar.gz) = 92ff932634a88fee9bfd27d092ebdf91752d90be8a4f3fc41aef90c195718c989082e53f1fcfae9d67b153ecd29d3dde6f8e2b540eeec0db1d0d229a9b0d2fe8

diff --git a/xtl.spec b/xtl.spec
new file mode 100644
index 0000000..c77a06d
--- /dev/null
+++ b/xtl.spec
@@ -0,0 +1,129 @@
+# Header-only library.
+%global debug_package %{nil}
+
+Name:           xtl
+Version:        0.6.4
+Release:        2%{?dist}
+License:        BSD
+Summary:        QuantStack tools library
+Url:            https://github.com/QuantStack/xtl
+Source0:        https://github.com/QuantStack/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
+# https://github.com/QuantStack/xtl/issues/97
+Patch0001:      0001-Fix-complex-test.patch
+
+BuildRequires:  binutils
+BuildRequires:  cmake
+BuildRequires:  doxygen
+BuildRequires:  gcc-c++
+BuildRequires:  gtest-devel
+BuildRequires:  make
+BuildRequires:  cmake(nlohmann_json)
+BuildRequires:  python3dist(breathe)
+BuildRequires:  python3dist(sphinx)
+BuildRequires:  python3dist(sphinx-rtd-theme)
+
+%description
+Basic tools (containers, algorithms) used by other QuantStack packages.
+
+
+%package devel
+Summary:        %{summary}
+Provides:       xtl-static = %{version}-%{release}
+Requires:       cmake-filesystem
+
+%description devel
+Development files for %{name} library.
+
+
+%package doc
+Summary:        %{summary}
+
+%description doc
+Documentation files for %{name} library.
+
+
+%prep
+%autosetup -p1
+
+
+%build
+%cmake -DBUILD_TESTS=ON .
+%make_build
+
+pushd docs
+make html SPHINXBUILD=sphinx-build-3
+rm build/html/.buildinfo
+popd
+
+
+%install
+%make_install
+
+
+%check
+make xtest
+
+
+%files devel
+%doc README.md
+%license LICENSE
+%{_includedir}/xtl/
+%{_libdir}/cmake/xtl/
+%{_libdir}/pkgconfig/xtl.pc
+
+%files doc
+%doc docs/build/html
+
+
+%changelog
+* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Mon Apr 29 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.6.4-1
+- Update to latest version
+
+* Wed Apr 10 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.6.3-1
+- Update to latest version
+
+* Sat Apr 06 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.6.2-1
+- Update to latest version
+
+* Tue Mar 26 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.6.1-1
+- Update to latest version
+
+* Fri Mar 08 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.6.0-1
+- Update to latest version
+
+* Wed Feb 13 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.5.4-1
+- Update to latest version
+
+* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Wed Jan 23 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.5.3-1
+- Update to latest version
+
+* Wed Sep 05 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.4.15-1
+- Update to latest version
+
+* Thu Aug 16 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.4.14-2
+- rebuilt
+
+* Tue Aug 14 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.4.14-1
+- Update to latest version
+
+* Tue Aug 07 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.4.13-1
+- Update to latest version
+
+* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.7-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Wed May 02 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.4.7-1
+- Update to latest version
+
+* Wed Mar 21 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.4.4-2
+- Split documentation into subpackage
+- Run more tests on broken arches
+
+* Mon Mar 19 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.4.4-1
+- Initial package for Fedora

                 reply	other threads:[~2026-07-11 22:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178380993217.1.9514271526415172330.rpms-xtl-36de6a9b4fbe@fedoraproject.org \
    --to=thrcka@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox