How to deal with files that are in source directory and used in spec file while using sfdk shadow build
mode?. For instance, I’m trying to build sailfish-components-webview and there is a script in spec file:
%files
%license LICENSE.txt
to copy a LICENCSE.txt file from source directory to pack it into an rpm. Using a shadow build
I’m getting error:
+ cp -pr LICENSE.txt /home/deploy/installroot/usr/share/licenses/sailfish-components-webview-qt5-1.6.0
cp: cannot stat 'LICENSE.txt': No such file or directory
+ :
+ RPM_EC=0
++ jobs -p
+ exit 0
error: File not found: /home/deploy/installroot/usr/share/licenses/sailfish-components-webview-qt5-1.6.0/LICENSE.txt
The only workaround I’ve found is to change a path in spec file:
%license ./.sfdk/src/LICENSE.txt
Is there any other solution?