From 816a9ca6cf963295321ff84903ed96b51b2128af Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=EC=B6=98=EC=84=9D/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Senior=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Tue, 20 Mar 2018 19:53:35 +0900 Subject: [PATCH] obs spec file added (#97) --- packaging/nnfw.manifest | 7 +++++++ packaging/nnfw.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 packaging/nnfw.manifest create mode 100644 packaging/nnfw.spec 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 -- 2.7.4