The license of the `winpr/libwinpr/crt/unicode_builtin.c` file is not allowed. See: https://gitlab.com/fedora/legal/fedora-license-data/-/issues/498. Let's upload the modified tarball without this file. This commit also adds the `./freerdp_download_and_repack.sh` helper script to prepare tarball. See: https://docs.fedoraproject.org/en-US/legal/license-review-process/ Resolves: RHEL-45600
15 lines
651 B
Bash
Executable File
15 lines
651 B
Bash
Executable File
#!/bin/sh
|
|
version=$(cat freerdp.spec | grep "Version: " | tr --squeeze-repeats " " | cut --delimiter " " --fields 2)
|
|
|
|
echo "Downloading FreeRDP-$version.tar.gz"
|
|
curl --silent --location "https://github.com/FreeRDP/FreeRDP/archive/$version/FreeRDP-$version.tar.gz" --output "FreeRDP-$version.tar.gz" || exit 1
|
|
|
|
echo "Removing unicode_builtin.c"
|
|
gzip --decompress "FreeRDP-$version.tar.gz" || exit 1
|
|
tar --file "FreeRDP-$version.tar" --delete "*/winpr/libwinpr/crt/unicode_builtin.c" || exit 1
|
|
gzip --best "FreeRDP-$version.tar" --stdout > FreeRDP-$version-repack.tar.gz
|
|
rm FreeRDP-$version.tar
|
|
|
|
echo "FreeRDP-$version-repack.tar.gz is prepared"
|
|
exit 0
|