From: Yongjoo Ahn Date: Tue, 25 Feb 2025 05:29:19 +0000 (+0900) Subject: [spec] Rename tizen packages X-Git-Tag: accepted/tizen/unified/x/20250312.193759~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eababb97b6ea313ec003ec354780acc3fac1e6de;p=platform%2Fhal%2Fbackend%2Fml-accelerator.git [spec] Rename tizen packages - Rename tizen packages as hal-backend-ml-accelerator-* Signed-off-by: Yongjoo Ahn --- diff --git a/packaging/hal-backend-ml-accelerator.manifest b/packaging/hal-backend-ml-accelerator.manifest new file mode 100644 index 0000000..97e8c31 --- /dev/null +++ b/packaging/hal-backend-ml-accelerator.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/hal-backend-ml-accelerator.spec b/packaging/hal-backend-ml-accelerator.spec new file mode 100644 index 0000000..ae3f50b --- /dev/null +++ b/packaging/hal-backend-ml-accelerator.spec @@ -0,0 +1,90 @@ +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 diff --git a/packaging/hal-backend-ml.manifest b/packaging/hal-backend-ml.manifest deleted file mode 100644 index 97e8c31..0000000 --- a/packaging/hal-backend-ml.manifest +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packaging/hal-backend-ml.spec b/packaging/hal-backend-ml.spec deleted file mode 100644 index d39e204..0000000 --- a/packaging/hal-backend-ml.spec +++ /dev/null @@ -1,90 +0,0 @@ -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