From 7cf86f82edeb7e7b5666b791f0820a334d21a24b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 7 Aug 2025 02:12:33 +0000 Subject: automatic import of doctest --- .gitignore | 1 + doctest.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 doctest.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..ebd1ae1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/v2.4.12.tar.gz diff --git a/doctest.spec b/doctest.spec new file mode 100644 index 0000000..c8f7354 --- /dev/null +++ b/doctest.spec @@ -0,0 +1,61 @@ +%undefine __cmake3_in_source_build +%global debug_package %{nil} + +Name: doctest +Version: 2.4.12 +Release: 1 +Summary: Feature-rich header-only C++ testing framework +# logo is CC-BY-4.0 +# doctest/doctest.h and doctest/parts/doctest_fwd.h include BSL-1.0 +# scripts/*.cmake are BSD-3-Clause +# doc/html_generated is GPL-3.0-only but it is not included in binary rpm +License: MIT AND CC-BY-4.0 AND BSL-1.0 AND BSD-3-Clause +URL: https://github.com/doctest/%{name} +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz + +BuildRequires: gcc-c++ +BuildRequires: cmake3 +BuildRequires: git + +%description +A fast (both in compile times and runtime) C++ testing framework, with the +ability to write tests directly along production source (or in their own +source, if you prefer). + +%package devel +Summary: Development files for %{name} +Provides: %{name}-static = %{?epoch:%{epoch}:}%{version}-%{release} +Provides: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: libstdc++-devel%{?_isa} + +%description devel +%{summary}. + +%prep +%autosetup -p1 + +%build +%cmake3 \ + -DCMAKE_BUILD_TYPE=Release \ + -DDOCTEST_WITH_MAIN_IN_STATIC_LIB:BOOL=OFF \ + -DDOCTEST_WITH_TESTS:BOOL=ON \ + %{nil} +%cmake3_build + +%check +export OMPI_ALLOW_RUN_AS_ROOT=1 +export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 +%ctest3 + +%install +%cmake3_install + +%files devel +%doc README.md CHANGELOG.md CONTRIBUTING.md +%license LICENSE.txt +%{_includedir}/%{name}/ +%{_libdir}/cmake/%{name}/ + +%changelog +* Thu May 29 2025 Dongxing Wang - 2.4.12-1 +- Init package diff --git a/sources b/sources new file mode 100644 index 0000000..4fa9680 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +92bcfd6352ebf6c741f9ffaa3cad8808 v2.4.12.tar.gz -- cgit v1.2.3