Split out a cmocka-doc package

resolves: rhbz#1915369
This commit is contained in:
Andreas Schneider 2021-06-24 14:53:42 +02:00
parent 7ecaa4beef
commit 534e821e06

View File

@ -1,6 +1,6 @@
Name: cmocka
Version: 1.1.5
Release: 9%{?dist}
Release: 10%{?dist}
License: ASL 2.0
Summary: An elegant unit testing framework for C with support for mock objects
@ -80,6 +80,14 @@ Conflicts: cmockery2-devel
%description -n libcmocka-devel
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
%autosetup -p1
@ -115,7 +123,6 @@ ln -s libcmocka.so %{buildroot}%{_libdir}/libcmockery.so
%{_libdir}/libcmocka-static.a
%files -n libcmocka-devel
%doc %{__cmake_builddir}/doc/html
%{_includedir}/cmocka.h
%{_includedir}/cmocka_pbc.h
%{_includedir}/cmockery/cmockery.h
@ -126,7 +133,13 @@ ln -s libcmocka.so %{buildroot}%{_libdir}/libcmockery.so
%{_libdir}/cmake/cmocka/cmocka-config-version.cmake
%{_libdir}/cmake/cmocka/cmocka-config.cmake
%files -n cmocka-doc
%doc %{__cmake_builddir}/doc/html
%changelog
* 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