packaging: Add packaging for generating RPM package 97/137097/1 accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix sandbox/backup/cmocka_1.1.1_20221227 tizen_4.0 tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/4.0/unified/20170816.013514 accepted/tizen/4.0/unified/20170828.222418 accepted/tizen/5.0/unified/20181102.024057 accepted/tizen/5.5/unified/20191031.004702 accepted/tizen/5.5/unified/mobile/hotfix/20201027.062459 accepted/tizen/5.5/unified/wearable/hotfix/20201027.102659 accepted/tizen/6.0/unified/20201030.104412 accepted/tizen/6.0/unified/hotfix/20201102.235931 accepted/tizen/6.5/unified/20211028.223301 accepted/tizen/7.0/unified/20221110.063320 accepted/tizen/7.0/unified/hotfix/20221116.110646 accepted/tizen/unified/20170705.163442 submit/tizen/20170705.094846 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100005 submit/tizen_5.0/20181101.000006 submit/tizen_5.5/20191031.000006 submit/tizen_5.5_mobile_hotfix/20201026.185106 submit/tizen_5.5_wearable_hotfix/20201026.184306 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 submit/tizen_6.5/20211028.163301 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Mon, 3 Jul 2017 11:13:03 +0000 (13:13 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 4 Jul 2017 10:21:52 +0000 (12:21 +0200)
Change-Id: I0f6792555797b758c2bdca16fb424b2ae83a613c
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
.gbs.conf [new file with mode: 0644]
packaging/cmocka.manifest [new file with mode: 0644]
packaging/cmocka.spec [new file with mode: 0644]

diff --git a/.gbs.conf b/.gbs.conf
new file mode 100644 (file)
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 (file)
index 0000000..4819ac2
--- /dev/null
@@ -0,0 +1,6 @@
+<manifest>
+  <request>
+     <domain name="_"/>
+  </request>
+</manifest>
+
diff --git a/packaging/cmocka.spec b/packaging/cmocka.spec
new file mode 100644 (file)
index 0000000..ad66906
--- /dev/null
@@ -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
+