2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 10:39:23 +00:00

Carry over license content from donor rpms

This commit is contained in:
Jarrod Johnson 2022-04-25 13:52:36 -04:00
parent 2f8846ee75
commit 71a698f771

View File

@ -15,12 +15,23 @@ find . -type f -exec rpm -qf /{} \; 2> /dev/null | grep -v 'not owned' | sort -u
popd
rm -rf $tdir
cp $tfile rpmlist
cp confluent-genesis.spec confluent-genesis-out.spec
echo %license >> confluent-genesis-out.spec
for r in $(cat rpmlist); do
#rpm -qi $r | grep ^License|sed -e 's/^.*:/${r}:/' >> licenselist
for l in $(rpm -qL $r); do
lo=${l#/usr/share/}
mkdir -p licenses/$(dirname $lo)
cp $l $lo
echo $lo >> confluent-genesis-out.spec
done
done
cp -f /boot/vmlinuz-$(uname -r) boot/kernel
cp /boot/efi/EFI/BOOT/BOOTX64.EFI boot/efi/boot
cp /boot/efi/EFI/centos/grubx64.efi boot/efi/boot/grubx64.efi
mkdir -p ~/rpmbuild/SOURCES/
tar cf ~/rpmbuild/SOURCES/confluent-genesis.tar boot rpmlist
rpmbuild -bb confluent-genesis.spec
rpmbuild -bb confluent-genesis-out.spec
rm -rf /usr/lib/dracut/modules.d/97genesis
popd
# getting src rpms would be nice, but centos isn't consistent..