108f05f
%undefine __cmake_in_source_build
cb5e83a
%global debug_package %{nil}
cb5e83a
cb5e83a
Name: doctest
nick black 0c3408b
Version: 2.4.1
nick black 0c3408b
Release: 1%{?dist}
cb5e83a
Summary: Feature-rich header-only C++ testing framework
cb5e83a
License: MIT
cb5e83a
URL: https://github.com/onqtam/%{name}
cb5e83a
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
nick black f263b48
Patch1: 0001-fixed-build-forgot-to-update-output-from-the-version.patch
cb5e83a
cb5e83a
BuildRequires: gcc-c++
cb5e83a
BuildRequires: cmake
nick black 73fbc07
BuildRequires: git
cb5e83a
cb5e83a
%description
cb5e83a
A fast (both in compile times and runtime) C++ testing framework, with the
cb5e83a
ability to write tests directly along production source (or in their own
cb5e83a
source, if you prefer).
cb5e83a
cb5e83a
%package devel
cb5e83a
Summary: Development files for %{name}
cb5e83a
Provides: %{name}-static%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
cb5e83a
Provides: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
cb5e83a
Requires: libstdc++-devel%{?_isa}
cb5e83a
cb5e83a
%description devel
cb5e83a
%{summary}.
cb5e83a
cb5e83a
%prep
cb5e83a
%autosetup -p1
cb5e83a
cb5e83a
%build
108f05f
%cmake \
cb5e83a
  -DCMAKE_BUILD_TYPE=Release \
cb5e83a
  -DDOCTEST_WITH_MAIN_IN_STATIC_LIB:BOOL=OFF \
cb5e83a
  -DDOCTEST_WITH_TESTS:BOOL=ON \
108f05f
  %{nil}
108f05f
%cmake_build
cb5e83a
cb5e83a
%check
108f05f
%ctest
cb5e83a
cb5e83a
%install
108f05f
%cmake_install
cb5e83a
cb5e83a
%files devel
cb5e83a
%doc README.md CHANGELOG.md CONTRIBUTING.md
cb5e83a
%license LICENSE.txt
cb5e83a
%{_includedir}/%{name}/
cb5e83a
%{_libdir}/cmake/%{name}/
cb5e83a
cb5e83a
%changelog
nick black 0c3408b
* Wed Nov 04 2020 Nick Black <dankamongmen@gmail.com> - 2.4.1-1
nick black 0c3408b
- New upstream release
nick black f263b48
- Trivial patch from upstream to fix unit tests
nick black 0c3408b
dee2ee1
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
dee2ee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dee2ee1
a3ab1a1
* Sun Jun 28 2020 Nick Black <dankamongmen@gmail.com> - 2.4.0-1
a3ab1a1
- New upstream release
a3ab1a1
2e32144
* Sun May 24 2020 Nick Black <dankamongmen@gmail.com> - 2.3.8-1
2e32144
- New upstream release
2e32144
cb5e83a
* Thu Apr 30 2020 Nick Black <dankamongmen@gmail.com> - 2.3.7-1
cb5e83a
- Initial RPM release