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
This commit is contained in:
parent
94f821acfe
commit
3099e3d60f
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 23 06:30:05 UTC 2023 - Martin Wilck <mwilck@suse.com>
|
||||||
|
|
||||||
|
- 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 <asn@cryptomilk.org>
|
Fri May 5 09:26:51 UTC 2023 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
40
cmocka.spec
40
cmocka.spec
@ -88,13 +88,31 @@ compilers.
|
|||||||
%package -n libcmocka-devel
|
%package -n libcmocka-devel
|
||||||
Summary: Development headers for the cmocka library
|
Summary: Development headers for the cmocka library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: cmake
|
|
||||||
Requires: libcmocka0 = %{version}
|
Requires: libcmocka0 = %{version}
|
||||||
Requires: pkg-config
|
Requires: pkg-config
|
||||||
|
|
||||||
%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 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
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
@ -130,20 +148,18 @@ popd
|
|||||||
%{_libdir}/libcmocka.so.*
|
%{_libdir}/libcmocka.so.*
|
||||||
|
|
||||||
%files -n libcmocka-devel
|
%files -n libcmocka-devel
|
||||||
%if %{with docs}
|
|
||||||
%doc build/doc/html
|
|
||||||
#endif with docs
|
|
||||||
%endif
|
|
||||||
%{_includedir}/cmocka.h
|
%{_includedir}/cmocka.h
|
||||||
%{_includedir}/cmocka_pbc.h
|
%{_includedir}/cmocka_pbc.h
|
||||||
%dir %{_includedir}/cmockery
|
%{_includedir}/cmockery
|
||||||
%{_includedir}/cmockery/cmockery.h
|
|
||||||
%{_includedir}/cmockery/pbc.h
|
|
||||||
%{_libdir}/libcmocka.so
|
%{_libdir}/libcmocka.so
|
||||||
%{_libdir}/pkgconfig/cmocka.pc
|
%{_libdir}/pkgconfig/cmocka.pc
|
||||||
%dir %{_libdir}/cmake/cmocka
|
|
||||||
%{_libdir}/cmake/cmocka/cmocka-config-relwithdebinfo.cmake
|
%if %{with docs}
|
||||||
%{_libdir}/cmake/cmocka/cmocka-config-version.cmake
|
%files -n libcmocka-doc
|
||||||
%{_libdir}/cmake/cmocka/cmocka-config.cmake
|
%doc build/doc/html
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n libcmocka-cmake
|
||||||
|
%{_libdir}/cmake/cmocka
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user