diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-01-14 16:44:20 -0800 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-01-14 16:45:09 -0800 |
| commit | 6fc8f61046c0c3f0ab186d1e7f0bb70cdc530a92 (patch) | |
| tree | 7b0d798ab51072622fa05ffa412c0428c184a45f /devtools | |
| parent | c0fe5955e6d0a6b612c7a34768656fe72f28971a (diff) | |
| download | specs-6fc8f61046c0c3f0ab186d1e7f0bb70cdc530a92.tar.gz specs-6fc8f61046c0c3f0ab186d1e7f0bb70cdc530a92.tar.xz specs-6fc8f61046c0c3f0ab186d1e7f0bb70cdc530a92.zip | |
+ cpputest
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'devtools')
| -rw-r--r-- | devtools/cpputest.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/devtools/cpputest.spec b/devtools/cpputest.spec new file mode 100644 index 0000000..73042c8 --- /dev/null +++ b/devtools/cpputest.spec @@ -0,0 +1,72 @@ +# static build only, no debuginfo +#%%global debug_package %%{nil} + +%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 |
