specfile
specfile copied to clipboard
A library for parsing and manipulating RPM spec files
### 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...
Inspired by #235.
The run takes about 90 minutes on my notebook. - [x] Write new tests or update the old ones to cover new functionality. - [-] Update doc-strings where appropriate. -...
### What happened? What is the problem? During parsing linux-system-roles.spec I get: ``` Created dummy sources for nonexistent files: /tmp/rpm-specs/extrasources.inc Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/specfile/spec_parser.py", line 201, in...
Statements such as `%if`, `%else` and `%endif` are currently treated as regular section content. That can cause issues, especially with conditions spanning across multiple sections - if a section is...
For example, scipy has: ```rpm-spec * Mon Dec 11 2006 Jef Spaleta - 0.5.1-5 - Bump for rebuild against python 2.5 in devel tree ``` An entry like this should...
### Description When Specfile does not have changelog section and you try to read it you get: ``` Traceback (most recent call last): File "/home/msuchy/projects/license-validate/./print-spec-changelog.py", line 10, in print(sections.changelog) ^^^^^^^^^^^^^^^^^^...
According to https://endoflife.date/python python 3.7 has been EOSed 27 Jun 2023. Filter all code over `pyupgracde --py38-plus`. TODO: - [ ] Write new tests or update the old ones to...
Trivial reproducer: ```specfile # recursive macro definition %global cflags "-O3 %{cflags}" Name: test Version: 0.1 Release: %autorelease Summary: Test package License: MIT %description Test package %changelog %autochangelog ``` ```python spec...
Debug