%define neexampledir %{_libdir}/npu-engine/bin Name: npu-engine Summary: NPU Engine Version: 2.3.16 Release: 0 Group: System Environment/Daemons Packager: MyungJoo Ham License: Proprietary Source0: npu-engine-%{version}.tar.gz Source1001: npu-engine.manifest BuildRequires: meson BuildRequires: ninja BuildRequires: pkg-config BuildRequires: linux-npu-headers # NE-CONF uses iniparser BuildRequires: pkgconfig(iniparser) # utils BuildRequires: ncurses-devel BuildRequires: fuse-devel # test BuildRequires: gtest-devel BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(tinyxml2) BuildRequires: pkgconfig(dlog) %if 0%{?npu_cuse} BuildRequires: libmrpsim-devel %endif %if 0%{?npu_emul} BuildRequires: libmrpsim-devel %define enable_npu_emul -Denable_npu_emul=true %else %define enable_npu_emul -Denable_npu_emul=false %endif %if 0%{?npumgr_plugin} BuildRequires: glib2-devel %define enable_plugin_npumgr -Denable_plugin_npumgr=true %else %define enable_plugin_npumgr -Denable_plugin_npumgr=false %endif %if 0%{?nns_plugin} BuildRequires: nnstreamer-devel %define enable_plugin_nns -Denable_plugin_nns=true %else %define enable_plugin_nns -Denable_plugin_nns=false %endif %global debug_package %{nil} %global __debug_install_post %{nil} %description This provides in-NPU software control daemon, NPU-Engine. %prep %setup -q cp %{SOURCE1001} . %build meson --buildtype=plain --bindir=%{neexampledir} --prefix=%{_prefix} \ --libdir=%{_libdir} --includedir=%{_includedir} \ --datadir=%{_datadir} --sysconfdir=%{_sysconfdir} \ -Dtarget_platform=tizen -Denable_data_manip=true \ %{enable_npu_emul} %{enable_plugin_npumgr} %{enable_plugin_nns} \ build ninja -C build %{?_smp_mflags} %install # Install Core (NPU-Engine) DESTDIR=%{buildroot} ninja install -C build %{?_smp_mflags} %files %manifest npu-engine.manifest %defattr(-,root,root,-) %{_libdir}/libnpu-engine*.so %{_sysconfdir}/npu-engine.ini %package devel Summary: Development Support for NPU Engine Library Requires: npu-engine = %{version}-%{release} %description devel Developmental packages to develop programs using npu-engine. This contains corresponding header files and .pc pkgconfig file. %files devel %manifest npu-engine.manifest %defattr(-,root,root,-) %{_includedir}/npu-engine/*.h %{_libdir}/libnpu-engine*.a %{_libdir}/pkgconfig/*.pc %package example Summary: NPU Engine Example Package Requires: npu-engine = %{version}-%{release} %description example Example application package for NPU Engine, including UnitTests and AppTest with realistic scenarios. %files example %manifest npu-engine.manifest %defattr(-,root,root,-) %{neexampledir}/unittests/* %{neexampledir}/apptests/* %package utils Requires: npu-engine = %{version}-%{release} Summary: NPU Engine Example Package %description utils This provides utility packages for NPU Engine, including metadata extraction of model files. %files utils %manifest npu-engine.manifest %defattr(-,root,root,-) %{neexampledir}/utils/* %if ( 0%{?npumgr_plugin} || 0%{?nns_plugin} ) %package example-plugins Requires: npu-engine = %{version}-%{release} Summary: NPU Engine Example Package for Plugins %description example-plugins Example application package for NPU Engine plugins %files example-plugins %manifest npu-engine.manifest %defattr(-,root,root,-) %if 0%{?npumgr_plugin} %{neexampledir}/plugins/npumgr/* %endif %if 0%{?nns_plugin} %{neexampledir}/plugins/nnstreamer/* %endif %endif %if 0%{?npumgr_plugin} %package -n npumgr-srnpu Summary: Tizen NPU Manager plugin for SR-NPU device family Requires: npu-engine %description -n npumgr-srnpu Reference implementation of Tizen NPU Manager TRIV2 plugin, including a dummy NPU Manager module. %files -n npumgr-srnpu %manifest npu-engine.manifest %{_libdir}/libnpumgr*.so %{_datadir}/dbus-1/system.d/* %endif %if 0%{?nns_plugin} %package -n nnstreamer-trix-engine Summary: NNStreamer subplugin for SR-NPU device family Requires: npu-engine Requires: nnstreamer %description -n nnstreamer-trix-engine Reference implementation of NNStreamer filter subplugin for SR TRIx devices (for now, TRIV2 only). %files -n nnstreamer-trix-engine %manifest npu-engine.manifest %{_prefix}/lib/nnstreamer/filters/libnnstreamer_filter_trix-engine.so %endif %changelog * Thu Aug 12 2021 Dongju Chae - npu-engine v2.3.16 release; See ./CHANGES for details * Fri Aug 06 2021 Dongju Chae - npu-engine v2.3.15 release; See ./CHANGES for details * Wed Jul 21 2021 Dongju Chae - npu-engine v2.3.14 release; See ./CHANGES for details * Mon Jul 12 2021 Dongju Chae - npu-engine v2.3.13 release; See ./CHANGES for details * Fri Jul 02 2021 Dongju Chae - npu-engine v2.3.12 release; See ./CHANGES for details * Fri Jun 25 2021 Dongju Chae - npu-engine v2.3.11 release; See ./CHANGES for details * Fri Jun 18 2021 Dongju Chae - npu-engine v2.3.10 release; See ./CHANGES for details * Thu Jun 03 2021 Dongju Chae - Release of 2.3.9 * Wed May 26 2021 Dongju Chae - Release of 2.3.8 * Fri May 14 2021 Dongju Chae - Release of 2.3.7 * Tue Apr 27 2021 Dongju Chae - Release of 2.3.6 * Tue Apr 06 2021 Dongju Chae - Release of 2.3.5 * Wed Mar 24 2021 Dongju Chae - Release of 2.3.4 * Tue Mar 16 2021 Dongju Chae - Release of 2.3.3 * Fri Feb 19 2021 Dongju Chae - Release of 2.3.2 * Tue Feb 02 2021 Dongju Chae - Release of 2.3.1 * Fri Jan 15 2021 Dongju Chae - Release of 2.3.0 * Mon Jan 04 2021 Dongju Chae - Release of 2.2.10 * Mon Dec 14 2020 Dongju Chae - Release of 2.2.9 * Fri Dec 04 2020 Dongju Chae - Release of 2.2.8 * Mon Nov 23 2020 Dongju Chae - Release of 2.2.7 * Wed Nov 18 2020 Dongju Chae - Release of 2.2.6 * Wed Nov 04 2020 Dongju Chae - Release of 2.2.5 * Wed Oct 21 2020 Dongju Chae - Release of 2.2.4 * Wed Sep 23 2020 Dongju Chae - Release of 2.2.3 * Fri Aug 21 2020 Dongju Chae - Release of 2.2.2 * Wed Aug 19 2020 Dongju Chae - Release of 2.2.1 * Fri Aug 07 2020 Dongju Chae - Release of 2.2.0 * Mon Jul 06 2020 Dongju Chae - Release of 2.0.5 * Fri Jun 19 2020 Dongju Chae - Release of 2.0.4 * Wed Jun 17 2020 Dongju Chae - Release of 2.0.2 * Tue May 26 2020 Dongju Chae - Release of 2.0.1 * Fri May 15 2020 Dongju Chae - Release of 2.0.0 * Tue Mar 10 2020 Dongju Chae - Release of 1.2.0 * Fri Mar 06 2020 Dongju Chae - Release of 1.1.4 * Thu Mar 05 2020 Dongju Chae - Release of 1.1.3 * Tue Mar 03 2020 Dongju Chae - Release of 1.1.2 * Mon Mar 02 2020 Dongju Chae - Release of 1.1.1 * Fri Feb 21 2020 Dongju Chae - Release of 1.1.0 * Wed Feb 19 2020 Dongju Chae - Release of 1.0.1 * Fri Feb 14 2020 Dongju Chae - Release of 1.0.0 * Fri Feb 07 2020 Dongju Chae - Release of 0.0.7 * Tue Jan 07 2020 Dongju Chae - Release of 0.0.6 * Tue Dec 17 2019 Dongju Chae - Release of 0.0.5 * Thu Nov 28 2019 Wook Song - Release of 0.0.4 * Wed Nov 27 2019 Wook Song - Release of 0.0.3 * Fri Nov 22 2019 Dongju Chae - Release of 0.0.2