summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2018-02-26 18:01:10 +0900
committerInki Dae <inki.dae@samsung.com>2018-02-27 18:11:38 +0900
commit04f5a66752b80da3eecf89eaed8818ec03ece007 (patch)
tree22753b88ff66b1931d97ef79b97cfc7c5aa822d2
parentaae71e498ab842c6f92bcc23fc668423615a4d65 (diff)
downloadcaffeonacl-04f5a66752b80da3eecf89eaed8818ec03ece007.tar.gz
caffeonacl-04f5a66752b80da3eecf89eaed8818ec03ece007.tar.bz2
caffeonacl-04f5a66752b80da3eecf89eaed8818ec03ece007.zip
packaging: add spec file for Tizen
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--packaging/libcaffeonacl.manifest5
-rw-r--r--packaging/libcaffeonacl.spec128
2 files changed, 133 insertions, 0 deletions
diff --git a/packaging/libcaffeonacl.manifest b/packaging/libcaffeonacl.manifest
new file mode 100644
index 00000000..017d22d3
--- /dev/null
+++ b/packaging/libcaffeonacl.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/libcaffeonacl.spec b/packaging/libcaffeonacl.spec
new file mode 100644
index 00000000..c3099d2b
--- /dev/null
+++ b/packaging/libcaffeonacl.spec
@@ -0,0 +1,128 @@
+Name: libcaffeonacl
+Version: v0.5.0
+Release: 0
+License: MIT
+Url: https://github.com/OAID/CaffeOnACL
+Summary: Caffe Machine Learning library on ARM Compute Library
+Group: Machine Learning Framework/Libraries
+Source0: %{name}-%{version}.tar.bz2
+Source1001: %name.manifest
+ExclusiveArch: %{arm} aarch64
+
+BuildRequires: python-devel
+BuildRequires: python-numpy-devel
+BuildRequires: protobuf-devel
+BuildRequires: boost-devel
+BuildRequires: gflags-devel
+BuildRequires: glog-devel
+BuildRequires: libdlog
+BuildRequires: cblas-devel
+BuildRequires: hdf5-devel
+BuildRequires: opencv-devel
+BuildRequires: lmdb-devel
+BuildRequires: leveldb-devel
+BuildRequires: snappy-devel
+BuildRequires: openblas-devel
+BuildRequires: libarmcl-devel
+BuildRequires: opengl-es-mali-midgard
+BuildRequires: python-PyYAML
+
+%description
+CaffeOnACL is a project that is maintained by OPEN AI LAB, it uses Arm Compute Library (NEON+GPU) to speed up Caffe and provide utilities to debug, profile and tune application performance.
+
+%ifarch aarch64
+%package -n %{name}-release-aarch64
+%else
+%package -n %{name}-release
+%endif
+Summary: CaffeOnACL Library
+
+%ifarch aarch64
+%description -n %{name}-release-aarch64
+%else
+%description -n %{name}-release
+%endif
+Summary: CaffeOnACL Library
+
+%ifarch aarch64
+%package -n %{name}-devel-aarch64
+%else
+%package -n %{name}-devel
+%endif
+Summary: Userspace interface and Library to CaffeOnACL
+
+%ifarch aarch64
+%description -n %{name}-devel-aarch64
+%else
+%description -n %{name}-devel
+%endif
+Summary: Userspace interface and Library to CaffeOnACL
+
+%ifarch aarch64
+%package -n %{name}-tools-aarch64
+%else
+%package -n %{name}-tools
+%endif
+Summary: Sample applications for CaffeOnACL
+
+%ifarch aarch64
+%description -n %{name}-tools-aarch64
+%else
+%description -n %{name}-tools
+%endif
+Summary: Sample applications for CaffeOnACL
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+make proto
+make all -j 5
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%install
+make distribute
+
+mkdir -p %{buildroot}%{_libdir}
+mkdir -p %{buildroot}%{_libdir}/distribute/include
+mkdir -p %{buildroot}%{_libdir}/distribute/bin
+mkdir -p %{buildroot}%{_libdir}/distribute/proto
+mkdir -p %{buildroot}%{_libdir}/distribute/python
+
+cp -r %{_builddir}/%{name}-%{version}/distribute/lib/lib* %{buildroot}%{_libdir}/
+cp -r %{_builddir}/%{name}-%{version}/distribute/include/* %{buildroot}%{_libdir}/distribute/include/
+cp -r %{_builddir}/%{name}-%{version}/distribute/bin/* %{buildroot}%{_libdir}/distribute/bin/
+cp -r %{_builddir}/%{name}-%{version}/distribute/proto/* %{buildroot}%{_libdir}/distribute/proto/
+cp -r %{_builddir}/%{name}-%{version}/distribute/python/* %{buildroot}%{_libdir}/distribute/python/
+
+%ifarch aarch64
+%files -n %{name}-release-aarch64
+%else
+%files -n %{name}-release
+%endif
+%manifest %{name}.manifest
+%{_libdir}/lib*
+
+%ifarch aarch64
+%files -n %{name}-devel-aarch64
+%else
+%files -n %{name}-devel
+%endif
+%manifest %{name}.manifest
+%{_libdir}/lib*
+%{_libdir}/distribute/include/*
+
+%ifarch aarch64
+%files -n %{name}-tools-aarch64
+%else
+%files -n %{name}-tools
+%endif
+%manifest %{name}.manifest
+%{_libdir}/distribute/bin/*
+%{_libdir}/distribute/proto/*
+%{_libdir}/distribute/python/*
+