Releases: packit/specfile
Releases · packit/specfile
0.16.0
0.15.0
0.14.0
0.13.2
0.13.1
0.13.0
- Added
Section.options
attribute for convenient manipulation of section options. (#183) - specfile now supports single-line sections where section content is represented by a macro starting with a newline. (#182)
- Added
evr
argument toSpecfile.add_changelog_entry()
. This allows adding a changelog entry with an EVR value that's different from the current specfile's value. This makes it easier to reconstruct a specfile's%changelog
based on another source using the higher level interface. (#181)
0.12.0
0.11.1
0.11.0
- Context managers (
Specfile.sections()
,Specfile.tags()
etc.) can now be nested and combined together (with one exception -Specfile.macro_definitions()
), and it is also possible to use tag properties (e.g.Specfile.version
,Specfile.license
) inside them. It is also possible to access the data directly, avoiding thewith
statement, by using thecontent
property (e.g.Specfile.tags().content
), but be aware that no modifications done to such data will be preserved. You must usewith
to make changes. (#153)
0.10.0
- Fixed an issue that caused empty lines originally inside changelog entries to appear at the end. (#140)
- Renamed the
ignore_missing_includes
option to a more generalforce_parse
. If specified, it allows to attempt to parse the spec file even if one or more sources required to be present at parsing time are not available. Such sources include sources referenced from shell expansions in tag values and sources included using the%include
directive. (#137)