summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParichay Kapoor <pk.kapoor@samsung.com>2019-12-31 17:29:39 +0900
committerInki Dae <inki.dae@samsung.com>2020-06-29 14:41:01 +0900
commit1c325f5b27de5965a64465caa3d561be4005bfb1 (patch)
treee0168c6243bf27e6d50d9a28a43f9b0c2492689e
parent868c3389a26cd9f9cfff8d5ae1b63e9921c5242f (diff)
downloadarmcl-1c325f5b27de5965a64465caa3d561be4005bfb1.tar.gz
armcl-1c325f5b27de5965a64465caa3d561be4005bfb1.tar.bz2
armcl-1c325f5b27de5965a64465caa3d561be4005bfb1.zip
Dist: updated install files
Updated the files to installed based on opencl or neon support Change-Id: Ic76c61107591c7c7e8afb98a71408c5325baa0c4 Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
-rw-r--r--packaging/libarmcl.spec66
1 files changed, 41 insertions, 25 deletions
diff --git a/packaging/libarmcl.spec b/packaging/libarmcl.spec
index ab138e14d..62f2f6fc5 100644
--- a/packaging/libarmcl.spec
+++ b/packaging/libarmcl.spec
@@ -6,11 +6,11 @@ Url: https://github.com/ARM-software/ComputeLibrary
Summary: The ARM Computer Vision and Machine Learning library
Group: Graphics & UI Framework/Libraries
Source0: %{name}-%{version}.tar.bz2
-Source1001: %name.manifest
+Source1001: %{name}.manifest
ExclusiveArch: %{arm} aarch64
BuildRequires: python3-base
-BuildRequires: python
+BuildRequires: python
BuildRequires: scons
%define OPEN_CL_SUPPORT 1
@@ -21,7 +21,7 @@ BuildRequires: scons
The ARM Computer Vision and Machine Learning library is a set of functions optimised for both ARM CPUs and GPUs using SIMD technologies
%package devel
-Summary: Userspace interface to ARM Compute Library
+Summary: Userspace interface to ARM Compute Library
Requires: %{name} = %{version}-%{release}
%description devel
@@ -45,10 +45,10 @@ scons -j8 \
debug=0 \
%if 0%{?NEON_SUPPORT} == 1
neon=1 \
-%endif
+%endif # NEON_SUPPORT
%if 0%{?OPEN_CL_SUPPORT} == 1
opencl=1 \
-%endif
+%endif # OPEN_CL_SUPPORT
os=linux \
%ifarch aarch64
arch=arm64-v8.2-a \
@@ -77,11 +77,15 @@ mkdir -p %{buildroot}/usr/include/libnpy
install -m 644 build/libarm_compute_core.so %{buildroot}%{_libdir}
install -m 644 build/libarm_compute.so %{buildroot}%{_libdir}
install -m 644 build/libarm_compute_graph.so %{buildroot}%{_libdir}
-install -m 644 build/opencl-1.2-stubs/libOpenCL.so %{buildroot}%{_libdir}
+%if 0%{?OPEN_CL_SUPPORT} == 1
+ install -m 644 build/opencl-1.2-stubs/libOpenCL.so %{buildroot}%{_libdir}
+%endif # OPEN_CL_SUPPORT
-install -m 644 build/examples/cl_convolution %{buildroot}%{_bindir}
-install -m 644 build/examples/cl_events %{buildroot}%{_bindir}
-install -m 644 build/examples/cl_sgemm %{buildroot}%{_bindir}
+%if 0%{?OPEN_CL_SUPPORT} == 1
+ install -m 644 build/examples/cl_convolution %{buildroot}%{_bindir}
+ install -m 644 build/examples/cl_events %{buildroot}%{_bindir}
+ install -m 644 build/examples/cl_sgemm %{buildroot}%{_bindir}
+%endif # OPEN_CL_SUPPORT
install -m 644 build/examples/graph_alexnet %{buildroot}%{_bindir}
install -m 644 build/examples/graph_googlenet %{buildroot}%{_bindir}
install -m 644 build/examples/graph_inception_v3 %{buildroot}%{_bindir}
@@ -94,12 +98,16 @@ install -m 644 build/examples/graph_squeezenet %{buildroot}%{_bindir}
install -m 644 build/examples/graph_squeezenet_v1_1 %{buildroot}%{_bindir}
install -m 644 build/examples/graph_vgg16 %{buildroot}%{_bindir}
install -m 644 build/examples/graph_vgg19 %{buildroot}%{_bindir}
-install -m 644 build/examples/neon_cartoon_effect %{buildroot}%{_bindir}
-install -m 644 build/examples/neoncl_scale_median_gaussian %{buildroot}%{_bindir}
-install -m 644 build/examples/neon_cnn %{buildroot}%{_bindir}
-install -m 644 build/examples/neon_convolution %{buildroot}%{_bindir}
-install -m 644 build/examples/neon_copy_objects %{buildroot}%{_bindir}
-install -m 644 build/examples/neon_scale %{buildroot}%{_bindir}
+%if 0%{?NEON_SUPPORT} == 1
+ install -m 644 build/examples/neon_cartoon_effect %{buildroot}%{_bindir}
+%if 0%{?OPEN_CL_SUPPORT} == 1
+ install -m 644 build/examples/neoncl_scale_median_gaussian %{buildroot}%{_bindir}
+%endif # OPEN_CL_SUPPORT
+ install -m 644 build/examples/neon_cnn %{buildroot}%{_bindir}
+ install -m 644 build/examples/neon_convolution %{buildroot}%{_bindir}
+ install -m 644 build/examples/neon_copy_objects %{buildroot}%{_bindir}
+ install -m 644 build/examples/neon_scale %{buildroot}%{_bindir}
+%endif # NEON_SUPPORT
cp -r %{_builddir}/%{name}-%{version}/arm_compute/* %{buildroot}/usr/include/arm_compute/
cp -r %{_builddir}/%{name}-%{version}/support/* %{buildroot}/usr/include/support/
@@ -118,7 +126,9 @@ cp -r %{_builddir}/%{name}-%{version}/data/* %{buildroot}%{_libdir}/data/
%files devel
%manifest %{name}.manifest
-%{_libdir}/libOpenCL.so
+%if 0%{?OPEN_CL_SUPPORT} == 1
+ %{_libdir}/libOpenCL.so
+%endif # OPEN_CL_SUPPORT
%{_includedir}/arm_compute/*
%{_includedir}/support/*
%{_includedir}/CL/*
@@ -127,9 +137,11 @@ cp -r %{_builddir}/%{name}-%{version}/data/* %{buildroot}%{_libdir}/data/
%files tools
%manifest %{name}.manifest
-%{_bindir}/cl_convolution
-%{_bindir}/cl_events
-%{_bindir}/cl_sgemm
+%if 0%{?OPEN_CL_SUPPORT} == 1
+ %{_bindir}/cl_convolution
+ %{_bindir}/cl_events
+ %{_bindir}/cl_sgemm
+%endif # OPEN_CL_SUPPORT
%{_bindir}/graph_alexnet
%{_bindir}/graph_googlenet
%{_bindir}/graph_inception_v3
@@ -142,12 +154,16 @@ cp -r %{_builddir}/%{name}-%{version}/data/* %{buildroot}%{_libdir}/data/
%{_bindir}/graph_squeezenet_v1_1
%{_bindir}/graph_vgg16
%{_bindir}/graph_vgg19
-%{_bindir}/neon_cartoon_effect
-%{_bindir}/neoncl_scale_median_gaussian
-%{_bindir}/neon_cnn
-%{_bindir}/neon_convolution
-%{_bindir}/neon_copy_objects
-%{_bindir}/neon_scale
+%if 0%{?NEON_SUPPORT} == 1
+ %{_bindir}/neon_cartoon_effect
+%if 0%{?OPEN_CL_SUPPORT} == 1
+ %{_bindir}/neoncl_scale_median_gaussian
+%endif # OPEN_CL_SUPPORT
+ %{_bindir}/neon_cnn
+ %{_bindir}/neon_convolution
+ %{_bindir}/neon_copy_objects
+ %{_bindir}/neon_scale
+%endif # NEON_SUPPORT
%if 0%{?BENCHMARK_TEST} == 1
%{_bindir}/arm_compute_benchmark
%{_libdir}/data/*