5819c19901
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/python-pip#8825fe54dc6e32d8edcbecfe4b9f563a50e513b5
22 lines
525 B
Bash
Executable File
22 lines
525 B
Bash
Executable File
#!/usr/bin/bash -eu
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "Usage: ./vendor_meta.sh pip-10.0.0/src/pip/_vendor/vendor.txt"
|
|
exit 1
|
|
fi
|
|
|
|
licenses=''
|
|
|
|
while read req; do
|
|
req=$(echo $req | cut -f1 -d' ')
|
|
name=$(echo $req | cut -f1 -d'=')
|
|
version=$(echo $req | cut -f3 -d'=' | tr -d '\r')
|
|
echo "Provides: bundled(python%{1}dist($name)) = $version"
|
|
license="$(pyp2rpm -v ${version} --no-venv ${name} | grep '^License:' | sed -e 's/License:\s*//')"
|
|
licenses="$licenses\n$name: $license"
|
|
done < $1
|
|
|
|
echo
|
|
echo
|
|
echo -e "$licenses"
|