blob: 77a4dffc3bb3e67856a76f22c40918b6a4cf7b8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
%global forgeurl https://github.com/cpputest/cpputest
Name: cpputest
Version: 4.0
Release: %autorelease
Summary: Unit testing and mocking framework for C/C++
License: BSD
URL: https://cpputest.github.io/
Source0: %{forgeurl}/releases/download/v%{version}/%{name}-%{version}.tar.gz
# compile the extension library as a shared library
Patch0: %%{name}-no-static-ext.patch
# fix installation location of cmake files
Patch1: %{name}-fix-cmake-dest.patch
BuildRequires: cmake
BuildRequires: gcc-c++
%global _description %{expand:
CppUTest is a C/C++ based unit xUnit test framework for unit testing and for
test-driving your code. It is written in C++ but is used in C and C++ projects
and frequently used in embedded systems but it works for any C/C++ project.
CppUTest’s core design principles are:
- Simple in design and simple in use.
- Portable to old and new platforms.
- Build with Test-driven Development for Test-driven Developers.}
%description %{_description}
%package devel
Summary: Development files for %{name}
Requires: cmake-filesystem
Requires: gcc-c++
%description devel %{_description}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1
%build
%cmake
%cmake_build
%install
%cmake_install
%check
%ctest
%files devel
%license COPYING
%doc README.md README_CppUTest_for_C.txt
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/cmake/CppUTest
%{_libdir}/pkgconfig/cpputest.pc
%changelog
%autochangelog
|