Commit Graph

13 Commits

Author SHA1 Message Date
Tomas Orsava
85209d6c46 %py_provides: Do not generate Obsoletes for names containing parentheses
This mechanism is already implemented in the old %python_provide macro.

Related: rhbz#1990421
2022-02-15 17:37:31 +01:00
Tomas Orsava
e22e5600bd Add lua helper functions to make it possible to automatically generate Obsoletes tags
And modify the %%py_provides macro to also generate Obsoletes tags on CentOS/RHEL

Resolves: rhbz#1990421
2022-01-21 15:04:18 +01:00
Miro Hrončok
c7a9537dba Set %__python3 value according to %python3_pkgversion
I.e. when %python3_pkgversion is 3.12, %__python3 is /usr/bin/python3.12

We assume that when packagers package for Python 3.X, they want to change both
%python3_pkgversion and %__python3 value.

Hence instead of copy-pasting this:

    %global python3_pkgversion 3.X
    %global __python3 /usr/bin/python3.X

They just need to do:

    %global python3_pkgversion 3.X

Packagers who want to change the value of %__python3 without touching
%python3_pkgversion can still do it:

    %global __python3 /usr/bin/pypy3

Related: rhbz#1950291
2021-12-14 21:35:59 +01:00
Miro Hrončok
3a652b1c29 Move %python3_pkgversion definition earlier in the file
So we can use it later in %__python3 and maintain readability.

Related: rhbz#1950291
2021-12-14 21:34:53 +01:00
Tomas Orsava
3b86d5797c Define a new macros %python_wheel_dir and %python_wheel_pkg_prefix
Related: rhbz#1982668
2021-11-05 10:47:41 +01:00
Miro Hrončok
cc83a8b62e Update %python3_pkgversion comment
Related: rhbz#1950291
2021-05-05 17:18:43 +02:00
Miro Hrončok
fd837e515a Remove EPEL 7 compatibility macros that were actually not defined at all
The %{? in the comment made the entire block of macros not work.

Since nobody actually used those on Fedora, because they did not exist,
we can safely remove them. No need to document this in the %changelog.

Related: rhbz#1950291
2021-05-05 17:18:41 +02:00
Miro Hrončok
a272f59825 Escape % symbols in macro files comments
This is most likely not neccessary but can prevent serious problems like:

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

Related: rhbz#1950291
2021-05-05 17:18:32 +02:00
Miro Hrončok
ca0a3311c5 Allow commas as argument separator for extras names in %python_extras_subpkg
This allows e.g.:

    %global extras cli,ghostwriter,pytz,dateutil,lark,numpy,pandas,pytest,redis,zoneinfo,django
    %{pyproject_extras_subpkg -n python3-hypothesis %{extras}}
    ...
    %pyproject_buildrequires -x %{extras}

(Note that %pyproject_extras_subpkg is a tiny wrapper around %python_extras_subpkg.)

Related: rhbz#1950291
2021-04-22 18:28:04 +02:00
Lumir Balhar
9a79a6cef6 Make extras_subpkg description more general
Because extra subpackages actually might contain code.
See for example: https://src.fedoraproject.org/rpms/python-dns/pull-request/9

Related: rhbz#1950291
2021-04-22 18:25:59 +02:00
DistroBaker
6bf18de563 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/python-rpm-macros.git#a6382f5b5a6536d01477b71cf5a378c30c828783
2021-03-11 20:31:16 +00:00
DistroBaker
b18966f2a7 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/python-rpm-macros.git#230ce7f0613816bd7daf1f615bca443d6c5aa7d5
2021-02-08 11:37:59 +00:00
Troy Dawson
365a69534a RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/python-rpm-macros#06987f5024e2618f3169ca829462b71f7bbae463
2020-10-14 20:10:31 -07:00