NAME
Alien::librpm - Find or download and install rpm library.
SYNOPSIS
use Alien::librpm;
my $atleast_version = Alien::librpm->atleast_version($wanted_version);
my $bin_dir = Alien::librpm->bin_dir;
my $cflags = Alien::librpm->cflags;
my $cflags_static = Alien::librpm->cflags_static;
my $dist_dir = Alien::librpm->dist_dir;
my $exact_version = Alien::librpm->exact_version($wanted_version);
my $install_type = Alien::librpm->install_type;
my $libs = Alien::librpm->libs;
my $libs_static = Alien::librpm->libs_static;
my $max_version = Alien::librpm->max_version($wanted_version);
my $version = Alien::librpm->version;
DESCRIPTION
Some packages insist on using rpm library.
This package detect system rpm library or install own.
SUBROUTINES/METHODS
All methods are inherited from Alien::Base.
CONFIGURATION AND ENVIRONMENT
Not yet.
EXAMPLE
use strict;
use warnings;
use Alien::librpm;
print 'cflags: '.Alien::librpm->cflags."\n";
print 'cflags_static: '.Alien::librpm->cflags_static."\n";
print 'dist_dir: '.Alien::librpm->dist_dir."\n";
print 'libs: '.Alien::librpm->libs."\n";
print 'libs_static: '.Alien::librpm->libs_static."\n";
print 'version: '.Alien::librpm->version."\n";
# Output like (Debian 11.7 system rpm library):
# cflags:
# cflags_static:
# dist_dir: ../perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/Alien-librpm
# libs: -lrpm -lrpmio
# libs_static: -lrpm -lrpmio -lpopt -lrt -lpthread -llzma -ldb -lbz2 -lz -llua5.2 -lzstd
# version: 4.16.1.2
DEPENDENCIES
REPOSITORY
https://github.com/michal-josef-spacek/Alien-librpm
AUTHOR
Michal Josef Špaček mailto:skim@cpan.org
LICENSE AND COPYRIGHT
© 2023 Michal Josef Špaček
BSD 2-Clause License
VERSION
0.01