From f95ece66bd42c1a283eb796c6218b88fbc4fc000 Mon Sep 17 00:00:00 2001 From: Inki Dae Date: Mon, 26 Feb 2018 07:54:13 +0900 Subject: packaging: change package name The name, libacl, is conflicted with one which is used by btrfs.progs package so this patch changes the name to 'libarmcl' Change-Id: I313e12597cbffdbc6eddbdfb37328fedc590c225 Signed-off-by: Inki Dae --- packaging/libacl.manifest | 5 -- packaging/libacl.spec | 170 -------------------------------------------- packaging/libarmcl.manifest | 5 ++ packaging/libarmcl.spec | 170 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 175 insertions(+), 175 deletions(-) delete mode 100644 packaging/libacl.manifest delete mode 100644 packaging/libacl.spec create mode 100644 packaging/libarmcl.manifest create mode 100644 packaging/libarmcl.spec diff --git a/packaging/libacl.manifest b/packaging/libacl.manifest deleted file mode 100644 index 017d22d3a..000000000 --- a/packaging/libacl.manifest +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packaging/libacl.spec b/packaging/libacl.spec deleted file mode 100644 index 5348a963a..000000000 --- a/packaging/libacl.spec +++ /dev/null @@ -1,170 +0,0 @@ -Name: libacl -Version: v17.12 -Release: 0 -License: MIT -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 -ExclusiveArch: %{arm} aarch64 - -BuildRequires: python3-base -BuildRequires: python -BuildRequires: scons - -%define OPEN_CL_SUPPORT 1 -%define NEON_SUPPORT 1 -%define BENCHMARK_TEST 1 - -%description -The ARM Computer Vision and Machine Learning library is a set of functions optimised for both ARM CPUs and GPUs using SIMD technologies - -%ifarch aarch64 -%package -n %{name}-release-aarch64 -%else -%package -n %{name}-release -%endif -Summary: ARM Compute Library file - -%ifarch aarch64 -%description -n %{name}-release-aarch64 -%else -%description -n %{name}-release -%endif -Summary: ARM Compute Library file - -%ifarch aarch64 -%package -n %{name}-devel-aarch64 -%else -%package -n %{name}-devel -%endif -Summary: Userspace interface to ARM Compute Library - -%ifarch aarch64 -%description -n %{name}-devel-aarch64 -%else -%description -n %{name}-devel -%endif -Summary: Userspace interface to ARM Compute Library - -%ifarch aarch64 -%package -n %{name}-tools-aarch64 -%else -%package -n %{name}-tools -%endif -Summary: Sample application and benchmark binaries to test ARM Compute Library - -%ifarch aarch64 -%description -n %{name}-tools-aarch64 -%else -%description -n %{name}-tools -%endif -Summary: Sample application and benchmark binaries to test ARM Compute Library - -%prep -%setup -q -cp %{SOURCE1001} . - -%build -echo %{_builddir} -scons -j8 \ - Werror=0 \ - debug=0 \ -%if 0%{?NEON_SUPPORT} == 1 - neon=1 \ -%endif -%if 0%{?OPEN_CL_SUPPORT} == 1 - opencl=1 \ -%endif - os=linux \ -%ifarch aarch64 - arch=arm64-v8.2-a \ -%else - arch=armv7a \ -%endif - embed_kernels=1 \ -%if 0%{?BENCHMARK_TEST} == 1 - benchmark_tests=1 -%endif - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - -%install -mkdir -p %{buildroot}%{_libdir} -mkdir -p %{buildroot}%{_libdir}/data -mkdir -p %{buildroot}%{_bindir} -mkdir -p %{buildroot}/usr/include/arm_compute -mkdir -p %{buildroot}/usr/include/support -mkdir -p %{buildroot}/usr/include/CL -mkdir -p %{buildroot}/usr/include/half -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/examples/cl_convolution %{buildroot}%{_bindir} -install -m 644 build/examples/cl_events %{buildroot}%{_bindir} -install -m 644 build/examples/graph_alexnet %{buildroot}%{_bindir} -install -m 644 build/examples/graph_lenet %{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} - -cp -r %{_builddir}/%{name}-%{version}/arm_compute/* %{buildroot}/usr/include/arm_compute/ -cp -r %{_builddir}/%{name}-%{version}/support/* %{buildroot}/usr/include/support/ -cp -r %{_builddir}/%{name}-%{version}/include/CL/* %{buildroot}/usr/include/CL/ -cp -r %{_builddir}/%{name}-%{version}/include/half/* %{buildroot}/usr/include/half/ -cp -r %{_builddir}/%{name}-%{version}/include/libnpy/* %{buildroot}/usr/include/libnpy/ - -%if 0%{?BENCHMARK_TEST} == 1 -install -m 644 %{_builddir}/%{name}-%{version}/build/tests/arm_compute_benchmark %{buildroot}%{_bindir} -cp -r %{_builddir}/%{name}-%{version}/data/* %{buildroot}%{_libdir}/data/ -%endif - -%ifarch aarch64 -%files -n %{name}-release-aarch64 -%else -%files -n %{name}-release -%endif -%manifest %{name}.manifest -%{_libdir}/libarm_compute*.so - -%ifarch aarch64 -%files -n %{name}-devel-aarch64 -%else -%files -n %{name}-devel -%endif -%manifest %{name}.manifest -%{_libdir}/libarm_compute*.so -%{_includedir}/arm_compute/* -%{_includedir}/support/* -%{_includedir}/CL/* -%{_includedir}/half/* -%{_includedir}/libnpy/* - -%ifarch aarch64 -%files -n %{name}-tools-aarch64 -%else -%files -n %{name}-tools -%endif -%manifest %{name}.manifest -%{_bindir}/cl_convolution -%{_bindir}/cl_events -%{_bindir}/graph_alexnet -%{_bindir}/graph_lenet -%{_bindir}/neon_cartoon_effect -%{_bindir}/neoncl_scale_median_gaussian -%{_bindir}/neon_cnn -%{_bindir}/neon_convolution -%{_bindir}/neon_copy_objects -%{_bindir}/neon_scale -%if 0%{?BENCHMARK_TEST} == 1 -%{_bindir}/arm_compute_benchmark -%{_libdir}/data/* -%endif diff --git a/packaging/libarmcl.manifest b/packaging/libarmcl.manifest new file mode 100644 index 000000000..017d22d3a --- /dev/null +++ b/packaging/libarmcl.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/libarmcl.spec b/packaging/libarmcl.spec new file mode 100644 index 000000000..f2716ced2 --- /dev/null +++ b/packaging/libarmcl.spec @@ -0,0 +1,170 @@ +Name: libarmcl +Version: v17.12 +Release: 0 +License: MIT +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 +ExclusiveArch: %{arm} aarch64 + +BuildRequires: python3-base +BuildRequires: python +BuildRequires: scons + +%define OPEN_CL_SUPPORT 1 +%define NEON_SUPPORT 1 +%define BENCHMARK_TEST 1 + +%description +The ARM Computer Vision and Machine Learning library is a set of functions optimised for both ARM CPUs and GPUs using SIMD technologies + +%ifarch aarch64 +%package -n %{name}-release-aarch64 +%else +%package -n %{name}-release +%endif +Summary: ARM Compute Library file + +%ifarch aarch64 +%description -n %{name}-release-aarch64 +%else +%description -n %{name}-release +%endif +Summary: ARM Compute Library file + +%ifarch aarch64 +%package -n %{name}-devel-aarch64 +%else +%package -n %{name}-devel +%endif +Summary: Userspace interface to ARM Compute Library + +%ifarch aarch64 +%description -n %{name}-devel-aarch64 +%else +%description -n %{name}-devel +%endif +Summary: Userspace interface to ARM Compute Library + +%ifarch aarch64 +%package -n %{name}-tools-aarch64 +%else +%package -n %{name}-tools +%endif +Summary: Sample application and benchmark binaries to test ARM Compute Library + +%ifarch aarch64 +%description -n %{name}-tools-aarch64 +%else +%description -n %{name}-tools +%endif +Summary: Sample application and benchmark binaries to test ARM Compute Library + +%prep +%setup -q +cp %{SOURCE1001} . + +%build +echo %{_builddir} +scons -j8 \ + Werror=0 \ + debug=0 \ +%if 0%{?NEON_SUPPORT} == 1 + neon=1 \ +%endif +%if 0%{?OPEN_CL_SUPPORT} == 1 + opencl=1 \ +%endif + os=linux \ +%ifarch aarch64 + arch=arm64-v8.2-a \ +%else + arch=armv7a \ +%endif + embed_kernels=1 \ +%if 0%{?BENCHMARK_TEST} == 1 + benchmark_tests=1 +%endif + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%install +mkdir -p %{buildroot}%{_libdir} +mkdir -p %{buildroot}%{_libdir}/data +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}/usr/include/arm_compute +mkdir -p %{buildroot}/usr/include/support +mkdir -p %{buildroot}/usr/include/CL +mkdir -p %{buildroot}/usr/include/half +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/examples/cl_convolution %{buildroot}%{_bindir} +install -m 644 build/examples/cl_events %{buildroot}%{_bindir} +install -m 644 build/examples/graph_alexnet %{buildroot}%{_bindir} +install -m 644 build/examples/graph_lenet %{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} + +cp -r %{_builddir}/%{name}-%{version}/arm_compute/* %{buildroot}/usr/include/arm_compute/ +cp -r %{_builddir}/%{name}-%{version}/support/* %{buildroot}/usr/include/support/ +cp -r %{_builddir}/%{name}-%{version}/include/CL/* %{buildroot}/usr/include/CL/ +cp -r %{_builddir}/%{name}-%{version}/include/half/* %{buildroot}/usr/include/half/ +cp -r %{_builddir}/%{name}-%{version}/include/libnpy/* %{buildroot}/usr/include/libnpy/ + +%if 0%{?BENCHMARK_TEST} == 1 +install -m 644 %{_builddir}/%{name}-%{version}/build/tests/arm_compute_benchmark %{buildroot}%{_bindir} +cp -r %{_builddir}/%{name}-%{version}/data/* %{buildroot}%{_libdir}/data/ +%endif + +%ifarch aarch64 +%files -n %{name}-release-aarch64 +%else +%files -n %{name}-release +%endif +%manifest %{name}.manifest +%{_libdir}/libarm_compute*.so + +%ifarch aarch64 +%files -n %{name}-devel-aarch64 +%else +%files -n %{name}-devel +%endif +%manifest %{name}.manifest +%{_libdir}/libarm_compute*.so +%{_includedir}/arm_compute/* +%{_includedir}/support/* +%{_includedir}/CL/* +%{_includedir}/half/* +%{_includedir}/libnpy/* + +%ifarch aarch64 +%files -n %{name}-tools-aarch64 +%else +%files -n %{name}-tools +%endif +%manifest %{name}.manifest +%{_bindir}/cl_convolution +%{_bindir}/cl_events +%{_bindir}/graph_alexnet +%{_bindir}/graph_lenet +%{_bindir}/neon_cartoon_effect +%{_bindir}/neoncl_scale_median_gaussian +%{_bindir}/neon_cnn +%{_bindir}/neon_convolution +%{_bindir}/neon_copy_objects +%{_bindir}/neon_scale +%if 0%{?BENCHMARK_TEST} == 1 +%{_bindir}/arm_compute_benchmark +%{_libdir}/data/* +%endif -- cgit v1.2.3