Add a script that makes it easier to track bundled libs (uses pyp2rpm)
This commit is contained in:
parent
50d9d64d96
commit
51d3b539d4
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
# When updating, update the bundled libraries versions bellow!
|
# When updating, update the bundled libraries versions bellow!
|
||||||
|
# You can use vendor_meta.sh in the dist git repo
|
||||||
Version: 18.0
|
Version: 18.0
|
||||||
Release: 4%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: A tool for installing and managing Python packages
|
Summary: A tool for installing and managing Python packages
|
||||||
|
21
vendor_meta.sh
Executable file
21
vendor_meta.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/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"
|
Loading…
Reference in New Issue
Block a user