[spec] Rename tizen packages
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Tue, 25 Feb 2025 05:29:19 +0000 (14:29 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 6 Mar 2025 01:03:20 +0000 (10:03 +0900)
- Rename tizen packages as hal-backend-ml-accelerator-*

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
packaging/hal-backend-ml-accelerator.manifest [new file with mode: 0644]
packaging/hal-backend-ml-accelerator.spec [new file with mode: 0644]
packaging/hal-backend-ml.manifest [deleted file]
packaging/hal-backend-ml.spec [deleted file]

diff --git a/packaging/hal-backend-ml-accelerator.manifest b/packaging/hal-backend-ml-accelerator.manifest
new file mode 100644 (file)
index 0000000..97e8c31
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_"/>
+       </request>
+</manifest>
diff --git a/packaging/hal-backend-ml-accelerator.spec b/packaging/hal-backend-ml-accelerator.spec
new file mode 100644 (file)
index 0000000..ae3f50b
--- /dev/null
@@ -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 (file)
index 97e8c31..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<manifest>
-       <request>
-               <domain name="_"/>
-       </request>
-</manifest>
diff --git a/packaging/hal-backend-ml.spec b/packaging/hal-backend-ml.spec
deleted file mode 100644 (file)
index d39e204..0000000
+++ /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