-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
kind/bugAn unexpected problem or behaviorAn unexpected problem or behavior
Description
What happened? What is the problem?
During parsing dl_poly.spec I get
File "/usr/lib/python3.11/site-packages/specfile/spec_parser.py", line 201, in get_rpm_spec
return rpm.spec(tmp.name, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: can't parse specfile
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/msuchy/projects/specfile/tests/test-parsing/./parse.py", line 8, in <module>
specfile = Specfile(filename, force_parse=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/specfile/specfile.py", line 71, in __init__
self._parser.parse(str(self))
File "/usr/lib/python3.11/site-packages/specfile/spec_parser.py", line 353, in parse
self.spec, self.tainted = self._do_parse(content, extra_macros)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/specfile/spec_parser.py", line 318, in _do_parse
return get_rpm_spec(content, rpm.RPMSPEC_ANYARCH), tainted
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/specfile/spec_parser.py", line 203, in get_rpm_spec
raise RPMException(stderr=stderr) from e
specfile.exceptions.RPMException: line 106: Bad %setup option -n: missing argument
The specific line in that spec file is:
%setup -q -n %(tar ft %SOURCE0|head -n1|sed s,/,,)
What did you expect to happen?
No response
Example URL(s)
No response
Steps to reproduce
No response
Workaround
- There is an existing workaround that can be used until this issue is fixed.
Participation
- I am willing to submit a pull request for this issue. (Packit team is happy to help!)
Metadata
Metadata
Assignees
Labels
kind/bugAn unexpected problem or behaviorAn unexpected problem or behavior
Type
Projects
Status
backlog