Go to file
Miro Hrončok 1b3e731dc6 Brand as "3.8", rework %python_provide
- Hardcode the default Python 3 version in the SRPM macros
- Provide python38-foo for python3-foo and the other way around (future RHEL compatibility)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1812087

    $ rpm --eval '%python_provide python38-setuptools'
    Provides: python-setuptools = %{version}-%{release}
    Provides: python3-setuptools = %{version}-%{release}
    Obsoletes: python-setuptools < %{version}-%{release}

    $ rpm --eval '%python_provide python3-setuptools'
    Provides: python-setuptools = %{version}-%{release}
    Provides: python38-setuptools = %{version}-%{release}
    Obsoletes: python-setuptools < %{version}-%{release}

    $ rpm --eval '%python_provide python39-setuptools'

    $ rpm --define 'python3_pkgversion 39' --eval '%python_provide python%{python3_pkgversion}-setuptools'

To make the implementation of %python_provide easier,
any names starting with "python" or "pypy" are recognized as valid arguments.

Previously, this was an ERROR:

    $ rpm --eval '%python_provide pythonista'
    %python_provide: ERROR: pythonista not recognized.

Now it is a no-op. The behavior was never documented and the change is
backwards compatible for working spec files.
2020-03-25 17:27:06 +01:00
.gitignore Initial setup of the repo 2016-01-12 23:33:17 +00:00
compileall2.py Update of bundled compileall2 module to 0.7.0 2020-02-10 23:58:33 +01:00
macros.pybytecompile Do not allow passing arguments to Python during byte-compilation 2019-07-15 14:26:49 +02:00
macros.python Brand as "3.8", rework %python_provide 2020-03-25 17:27:06 +01:00
macros.python-srpm Brand as "3.8", rework %python_provide 2020-03-25 17:27:06 +01:00
macros.python2 Define %py(2|3)?_shbang_opts_nodash to be used with pathfix.py -a 2020-02-06 10:26:04 +01:00
macros.python3 Define %py(2|3)?_shbang_opts_nodash to be used with pathfix.py -a 2020-02-06 10:26:04 +01:00
python-rpm-macros.spec Brand as "3.8", rework %python_provide 2020-03-25 17:27:06 +01:00
sources Initial setup of the repo 2016-01-12 23:33:17 +00:00