Go to file
Miro Hrončok 48c0de39d9 Add a script to generate Python bundled provides
See https://src.fedoraproject.org/rpms/python-setuptools/pull-request/40

Strictly speaking, this is not an RPM generator, but:

 - it generates provides
 - it is tighly coupled with pythondistdeps.py

Usage:

 1. Run `$ /usr/lib/rpm/pythonbundles.py .../vendored.txt`

 2. Copy the output into the spec as a macro definition:

    %global bundled %{expand:
    Provides: bundled(python3dist(appdirs)) = 1.4.3
    Provides: bundled(python3dist(packaging)) = 16.8
    Provides: bundled(python3dist(pyparsing)) = 2.2.1
    Provides: bundled(python3dist(six)) = 1.15
    }

 3. Use the macro to expand the provides
 4. Verify the macro contents in %check:

    %check
    ...
    %{_rpmconfigdir}/pythonbundles.py src/_vendor/vendored.txt --compare-with '%{bundled}'
2020-07-07 16:01:37 +02:00
tests Add a script to generate Python bundled provides 2020-07-07 16:01:37 +02:00
.gitignore Bump version, enable new features, add test suite to Fedora CI 2020-05-04 13:45:57 +02:00
COPYING Fork upstream generators 2018-02-11 00:50:54 +01:00
python-rpm-generators.spec Add a script to generate Python bundled provides 2020-07-07 16:01:37 +02:00
python.attr Fix python(abi) requires generator, it picked files from almost good directories 2020-06-18 13:32:24 +02:00
pythonbundles.py Add a script to generate Python bundled provides 2020-07-07 16:01:37 +02:00
pythondist.attr Use PEP 503 names for requires 2020-05-21 17:43:19 +02:00
pythondistdeps.py scripts/pythondistdeps: Modify handling of dev versions 2020-04-30 22:24:44 +02:00
pythonname.attr Deduplicate automatically provided names trough Python RPM Lua macros 2020-05-05 14:02:52 +02:00
sources Bump version, enable new features, add test suite to Fedora CI 2020-05-04 13:45:57 +02:00
update-test-sources.sh Bump version, enable new features, add test suite to Fedora CI 2020-05-04 13:45:57 +02:00