Bug 1212834 - The %python_subpackages macro produces an error on 15.5
Summary: The %python_subpackages macro produces an error on 15.5
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Other (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Matej Cepl
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-29 06:30 UTC by Andreas Schneider
Modified: 2023-08-04 11:57 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2023-06-29 06:30:48 UTC
[   41s] error: parse error in expression
[   41s] error: /home/abuild/rpmbuild/SOURCES/python-mailmanclient.spec:51: bad %if condition

See e.g.:

https://build.opensuse.org/package/show/devel:languages:python:mailman:backports/python-mailmanclient

Note that this project uses devel:languages:python:backports!
Comment 1 Matej Cepl 2023-06-29 13:02:24 UTC
I don't think it is `%python_subpackages`. My bet is on

%if %{pkg_vcmp python3-pytest-asyncio >= 0.19}
asynciomode="--asyncio-mode=auto"
%endif

I cannot imagine it would work. Let me try. (Besides, the condition is nonsensical, because we have python-pytest-asyncio >= 0.19 everywhere).
Comment 2 OBSbugzilla Bot 2023-06-29 14:05:02 UTC
This is an autogenerated message for OBS integration:
This bug (1212834) was mentioned in
https://build.opensuse.org/request/show/1095990 Factory / python-mailmanclient
Comment 3 Matej Cepl 2023-08-04 11:57:52 UTC
Fix has been accepted.