spec: support gbs(1) incremental builds
authorŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 4 Jan 2021 13:41:58 +0000 (14:41 +0100)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 3 Aug 2023 08:46:10 +0000 (17:46 +0900)
commit637edcde4c997d5c6cc81a4fc0f52974711b797c
treee3b3e9a14e993b33516415f0aeb3112dbc7c38e3
parent3200045d4a786ada00bb8abb07aff481dcc1b2c8
spec: support gbs(1) incremental builds

gbs(1) enable incremental builds that are significantly faster, hoewever,
spec files need some adjustments.

+ You can't use -n <name> with %setup
+ There is no point in making mrproper
+ use rsync(1) instead of cp(1)+find(1) to copy devel files

Other changes are:
+ use make headers_install to install headers in the buildroot
+ add _smp_mflags to make(1) things faster

Change-Id: Ia14fbe7acab8b83683f9e07757b4f62a7657b2a5
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
packaging/linux-rpi4.spec