CPANPLUS-Dist-Debora

 view release on metacpan or  search on metacpan

lib/CPANPLUS/Dist/Debora/Package/RPM.pm  view on Meta::CPAN


Returns the package release, which is composed of the build number and the
dist suffix.

=head2 epoch

  my $epoch = $package->epoch;

Returns the package epoch.  Taken from a previously installed package or the
environment variable C<EPOCH>.

=head2 distribution

  my $distribution = $package->distribution;

Gets and returns the distribution, for example "openSUSE Tumbleweed", from the
RPM macro C<%distribution> or the F</etc/os-release> file.

=head2 provides

  for my $capability (@{$package->provides}) {
    say $capability;
  }

Returns additional capabilities, i.e. package and module names, that are
provided by this package.

=head2 obsoletes

  for my $package_name (@{$package->obsoletes}) {
    say $package_name;
  }

Returns packages that are obsoleted by this package.

=head2 spec

  my $text = $package->spec;

Fills in a template and returns a spec file.

=head1 DIAGNOSTICS

See L<CPANPLUS::Dist::Debora> for diagnostics.

=head1 CONFIGURATION AND ENVIRONMENT

See L<CPANPLUS::Dist::Debora> for supported files and environment variables.

=head1 DEPENDENCIES

Requires the Perl modules L<CPANPLUS> and L<Text::Template> from CPAN.

Requires the operating system packages "perl", "rpm-build", "gcc", "make",
"sudo" and, if available, "perl-generators".

=head1 INCOMPATIBILITIES

None.

=head1 BUGS AND LIMITATIONS

The date in the RPM changelog is in Coordinated Universal Time (UTC).

AutoReq is enabled for architecture-dependent packages so that shared library
dependencies are added.  Unfortunately, there are some Perl distributions with
hardcoded dependencies on F</opt/bin/perl> that are picked up by AutoReq.
Create an additional RPM package that provides a symbolic link from
F</opt/bin/perl> to F</usr/bin/perl> if you need to install such Perl
distributions.

=head1 SEE ALSO

rpm(8), rpmbuild(8)

=head1 AUTHOR

Andreas Vögele E<lt>voegelas@cpan.orgE<gt>

=head1 LICENSE AND COPYRIGHT

Copyright (C) 2025 Andreas Vögele

This module is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.

=cut



( run in 0.711 second using v1.01-cache-2.11-cpan-39bf76dae61 )