vendor_meta.sh is not used any more

This commit is contained in:
Miro Hrončok 2020-11-26 18:07:19 +01:00
parent 79b09f862d
commit e8ba55beb4
2 changed files with 0 additions and 23 deletions

View File

@ -16,8 +16,6 @@
%global bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null)
Name: python-%{srcname}
# When updating, update the bundled libraries versions bellow!
# You can use vendor_meta.sh in the dist git repo
Version: %{base_version}%{?prerel:~%{prerel}}
Release: 1%{?dist}
Summary: A tool for installing and managing Python packages

View File

@ -1,21 +0,0 @@
#!/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"