diff --git a/cmocka.changes b/cmocka.changes index 65e1fd4..ae51df5 100644 --- a/cmocka.changes +++ b/cmocka.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Aug 23 06:30:05 UTC 2023 - Martin Wilck + +- split off -doc and -cmake subpackages, which aren't necessary + for basic development with cmocka, to avoid pulling in the + entire cmake-full package (38MB) with libcmocka-devel +- minor simplifications in spec file + ------------------------------------------------------------------- Fri May 5 09:26:51 UTC 2023 - Andreas Schneider diff --git a/cmocka.spec b/cmocka.spec index 09c1ae8..14c9e9b 100644 --- a/cmocka.spec +++ b/cmocka.spec @@ -88,13 +88,31 @@ compilers. %package -n libcmocka-devel Summary: Development headers for the cmocka library Group: Development/Libraries/C and C++ -Requires: cmake Requires: libcmocka0 = %{version} Requires: pkg-config %description -n libcmocka-devel Development headers for the cmocka unit testing library. +%package -n libcmocka-doc +Summary: Documentation for the cmocka library +Group: Development/Libraries/C and C++ +Enhances: libcmocka-devel +Provides: libcmocka-devel:/usr/share/doc/packages/libcmocka-devel + +%description -n libcmocka-doc +Documentation for the cmocka unit testing library. + +%package -n libcmocka-cmake +Summary: cmake support for the cmocka library +Group: Development/Libraries/C and C++ +Requires: cmake +Supplements: (libcmocka-devel and cmake) +Provides: libcmocka-devel:/usr/lib64/cmake/cmocka + +%description -n libcmocka-cmake +cmake support for developing with the cmocka unit testing library. + %prep %autosetup -p1 @@ -130,20 +148,18 @@ popd %{_libdir}/libcmocka.so.* %files -n libcmocka-devel -%if %{with docs} -%doc build/doc/html -#endif with docs -%endif %{_includedir}/cmocka.h %{_includedir}/cmocka_pbc.h -%dir %{_includedir}/cmockery -%{_includedir}/cmockery/cmockery.h -%{_includedir}/cmockery/pbc.h +%{_includedir}/cmockery %{_libdir}/libcmocka.so %{_libdir}/pkgconfig/cmocka.pc -%dir %{_libdir}/cmake/cmocka -%{_libdir}/cmake/cmocka/cmocka-config-relwithdebinfo.cmake -%{_libdir}/cmake/cmocka/cmocka-config-version.cmake -%{_libdir}/cmake/cmocka/cmocka-config.cmake + +%if %{with docs} +%files -n libcmocka-doc +%doc build/doc/html +%endif + +%files -n libcmocka-cmake +%{_libdir}/cmake/cmocka %changelog