diff options
-rw-r--r-- | packaging/sync-manager.spec | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/packaging/sync-manager.spec b/packaging/sync-manager.spec index eabb55d..f2f43ce 100644 --- a/packaging/sync-manager.spec +++ b/packaging/sync-manager.spec @@ -2,7 +2,7 @@ %global __provides_exclude_from ^.*\\.extension-calendar Name: sync-service -Version: 0.3.42 +Version: 0.3.43 Release: 1 License: Apache-2.0 Summary: Sync manager daemon @@ -92,16 +92,14 @@ cmake \ -DVERSION=%{version} make %{?jobs:-j%jobs} -%if 0%{?gcov:1} -mkdir -p gcov-obj -find . -name '*.gcno' -exec cp '{}' gcov-obj ';' -%endif %install %make_install %if 0%{?gcov:1} -mkdir -p %{buildroot}%{_datadir}/gcov/obj -install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj +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 mkdir -p %{buildroot}%{_unitdir_user}/delayed.target.wants |