Fix build error without gtests 47/193747/1 accepted/tizen/unified/20181127.073258 submit/tizen/20181126.011146
authorjiyong.min <jiyong.min@samsung.com>
Mon, 26 Nov 2018 02:10:06 +0000 (11:10 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Mon, 26 Nov 2018 02:10:06 +0000 (11:10 +0900)
Change-Id: I7eb22626683c57234d272302228beb831093d434

packaging/libmm-fileinfo.spec

index a4d00c1..e0397ef 100644 (file)
@@ -68,9 +68,11 @@ CFLAGS="${CFLAGS} -D_MM_PROJECT_FLOATER -DEXPORT_API=\"__attribute__((visibility
 
 mkdir -p %{buildroot}%{_sysconfdir}/multimedia
 cp -rf %{_builddir}/%{name}-%{version}/mm_file_config.ini %{buildroot}%{_sysconfdir}/multimedia/mm_file_config.ini
+%if 0%{?gtests:1}
 mkdir -p %{buildroot}%{_bindir}
 cp -rf %{_builddir}/%{name}-%{version}/unittest/*.mp4 %{buildroot}%{_bindir}/
 cp -rf %{_builddir}/%{name}-%{version}/unittest/*.mp3 %{buildroot}%{_bindir}/
+%endif
 
 %post -p /sbin/ldconfig