summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2017-07-03 11:13:03 (GMT)
committerKarol Lewandowski <k.lewandowsk@samsung.com>2017-07-04 10:21:52 (GMT)
commitcb91536511fe9ece8e08878644e90c7444cff77e (patch)
treed2b27184f21cad6f0fd3bd9cfe68eef7847a3a5f
parent4b128f559cc7c7c51804248aadd70eb548c649b2 (diff)
downloadcmocka-tizen_4.0.IoT.p2_release.zip
cmocka-tizen_4.0.IoT.p2_release.tar.gz
cmocka-tizen_4.0.IoT.p2_release.tar.bz2
Change-Id: I0f6792555797b758c2bdca16fb424b2ae83a613c Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
-rw-r--r--.gbs.conf3
-rw-r--r--packaging/cmocka.manifest6
-rw-r--r--packaging/cmocka.spec59
3 files changed, 68 insertions, 0 deletions
diff --git a/.gbs.conf b/.gbs.conf
new file mode 100644
index 0000000..1ec96d2
--- /dev/null
+++ b/.gbs.conf
@@ -0,0 +1,3 @@
+[general]
+upstream_branch = upstream
+upstream_tag = cmocka-${upstreamversion}
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..ad66906
--- /dev/null
+++ b/packaging/cmocka.spec
@@ -0,0 +1,59 @@
+Name: cmocka
+Summary: Library for testing and mocking C code
+Version: 1.1.1
+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
+