SHA256
1
0
forked from pool/doctest
doctest/doctest.spec
Martin Pluskal 8ec8b1e6b8 Accepting request 1072822 from home:amanzini:branches:devel:tools
- Update to 2.4.11
  * fixed issue #755 - FAIL/FAIL_CHECK weren't properly reported with the junit reporter
  * fixed #751 which was caused by commit db758e0 when turning the values from an enum to an integer implicitly
  * removed the generated html docs 
- Update to 2.4.10
  * Add Intel Compiler support
  * Fix stringification of enums that overload operator<<
  * Suppress hash() clang integer sanitizer issues 
  * Fix compile errors when comparing pointers.
  * Use variables instead of hard-coded mpirun -np 
  * Fix typos and CMake example in docs

OBS-URL: https://build.opensuse.org/request/show/1072822
OBS-URL: https://build.opensuse.org/package/show/devel:tools/doctest?expand=0&rev=19
2023-03-18 10:42:19 +00:00

75 lines
1.9 KiB
RPMSpec

#
# spec file for package doctest
#
# Copyright (c) 2023 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: doctest
Version: 2.4.11
Release: 0
Summary: Single-header testing framework
License: MIT
URL: https://github.com/doctest/doctest
Source0: https://github.com/doctest/doctest/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
%description
C++98/C++11 single-header testing framework for unit tests and TDD.
%package devel
Summary: Single-header testing framework
%description devel
C++98/C++11 single-header testing framework for unit tests and TDD.
%prep
%autosetup -p1
%build
# fix cmake module path
sed -i 's|lib/cmake|%{_lib}/cmake|g' CMakeLists.txt
%cmake
%cmake_build
%install
%cmake_install
# creates support file for pkg-config
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
tee %{buildroot}/%{_libdir}/pkgconfig/doctest.pc << "EOF"
prefix=%{_prefix}
exec_prefix=${prefix}
libdir=${exec_prefix}/%{_lib}
includedir=${prefix}/include
Name: doctest
Description: Single-header testing framework
Version: %{version}
Libs:
Cflags: -I${includedir}/doctest
EOF
%files devel
%doc CHANGELOG.md README.md
%license LICENSE.txt
%{_includedir}/doctest
%{_libdir}/cmake/doctest
%{_libdir}/pkgconfig/doctest.pc
%changelog