diff options
author | TizenOpenSource <tizenopensrc@samsung.com> | 2022-12-27 12:08:05 +0900 |
---|---|---|
committer | TizenOpenSource <tizenopensrc@samsung.com> | 2022-12-27 12:08:05 +0900 |
commit | f7d8de20784ed27203541ca44314f93b6a55b2f0 (patch) | |
tree | 390063c913d62ea8f11bed24a3ba183f00f34292 | |
parent | 776729718bf0be3e060a6853acd6bcf513575a87 (diff) | |
download | cmocka-f7d8de20784ed27203541ca44314f93b6a55b2f0.tar.gz cmocka-f7d8de20784ed27203541ca44314f93b6a55b2f0.tar.bz2 cmocka-f7d8de20784ed27203541ca44314f93b6a55b2f0.zip |
Bump to 1.1.5tizen_9.0_m2_releasetizen_8.0_m2_releaseaccepted/tizen/unified/20230111.174517accepted/tizen/9.0/unified/20241030.235815accepted/tizen/8.0/unified/20231005.094704tizen_9.0tizen_8.0tizensandbox/cmocka_1.1.5accepted/tizen_unifiedaccepted/tizen_9.0_unifiedaccepted/tizen_8.0_unified
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
-rw-r--r-- | packaging/cmocka.manifest | 6 | ||||
-rw-r--r-- | packaging/cmocka.spec | 59 |
2 files changed, 65 insertions, 0 deletions
diff --git a/packaging/cmocka.manifest b/packaging/cmocka.manifest new file mode 100644 index 0000000..4819ac2 --- /dev/null +++ b/packaging/cmocka.manifest @@ -0,0 +1,6 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> + diff --git a/packaging/cmocka.spec b/packaging/cmocka.spec new file mode 100644 index 0000000..6af5e7d --- /dev/null +++ b/packaging/cmocka.spec @@ -0,0 +1,59 @@ +Name: cmocka +Summary: Library for testing and mocking C code +Version: 1.1.5 +Release: 0 +License: Apache-2.0 +Group: Development/Testing + +Source0: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest +BuildRequires: cmake + +%description +Framework for writing and using C mock functions on a variety of +platforms + +%package devel +Summary: Development package for cmocka +Group: Development/Libraries +Requires: %{name} = %{version} +BuildRequires: pkg-config + +%description devel +Standard header files for use when developing cmocka based apps + +%prep +%setup -q +cp %{SOURCE1001} . +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_INSTALL_DIR=%{_libdir} ../ + +%build +cd build +make %{?jobs:-j%jobs} + +%install +cd build +%make_install + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%license COPYING +%defattr(-,root,root) +%{_libdir}/libcmocka.so.* + +%files devel +%manifest %{name}.manifest +%defattr(-,root,root) +%{_includedir}/cmocka.h +%{_includedir}/cmocka_pbc.h +%{_libdir}/libcmocka.so +%{_libdir}/pkgconfig/cmocka.pc +%{_libdir}/cmake/cmocka/cmocka-config-version.cmake +%{_libdir}/cmake/cmocka/cmocka-config.cmake + |