diff --git a/timeshift.spec b/timeshift.spec index 82a4b89..7ea3143 100644 --- a/timeshift.spec +++ b/timeshift.spec @@ -8,7 +8,7 @@ Name: timeshift Version: 18.1.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: System restore tool for Linux License: GPLv3+ or LGPLv3+ @@ -60,8 +60,21 @@ sed -i 's|-X -Wl,-rpath,/usr/share/${app_name}/libs||' src/makefile for flag in %{optflags} %{?__global_ldflags}; do VALAFLAGS="$VALAFLAGS -X $flag" done + +# Inject Fedora compiler flags and the debug option to valac. +# Just dump the c-sources. +sed -i "s|valac|& --ccode --save-temps -g $VALAFLAGS|" src/makefile +%make_build + +# Move generated c-sources into flat tree so it can be picked +# up for -debugsource. +for f in `find src/ -type f -name '*.c'`; do + mv -f $f src/ +done + # Inject Fedora compiler flags and the debug option to valac -sed -i "s|valac|valac --save-temps -g $VALAFLAGS|" src/makefile +# Build the binaries. +sed -i "s|valac --ccode|valac|" src/makefile %make_build @@ -109,6 +122,9 @@ fi %changelog +* Sun Jan 28 2018 Björn Esser - 18.1.1-4 +- Generate useful -debugsource package + * Sun Jan 28 2018 Björn Esser - 18.1.1-3 - Properly apply system LDFLAGS and thus enable full hardening