From: 이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 Date: Tue, 20 Mar 2018 10:53:35 +0000 (+0900) Subject: obs spec file added (#97) X-Git-Tag: 0.1~655 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=816a9ca6cf963295321ff84903ed96b51b2128af;p=platform%2Fcore%2Fml%2Fnnfw.git obs spec file added (#97) --- diff --git a/packaging/nnfw.manifest b/packaging/nnfw.manifest new file mode 100644 index 0000000..e66acbe --- /dev/null +++ b/packaging/nnfw.manifest @@ -0,0 +1,7 @@ + + + + + + + diff --git a/packaging/nnfw.spec b/packaging/nnfw.spec new file mode 100644 index 0000000..c6a48d2 --- /dev/null +++ b/packaging/nnfw.spec @@ -0,0 +1,53 @@ +Name: nnfw +Summary: nnfw +Version: 0.1 +Release: 1 +Group: Development +License: MIT + +Source0: %{name}-%{version}.tar.gz +Source1: %{name}.manifest + +BuildRequires: cmake +BuildRequires: boost-devel + +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +%description +nnfw is a high-performance, on-device neural network framework for Tizen + +%{!?build_type: %define build_type Release} + +%define install_prefix /usr + +%ifarch %{arm} +%define target_arch armv7l +%endif +%ifarch x86_64 +%define target_arch x86_64 +%endif + + +%prep +%setup -q +cp %{SOURCE1} . + +%build +BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{install_prefix} TARGET_ARCH=%{target_arch} HOST_OS=tizen make %{?jobs:-j%jobs} + +%install +BUILD_TYPE=%{build_type} INSTALL_PATH=%{buildroot}%{install_prefix} TARGET_ARCH=%{target_arch} HOST_OS=tizen make install + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%defattr(-,root,root,-) +%{install_prefix}/lib/* +%{install_prefix}/bin/* + +%changelog +* Thu Mar 15 2018 Chunseok Lee +- Initial spec file for nnfw