Youri::Package::RPM::Updater

Update RPM packages
Download

Youri::Package::RPM::Updater Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Guillaume Rousse
  • Publisher web site:
  • http://search.cpan.org/~grousse/

Youri::Package::RPM::Updater Tags


Youri::Package::RPM::Updater Description

Update RPM packages Youri::Package::RPM::Updater is a Perl module that updates RPM packages. When given an explicit new version, it updates the spec file, and downloads new sources automatically. When not given a new version, it just updates the spec file.Warning, not every spec file syntax is supported. If you use specific syntax, you'll have to ressort to additional processing with explicit perl expression to evaluate for each line of the spec file.Here is version update algorithm (only used when building a new version): * find the first definition of version * replace it with new valueHere is release update algorithm: * find the first definition of release * if explicit newrelease parameter given: o replace value * otherwise: o extract any macro occuring in the leftmost part (such as %mkrel) o extract any occurence of release_suffix option in the rightmost part o if a new version is given: + replace with 1 o otherwise: + increment by 1In both cases, both direct definition: Version: Xor indirect definition: fine version X Version: %{version}are supported. Any more complex one is not.SYNOPSIS my $updater = Youri::Package::RPM::Updater->new(); $updater->update_from_source('foo-1.0-1.src.rpm', '2.0'); $updater->update_from_spec('foo.spec', '2.0'); $updater->update_from_repository('foo', '2.0'); Requirements: · Perl


Youri::Package::RPM::Updater Related Software