Source1: %{name}.manifest
Source1001: %{external_ade_archive}.tar.gz
Source1002: %{external_ngraph_archive}.tar.gz
+Source1003: libinference-engine.pc.in
Patch0: 0001-CMake-Do-not-call-get_linux_name-when-LINUX_OS_NAME-.patch
Patch1: 0002-CMake-Add-a-variable-to-resolve-dependency-on-TBB-us.patch
BuildRequires: cmake
cp %{SOURCE1} .
cp %{SOURCE1001} ./inference-engine/thirdparty
cp %{SOURCE1002} ./inference-engine/thirdparty
+cp %{SOURCE1003} .
pushd inference-engine
pushd thirdparty
tar zxf %{external_ade_archive}.tar.gz
%{__make} %{?_smp_mflags}
popd
popd
+sed -i 's|@VERSION@|%{version}|g' libinference-engine.pc.in
+sed -i 's|@PREFIX@|%{_prefix}|g' libinference-engine.pc.in
+sed -i 's|@LIB_INSTALL_DIR@|%{_libdir}|g' libinference-engine.pc.in
+sed -i 's|@INCLUDE_INSTALL_DIR@|%{_includedir}|g' libinference-engine.pc.in
%install
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_libdir}/tbb
+mkdir -p %{buildroot}%{_libdir}/pkgconfig
+cp libinference-engine.pc.in %{buildroot}%{_libdir}/pkgconfig/libinference-engine.pc
+
pushd inference-engine/bin/%{install_arch}/Release
install -m 644 lib/*.so %{buildroot}%{_libdir}
install -m 644 lib/*.xml %{buildroot}%{_libdir}
install -m 644 lib/*.a %{buildroot}%{_libdir}/tbb
popd
+
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_includedir}/builders
mkdir -p %{buildroot}%{_includedir}/cpp
%manifest %{name}.manifest
%license LICENSE
%{_libdir}/tbb/*.a
+%{_libdir}/pkgconfig/libinference-engine.pc
%{_includedir}/*