Fix build issue 07/293507/1 accepted/tizen/unified/20230531.151947
authorJaehyun Kim <jeik01.kim@samsung.com>
Wed, 31 May 2023 04:34:40 +0000 (13:34 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Wed, 31 May 2023 04:34:40 +0000 (13:34 +0900)
Change-Id: I89732454ea1b6645550f1f645ec7644c2a1ef631
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
packaging/capi-web-url-download.spec

index d822a7a..fe383d4 100755 (executable)
@@ -36,12 +36,12 @@ Summary:  Download library(gcov)
 Group:    Network/Testing
 %description gcov
 gcov objects for coverage test
-%endif
 
 %package unittests
 Summary:    %{name} unittests binary
 %description unittests
 unittests binary
+%endif
 
 %prep
 %setup -q
@@ -68,7 +68,6 @@ builddir=$(basename $PWD)
 gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
 mkdir -p "$gcno_obj_dir"
 find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
-%endif
 
 cat << EOF > run-unittest.sh
 #!/bin/sh
@@ -97,6 +96,7 @@ EOF
 mkdir -p %{buildroot}%{_bindir}/tizen-unittests/%{name}
 install -m 0755 run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests/%{name}/
 cp tests/libdp-interface-mock.so %{buildroot}%{_bindir}/tizen-unittests/%{name}/
+%endif
 
 %check
 %if 0%{?gcov:1}
@@ -130,9 +130,9 @@ genhtml %{name}.info -o out --legend --show-details
 %if 0%{?gcov:1}
 %files gcov
 %{_datadir}/gcov/obj/*
-%endif
 
 %files unittests
 %{_bindir}/url-download-gtest
 %{_bindir}/tizen-unittests/%{name}/run-unittest.sh
-%{_bindir}/tizen-unittests/%{name}/*.so
\ No newline at end of file
+%{_bindir}/tizen-unittests/%{name}/*.so
+%endif