summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2017-07-03 13:13:03 +0200
committerKarol Lewandowski <k.lewandowsk@samsung.com>2017-07-04 12:21:52 +0200
commitcb91536511fe9ece8e08878644e90c7444cff77e (patch)
treed2b27184f21cad6f0fd3bd9cfe68eef7847a3a5f /packaging
parent4b128f559cc7c7c51804248aadd70eb548c649b2 (diff)
downloadcmocka-accepted/tizen_4.0_unified.tar.gz
cmocka-accepted/tizen_4.0_unified.tar.bz2
cmocka-accepted/tizen_4.0_unified.zip
packaging: Add packaging for generating RPM packagetizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasetizen_5.5.m2_releasetizen_4.0.m2_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_6.5/20211028.163301submit/tizen_6.0_hotfix/20201103.115101submit/tizen_6.0_hotfix/20201102.192901submit/tizen_6.0/20201029.205501submit/tizen_5.5_wearable_hotfix/20201026.184306submit/tizen_5.5_mobile_hotfix/20201026.185106submit/tizen_5.5/20191031.000006submit/tizen_5.0/20181101.000006submit/tizen_4.0/20170828.100005submit/tizen_4.0/20170811.094300submit/tizen/20170705.094846accepted/tizen/unified/20170705.163442accepted/tizen/7.0/unified/hotfix/20221116.110646accepted/tizen/7.0/unified/20221110.063320accepted/tizen/6.5/unified/20211028.223301accepted/tizen/6.0/unified/hotfix/20201102.235931accepted/tizen/6.0/unified/20201030.104412accepted/tizen/5.5/unified/wearable/hotfix/20201027.102659accepted/tizen/5.5/unified/mobile/hotfix/20201027.062459accepted/tizen/5.5/unified/20191031.004702accepted/tizen/5.0/unified/20181102.024057accepted/tizen/4.0/unified/20170828.222418accepted/tizen/4.0/unified/20170816.013514tizen_7.0_hotfixtizen_7.0tizen_6.5tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0tizen_4.0sandbox/backup/cmocka_1.1.1_20221227accepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unifiedaccepted/tizen_4.0_unified
Change-Id: I0f6792555797b758c2bdca16fb424b2ae83a613c Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/cmocka.manifest6
-rw-r--r--packaging/cmocka.spec59
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..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
+