SFDK - shadow build issue

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?

There is a clue in the “Limitations related to shadow builds” paragraph of sfdk’s built-in help, that the

build and install procedure must be fully realized using qmake (or CMake or GNU Automake) with no additional steps implemented at RPM SPEC file level.

I.e., handle installation of LICENSE.txt in qmake .pro files and omit use of the %license macro in the RPM .spec file.

Thank you for reply, I missed that obviously. That explains another issue I have.