Summary: unit testing framework for C Name: cmocka Version: 1.1.1 Release: 1%{?dist} Group: Development/Libraries Vendor: VMware, Inc. License: Apache 2.0 URL: https://cmocka.org/ Source0: https://cmocka.org/files/1.1/%{name}-%{version}.tar.xz %define sha1 cmocka=6e872df60804462c3ee1eeb7e9a15538874bca49 Distribution: Photon BuildRequires: cmake %description an elegant unit testing framework for C with support for mock objects. It only requires the standard C library, works on a range of computing platforms (including embedded) and with different compilers. %prep %setup %build mkdir build cd build cmake \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ .. make %install cd build make DESTDIR=%{buildroot} install %post /sbin/ldconfig # First argument is 1 => New Installation # First argument is 2 => Upgrade %clean rm -rf %{buildroot}/* %files %exclude %{_libdir}/cmake %{_libdir}/libcmocka.* %{_libdir}/pkgconfig/cmocka.pc %{_includedir}/* %changelog * Fri Jun 29 2018 Priyesh Padmavilasom 1.1.1-1 - Initial