From 3099e3d60fca1f32b1ad02f4a7ecde10574c8935daaf5d3e7d5cbb0bb0ae34c3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 23 Aug 2023 07:58:14 +0000 Subject: [PATCH] Accepting request 1105410 from home:mwilck:branches:devel:libraries:c_c++ - 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 OBS-URL: https://build.opensuse.org/request/show/1105410 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cmocka?expand=0&rev=56 --- cmocka.changes | 8 ++++++++ cmocka.spec | 40 ++++++++++++++++++++++++++++------------ 2 files changed, 36 insertions(+), 12 deletions(-) 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