Software update function for RPM packages.
On the other hand, when no new version is specified, it only updates the spec file. However, it’s essential to note that this module doesn’t support every spec file syntax. Therefore, if you use specific syntax, you’ll need additional processing with explicit Perl expressions to run an evaluation of each line of the specification file.
For building a new version, the module follows a simple algorithm. It searches for the first definition of the version and replaces it with a new value. Similarly, for release updates, it finds the first release definition and replaces the value with a new release parameter. If no new release value is provided, the module extracts any macro that occurs in the leftmost part and any occurrence of a release suffix option in the rightmost section.
The module supports both direct and indirect definitions of versions, such as "Version: X" and "Fine version X Version: %{version}" but doesn't support more complex syntax.
The module provides the following commands: update_from_source, update_from_spec, and update_from_repository. These commands can be used to specify the source file, spec file, and repository respectively.
In summary, Youri::Package::RPM::Updater is an excellent solution for updating RPM packages. It comes equipped with many features and an easy-to-understand algorithm that helps you handle updates comfortably.
Version 0.4.7: N/A