Compare commits
9 Commits
Author | SHA256 | Date | |
---|---|---|---|
54b2545096 | |||
|
f9fada635a | ||
|
69b795c471 | ||
|
640d81b271 | ||
|
38313c6fce | ||
8bb104dcaa | |||
|
94ccfd53b4 | ||
|
76736e3df1 | ||
|
3099e3d60f |
@@ -2,6 +2,8 @@ libcmocka0
|
||||
provides "libcmocka-<targettype> = <version>"
|
||||
obsoletes "libmockery-<targettype> <= <version>"
|
||||
libcmocka-devel
|
||||
+/usr/lib(64)?/cmake/cmocka/.*
|
||||
requires -"libcmocka-<targettype>"
|
||||
requires "libcmocka0-<targettype> = <version>"
|
||||
libcmocka-cmake
|
||||
+/usr/lib(64)?/cmake/cmocka/.*
|
||||
requires "libcmocka-devel-<targettype> = <version>"
|
||||
|
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 7 11:09:17 UTC 2024 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Fix baselibs.conf for libcmocka-cmake subpackage
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
43
cmocka.spec
43
cmocka.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package cmocka
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -88,13 +88,32 @@ 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
|
||||
Requires: (libcmocka-cmake if cmake)
|
||||
|
||||
%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:%{_defaultdocdir}/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
|
||||
Requires: libcmocka-devel = %{version}
|
||||
Provides: libcmocka-devel:%{_libdir}/cmake/cmocka
|
||||
|
||||
%description -n libcmocka-cmake
|
||||
cmake support for developing with the cmocka unit testing library.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
@@ -130,20 +149,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
|
||||
|
Reference in New Issue
Block a user