Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
+%ifarch arm armv7l aarch64
BuildRequires: cmake
BuildRequires: boost-devel
BuildRequires: gtest-devel
BuildRequires: tensorflow-lite-devel
+%endif
%ifarch aarch64
BuildRequires: libarmcl-devel-aarch64
cp %{SOURCE1} .
%build
+%ifarch arm armv7l aarch64
%{build_options} make %{?jobs:-j%jobs}
+%endif
%install
+%ifarch arm armv7l aarch64
%{build_options} make install
%if %{coverage_build} == 0
tar -zxf %{buildroot}%{test_install_prefix}/coverage-suite.tar.gz -C %{buildroot}%{test_install_prefix}
rm -rf %{buildroot}%{test_install_prefix}/coverage-suite.tar.gz
%endif
+%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
+%ifarch arm armv7l aarch64
%{install_prefix}/lib/*
%exclude %{install_prefix}/bin/*
%exclude %{install_prefix}/unittest/*
+%endif
%files test
%manifest %{name}.manifest
%defattr(-,root,root,-)
+%ifarch arm armv7l aarch64
%{test_install_prefix}/*
+%endif
%changelog
* Thu Mar 15 2018 Chunseok Lee <chunseok.lee@samsung.com>