summaryrefslogtreecommitdiffstats
path: root/RPM4/README.API
blob: 9b0ed39a05b1fc554b54d5245dc6678a368207d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
The following packages require perl-RPM4:

(1) iurt
(2) perl-MDV-Repsys [NOT PACKAGED]
(3) perl-Youri-Package-RPM-Builder [NOT PACKAGED]
(4) perl-Youri-Package-RPM-Updater
(5) perl-Youri-Package
(6) mga-youri-submit

notes:
- (5) doesn't use proposes both Youri::Package::URPM and
  Youri::Package::RPM4, and doesn't force usage of any.
- (6) is a fork of perl-Youri-Package, which uses Youri::Package::URPM
  (and so perl-RPM4 is unused but for RPM4::Sign and rpmssign())

here is below the various functions/methods of perl-RPM4 used by the
packages above.

RPM4::add_macro (2)(3)(4)
RPM4::expand (2)(3)(4) [renamed expand_macro in rpm5]
RPM4::installsrpm (2)(4)
RPM4::rpmvercmp
RPM4::setverbosity (2)(4)
RPM4::Sign->new
  $sign->rpmssign (6) [not available in rpm5]
RPM4::Transaction->new
  $db->transadd (3) [renamed add_install in rpm5]
  $db->transcheck (3) [renamed check in rpm5]
  $db->transpbs (3) [renamed problems in rpm5]
    $pbs->hasnext (3) [not available directly in rpm5]
    $pbs->init (3) [not available directly in rpm5]
    $pbs->problem (3) [not available directly in rpm5]
RPM4::Spec->new
  $spec->binrpm (3)
  $spec->sources (2)
  $spec->sources_url (4)
  $spec->srcheader (2)(3)(4)
  $spec->srcrpm (3)
RPM4::Header->new
  $header->compare
  $header->dep [renamed dependencies in rpm5]
    $deps->info [not available directly in rpm5]
    $deps->init
    $deps->next
  $header->files
    $files->filename
    $files->init
    $files->md5 [renamed digest in rpm5]
    $files->mode
    $files->next
  $header->fullname [not available directly in rpm5]
  $header->issrc [renamed is_source_package in rpm5]
  $header->queryformat (1)(2) [renamed tagformat in rpm5]
  $header->sourcerpmname [not available directly in rpm5]
  $header->tag (4)
RPM4::Header::Dependencies->new [renamed RPM::Dependencies in rpm5]
  $dep->overlap

nb:
- functions/methods above which are not used by (1), (2), (3), (4) are
used by either (5) or (6) (usually by both)
- i have annotated with [... in rpm5] the changes between perl-RPM4
and RPM perl module in rpm5 CVS
- except for ->rpmsign, the "not available in rpm5" have similar
functions in rpm5 RPM module