# # spec file for package Catch2 # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # 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.7.2 Release: 0 Summary: A modern, C++-native, header-only, test framework for unit-tests, TDD and BDD License: BSL-1.0 Group: Development/Languages/C and C++ 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 %setup -q %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 %check %ctest %install %cmake_install %files devel %defattr(-,root,root,-) %if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320 %license LICENSE.txt %else %doc LICENSE.txt %endif %doc README.md CODE_OF_CONDUCT.md %doc %{_defaultdocdir}/%{name} %{_datadir}/%{name} %{_includedir}/catch2 %{_libdir}/cmake/%{name} %{_libdir}/pkgconfig/catch2.pc %changelog