|
|
@ -1,6 +1,6 @@
|
|
|
|
Name: cmocka
|
|
|
|
Name: cmocka
|
|
|
|
Version: 1.1.5
|
|
|
|
Version: 1.1.5
|
|
|
|
Release: 11%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
License: ASL 2.0
|
|
|
|
Summary: An elegant unit testing framework for C with support for mock objects
|
|
|
|
Summary: An elegant unit testing framework for C with support for mock objects
|
|
|
@ -80,39 +80,36 @@ Conflicts: cmockery2-devel
|
|
|
|
%description -n libcmocka-devel
|
|
|
|
%description -n libcmocka-devel
|
|
|
|
Development headers for the cmocka unit testing library.
|
|
|
|
Development headers for the cmocka unit testing library.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n cmocka-doc
|
|
|
|
|
|
|
|
Summary: API documentation for the cmocka unit testing framework
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n cmocka-doc
|
|
|
|
|
|
|
|
This package provides the API documentation for the cmocka unit testing
|
|
|
|
|
|
|
|
framework.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# This package uses -Wl,-wrap to wrap calls at link time. This is incompatible
|
|
|
|
if test ! -e "obj"; then
|
|
|
|
# with LTO.
|
|
|
|
mkdir obj
|
|
|
|
# Disable LTO
|
|
|
|
fi
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
pushd obj
|
|
|
|
|
|
|
|
|
|
|
|
%cmake \
|
|
|
|
%cmake \
|
|
|
|
-DWITH_STATIC_LIB=ON \
|
|
|
|
-DWITH_STATIC_LIB=ON \
|
|
|
|
-DWITH_CMOCKERY_SUPPORT=ON \
|
|
|
|
-DWITH_CMOCKERY_SUPPORT=ON \
|
|
|
|
-DUNIT_TESTING=ON
|
|
|
|
-DUNIT_TESTING=ON \
|
|
|
|
|
|
|
|
%{_builddir}/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%cmake_build
|
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
|
|
|
%__cmake --build %{__cmake_builddir} --target docs
|
|
|
|
make docs
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
pushd obj
|
|
|
|
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
|
|
|
popd
|
|
|
|
ln -s libcmocka.so %{buildroot}%{_libdir}/libcmockery.so
|
|
|
|
ln -s libcmocka.so %{buildroot}%{_libdir}/libcmockery.so
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets -n libcmocka
|
|
|
|
%ldconfig_scriptlets -n libcmocka
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%ctest
|
|
|
|
pushd obj
|
|
|
|
|
|
|
|
ctest --output-on-failure
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files -n libcmocka
|
|
|
|
%files -n libcmocka
|
|
|
|
%doc AUTHORS README.md ChangeLog
|
|
|
|
%doc AUTHORS README.md ChangeLog
|
|
|
@ -123,6 +120,7 @@ ln -s libcmocka.so %{buildroot}%{_libdir}/libcmockery.so
|
|
|
|
%{_libdir}/libcmocka-static.a
|
|
|
|
%{_libdir}/libcmocka-static.a
|
|
|
|
|
|
|
|
|
|
|
|
%files -n libcmocka-devel
|
|
|
|
%files -n libcmocka-devel
|
|
|
|
|
|
|
|
%doc obj/doc/html
|
|
|
|
%{_includedir}/cmocka.h
|
|
|
|
%{_includedir}/cmocka.h
|
|
|
|
%{_includedir}/cmocka_pbc.h
|
|
|
|
%{_includedir}/cmocka_pbc.h
|
|
|
|
%{_includedir}/cmockery/cmockery.h
|
|
|
|
%{_includedir}/cmockery/cmockery.h
|
|
|
@ -133,41 +131,9 @@ ln -s libcmocka.so %{buildroot}%{_libdir}/libcmockery.so
|
|
|
|
%{_libdir}/cmake/cmocka/cmocka-config-version.cmake
|
|
|
|
%{_libdir}/cmake/cmocka/cmocka-config-version.cmake
|
|
|
|
%{_libdir}/cmake/cmocka/cmocka-config.cmake
|
|
|
|
%{_libdir}/cmake/cmocka/cmocka-config.cmake
|
|
|
|
|
|
|
|
|
|
|
|
%files -n cmocka-doc
|
|
|
|
|
|
|
|
%doc %{__cmake_builddir}/doc/html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.5-11
|
|
|
|
* Thu Dec 07 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.1.5-1
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 24 2021 Andreas Schneider <asn@redhat.com> - 1.1.5-10
|
|
|
|
|
|
|
|
- resolves: rhbz#1915369 - Split out a cmocka-doc package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.5-9
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 05 2020 Andreas Schneider <asn@redhat.com> - 1.1.5-7
|
|
|
|
|
|
|
|
- Correctly build with new cmake macros
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-6
|
|
|
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 1 2020 Jeff Law <law@redhat.com> - 1.1.5-4
|
|
|
|
|
|
|
|
- Disable LTO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Mar 28 2019 Andreas Schneider <asn@redhat.com> - 1.1.5-1
|
|
|
|
* Thu Mar 28 2019 Andreas Schneider <asn@redhat.com> - 1.1.5-1
|
|
|
|
- Update to version 1.1.5
|
|
|
|
- Update to version 1.1.5
|
|
|
|