Bump to c-mock 0.4.0 98/287598/1 accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_8.0 accepted/tizen/8.0/unified/20231005.094656 accepted/tizen/unified/20230202.015256 accepted/tizen/unified/20230207.165822 tizen_8.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 1 Feb 2023 06:16:38 +0000 (15:16 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 1 Feb 2023 06:17:17 +0000 (15:17 +0900)
Change-Id: Ic14ccfe3a2923139e6e1ba782df54dd52097bd4c
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/c-mock.manifest [new file with mode: 0644]
packaging/c-mock.spec [new file with mode: 0644]

diff --git a/packaging/c-mock.manifest b/packaging/c-mock.manifest
new file mode 100644 (file)
index 0000000..86dbb26
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_" />
+    </request>
+</manifest>
diff --git a/packaging/c-mock.spec b/packaging/c-mock.spec
new file mode 100644 (file)
index 0000000..ce0e44f
--- /dev/null
@@ -0,0 +1,70 @@
+Name:       c-mock
+Summary:    %{name}
+Version:    0.4.0
+Release:    0
+
+# ==========================================================
+License:    BSD-2-Clause
+# ==========================================================
+Url:        https://github.com/hjagodzinski/C-Mock
+Group:      Definition/Libraries/C
+Source0:    %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+
+# ==========================================================
+# BuildRequires
+# specifies build-time dependencies for the package
+# ==========================================================
+BuildRequires: pkgconfig(gmock)
+
+%description
+C Mock is Google Mock's extension allowing a function mocking.
+Only global (non-static) functions mocking is supported.
+
+%package devel
+Summary:  Google Mock Extension for function mocking (development)
+Group:    System/Libraries
+Requires: pkgconfig(gmock)
+
+%description devel
+Header and Configuration of C-Mock - Google Mock Extension for function mocking
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+%{make_build}
+
+%install
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_includedir}
+%{__make} PREFIX=%{buildroot}%{_prefix} install
+
+cat > c-mock.pc << EOF
+includedir=%{_includedir}/cmock
+
+Name: c-mock
+Version: %{version}
+Description: Google Mock Extension for Function Mocking
+Libs:
+Cflags: -I\${includedir}
+EOF
+
+install -D -m 644 c-mock.pc %{buildroot}/%{_libdir}/pkgconfig/c-mock.pc
+
+%check
+%{__make} test
+
+%clean
+
+%files devel
+%license LICENSE.md
+%manifest %{name}.manifest
+%{_bindir}/cmock-config
+%{_includedir}/cmock/cmock-function-class-mockers.h
+%{_includedir}/cmock/cmock-function-mockers.h
+%{_includedir}/cmock/cmock-internal.h
+%{_includedir}/cmock/cmock-spec-builders.h
+%{_includedir}/cmock/cmock.h
+%{_libdir}/pkgconfig/c-mock.pc