Specfile

Latest version: v0.34.2

Safety actively analyzes 723144 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 10

0.20.1

- specfile now once again supports EPEL 8 and Python 3.6. (256)

0.20.0

- Fixed infinite loop when removing macros with `%` in the name. (244)
- Added a possibility to undefine system macros by setting a macro value to `None` in the `macros` argument of the `Specfile` constructor. (244)
- Fixed a bug in processing options of `%prep` macros. For instance, when a quoted string appeared inside an expression expansion, it could lead to improper parsing, rendering the spec file invalid after accessing the options. (253)

0.19.0

- Parsing has been optimized so that even spec files with hundreds of thousands of lines can be processed in reasonable time. (240)

0.18.0

- Specfile library now handles multiple `%changelog` sections. (230)

0.17.0

- Added a new `guess_packager()` function that uses similar heuristics as `rpmdev-packager`, meaning that the `Specfile.add_changelog_entry()` method no longer requires `rpmdev-packager` to guess the changelog entry author. (220)
- The `Specfile.add_changelog_entry()` method now uses dates based on UTC instead of the local timezone. (223)

0.16.0

- Added `Specfile.has_autorelease` property to detect if a spec file uses the `%autorelease` macro. (221)

Page 6 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.