obs spec file added (#97)
author이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 <chunseok.lee@samsung.com>
Tue, 20 Mar 2018 10:53:35 +0000 (19:53 +0900)
committer오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 20 Mar 2018 10:53:35 +0000 (19:53 +0900)
packaging/nnfw.manifest [new file with mode: 0644]
packaging/nnfw.spec [new file with mode: 0644]

diff --git a/packaging/nnfw.manifest b/packaging/nnfw.manifest
new file mode 100644 (file)
index 0000000..e66acbe
--- /dev/null
@@ -0,0 +1,7 @@
+<manifest>
+  <assign>
+  </assign>
+  <request>
+    <domain name="_"/>
+  </request>
+</manifest>
diff --git a/packaging/nnfw.spec b/packaging/nnfw.spec
new file mode 100644 (file)
index 0000000..c6a48d2
--- /dev/null
@@ -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 <chunseok.lee@samsung.com>
+- Initial spec file for nnfw