Catch2/Catch2.spec
Luigi Baldoni 1f019c4e02 Accepting request 884863 from home:alois:branches:devel:libraries:c_c++
- Update to version 2.13.5
 Improvements:
  * Added workaround for bug in XLC 16.1.0.1
  * Add detection for LCC when it is masquerading as GCC
  * Modified posix signal handling so it supports newer libcs
    + `MINSIGSTKSZ` was no longer usable in constexpr context.
  Fixes:
  * Fixed compilation of benchmarking when `min` and `max`
    macros are defined
    + Including `windows.h` without `NOMINMAX` remains a really
      bad idea, don't do it
  Miscellaneous:
  * `Catch2WithMain` target (static library) is no longer built
    by default
    + Building it by default was at best unnecessary overhead
      for people not using it, and at worst it caused trouble
      with install paths
    + To have it built, set CMake option
      `CATCH_BUILD_STATIC_LIBRARY` to `ON`
  * The check whether Catch2 is being built as a subproject is
    now more reliable
    + The problem was that if the variable name used internally
      was defined the project including Catch2 as subproject, it
      would not be properly overwritten for Catch2's CMake.
  version 2.13.4
  Improvements:
  * Improved the hashing algorithm used for shuffling test cases
    + `TEST_CASE`s that differ only in the last character should
      be properly shuffled
    + Note that this means that v2.13.4 gives you a different
      order of test cases than 2.13.3, even given the same seed.
  Miscellaneous:
  * Deprecated `ParseAndAddCatchTests` CMake integration
    + It is impossible to implement it properly for all the
      different test case variants Catch2 provides, and there
      are better options provided.
    + Use `catch_discover_tests` instead, which uses runtime
      information about available tests.
  * Fixed bug in `catch_discover_tests` that would cause it to
    fail when used in specific project structures
  * Added Bazel build file
  * Added an experimental static library target to CMake

OBS-URL: https://build.opensuse.org/request/show/884863
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Catch2?expand=0&rev=9
2021-04-13 07:54:29 +00:00

70 lines
2.2 KiB
RPMSpec

#
# spec file for package Catch2
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: Catch2
Version: 2.13.5
Release: 0
Summary: A modern, C++-native, header-only, test framework for unit-tests, TDD and BDD
License: BSL-1.0
URL: https://github.com/catchorg/%{name}/
Source: https://github.com/catchorg/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake >= 3.5
BuildRequires: gcc-c++
BuildRequires: pkgconfig
%description
Catch2 stands for C++ Automated Test Cases in a Header and is a multi-paradigm
test framework for C++. which also supports Objective-C (and maybe C).
It is primarily distributed as a single header file, although certain
extensions may require additional headers.
%prep
%autosetup
%package devel
Summary: A modern, C++-native, header-only, test framework for unit-tests, TDD and BDD
%description devel
Catch2 stands for C++ Automated Test Cases in a Header and is a multi-paradigm
test framework for C++. which also supports Objective-C (and maybe C).
It is primarily distributed as a single header file, although certain
extensions may require additional headers.
%build
%cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_DOCDIR=%{_defaultdocdir}/%{name} \
-DPKGCONFIG_INSTALL_DIR=%{_libdir}/pkgconfig
%make_jobs
%install
%cmake_install
%check
%ctest
%files devel
%license LICENSE.txt
%doc README.md CODE_OF_CONDUCT.md
%doc %{_defaultdocdir}/%{name}
%{_datadir}/%{name}
%{_includedir}/catch2
%{_libdir}/cmake/%{name}
%{_libdir}/pkgconfig/catch2.pc
%changelog