Group :: Development/C++
RPM: doctest
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: doctest
Version: 2.4.11
Release: alt1
Summary: Feature-rich header-only C++ testing framework
License: MIT
Group: Development/C++
Url: https://github.com/doctest/doctest
Source0: %name-%version.tar
BuildRequires: gcc-c++
BuildRequires: cmake ctest
%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
Group: Development/C++
Summary: Development files for %name
Requires: libstdc++-devel
%description devel
%summary.
%prep
%setup
%build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DDOCTEST_WITH_MAIN_IN_STATIC_LIB:BOOL=OFF \
-DDOCTEST_WITH_TESTS:BOOL=ON \
%nil
%cmake_build
%check
ctest --test-dir %_cmake__builddir
%install
%cmake_install
%files devel
%doc README.md CHANGELOG.md CONTRIBUTING.md
%doc LICENSE.txt
%_includedir/%name/
%_libdir/cmake/%name/
%changelog
…
Full changelog you can see here
Version: 2.4.11
Release: alt1
Summary: Feature-rich header-only C++ testing framework
License: MIT
Group: Development/C++
Url: https://github.com/doctest/doctest
Source0: %name-%version.tar
BuildRequires: gcc-c++
BuildRequires: cmake ctest
%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
Group: Development/C++
Summary: Development files for %name
Requires: libstdc++-devel
%description devel
%summary.
%prep
%setup
%build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DDOCTEST_WITH_MAIN_IN_STATIC_LIB:BOOL=OFF \
-DDOCTEST_WITH_TESTS:BOOL=ON \
%nil
%cmake_build
%check
ctest --test-dir %_cmake__builddir
%install
%cmake_install
%files devel
%doc README.md CHANGELOG.md CONTRIBUTING.md
%doc LICENSE.txt
%_includedir/%name/
%_libdir/cmake/%name/
%changelog
…
Full changelog you can see here