--- /dev/null
+Name: hal-backend-ml-accelerator
+Summary: ML HAL backend drivers for various targets
+Version: 0.0.1
+Release: 0
+Group: Machine Learning/ML Framework
+License: Apache-2.0
+Source0: %{name}-%{version}.tar.gz
+
+BuildRequires: cmake
+BuildRequires: pkgconfig(hal-rootstrap)
+
+# For DA
+%if 0%{?_with_da_profile}
+
+## For meson board
+%if 0%{?_with_meson64}
+%define vivante_support 1
+BuildRequires: pkgconfig(ovxlib)
+BuildRequires: pkgconfig(amlogic-vsi-npu-sdk)
+%endif
+
+## For qrb board
+%if 0%{?_with_qrb4210}
+%define snpe_support 1
+BuildRequires: snpe-devel
+%endif
+
+%endif # For DA
+
+# Let's disable rootstrap checker for now. It complains that ovxlib, amlogic-vsi-npu-sdk, snpe-devel should be not used.
+%define disable_hal_rootstrap_checker 1
+
+
+%description
+ML HAL backend drivers for various targets
+
+
+# Config vivante
+%if 0%{?vivante_support}
+%package vivante
+Summary: hal-backend-ml-accelerator for vivante
+%description vivante
+%define enable_vivante -DENABLE_VIVANTE=ON
+%endif
+
+# Config snpe
+%if 0%{?snpe_support}
+%package snpe
+Summary: hal-backend-ml-accelerator for snpe
+Requires: snpe
+%description snpe
+%define enable_snpe -DENABLE_SNPE=ON
+%endif
+
+
+%prep
+%setup -q
+
+%build
+%cmake \
+ -DCMAKE_HAL_LIBDIR_PREFIX=%{_hal_libdir} \
+ -DCMAKE_HAL_LICENSEDIR_PREFIX=%{_hal_licensedir} \
+ %{?enable_vivante} \
+ %{?enable_snpe} \
+ .
+
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+%if 0%{?vivante_support}
+%files vivante
+%manifest packaging/hal-backend-ml-accelerator.manifest
+%license LICENSE
+%{_hal_libdir}/libhal-backend-ml-vivante.so
+%endif
+
+%if 0%{?snpe_support}
+%files snpe
+%manifest packaging/hal-backend-ml-accelerator.manifest
+%license LICENSE
+%{_hal_libdir}/libhal-backend-ml-snpe.so
+%endif
+++ /dev/null
-Name: hal-backend-ml
-Summary: ML HAL backend drivers for various targets
-Version: 0.0.1
-Release: 0
-Group: Machine Learning/ML Framework
-License: Apache-2.0
-Source0: %{name}-%{version}.tar.gz
-
-BuildRequires: cmake
-BuildRequires: pkgconfig(hal-rootstrap)
-
-# For DA
-%if 0%{?_with_da_profile}
-
-## For meson board
-%if 0%{?_with_meson64}
-%define vivante_support 1
-BuildRequires: pkgconfig(ovxlib)
-BuildRequires: pkgconfig(amlogic-vsi-npu-sdk)
-%endif
-
-## For qrb board
-%if 0%{?_with_qrb4210}
-%define snpe_support 1
-BuildRequires: snpe-devel
-%endif
-
-%endif # For DA
-
-# Let's disable rootstrap checker for now. It complains that ovxlib, amlogic-vsi-npu-sdk, snpe-devel should be not used.
-%define disable_hal_rootstrap_checker 1
-
-
-%description
-ML HAL backend drivers for various targets
-
-
-# Config vivante
-%if 0%{?vivante_support}
-%package vivante
-Summary: hal-backend-ml for vivante
-%description vivante
-%define enable_vivante -DENABLE_VIVANTE=ON
-%endif
-
-# Config snpe
-%if 0%{?snpe_support}
-%package snpe
-Summary: hal-backend-ml for snpe
-Requires: snpe
-%description snpe
-%define enable_snpe -DENABLE_SNPE=ON
-%endif
-
-
-%prep
-%setup -q
-
-%build
-%cmake \
- -DCMAKE_HAL_LIBDIR_PREFIX=%{_hal_libdir} \
- -DCMAKE_HAL_LICENSEDIR_PREFIX=%{_hal_licensedir} \
- %{?enable_vivante} \
- %{?enable_snpe} \
- .
-
-make %{?_smp_mflags}
-
-%install
-%make_install
-
-%post
-/sbin/ldconfig
-
-%postun
-/sbin/ldconfig
-
-%if 0%{?vivante_support}
-%files vivante
-%manifest packaging/hal-backend-ml.manifest
-%license LICENSE
-%{_hal_libdir}/libhal-backend-ml-vivante.so
-%endif
-
-%if 0%{?snpe_support}
-%files snpe
-%manifest packaging/hal-backend-ml.manifest
-%license LICENSE
-%{_hal_libdir}/libhal-backend-ml-snpe.so
-%endif