summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-03-12 11:32:04 +0100
committerRemi Collet <remi@remirepo.net>2020-03-12 11:32:04 +0100
commit54e37d01eb311109667eb65672e0816ebf3caf13 (patch)
tree127fb05c3fc32c584f287c71466b0606382b6f34
parentb700925fcc1d65bd441ec26453e6bb4c227deb54 (diff)
v0.3.0
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION259
-rw-r--r--php-pecl-rpminfo.spec12
3 files changed, 266 insertions, 7 deletions
diff --git a/PHPINFO b/PHPINFO
index 0e935f7..89d1591 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,5 +2,5 @@
rpminfo
rpminfo support => enabled
-Extension version => 0.2.3
+Extension version => 0.3.0
RPM library version => 4.15.1
diff --git a/REFLECTION b/REFLECTION
index 084af42..daba10b 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,6 +1,6 @@
-Extension [ <persistent> extension #136 rpminfo version 0.2.3 ] {
+Extension [ <persistent> extension #94 rpminfo version 0.3.0 ] {
- - Constants [24] {
+ - Constants [271] {
Constant [ string RPMVERSION ] { 4.15.1 }
Constant [ int RPMSENSE_ANY ] { 0 }
Constant [ int RPMSENSE_LESS ] { 2 }
@@ -25,6 +25,253 @@ Extension [ <persistent> extension #136 rpminfo version 0.2.3 ] {
Constant [ int RPMSENSE_TRIGGERPREIN ] { 33554432 }
Constant [ int RPMSENSE_KEYRING ] { 67108864 }
Constant [ int RPMSENSE_CONFIG ] { 268435456 }
+ Constant [ int RPMMIRE_DEFAULT ] { 0 }
+ Constant [ int RPMMIRE_STRCMP ] { 1 }
+ Constant [ int RPMMIRE_REGEX ] { 2 }
+ Constant [ int RPMMIRE_GLOB ] { 3 }
+ Constant [ int RPMTAG_ARCH ] { 1022 }
+ Constant [ int RPMTAG_ARCHIVESIZE ] { 1046 }
+ Constant [ int RPMTAG_BASENAMES ] { 1117 }
+ Constant [ int RPMTAG_BUGURL ] { 5012 }
+ Constant [ int RPMTAG_BUILDARCHS ] { 1089 }
+ Constant [ int RPMTAG_BUILDHOST ] { 1007 }
+ Constant [ int RPMTAG_BUILDTIME ] { 1006 }
+ Constant [ int RPMTAG_C ] { 1054 }
+ Constant [ int RPMTAG_CHANGELOGNAME ] { 1081 }
+ Constant [ int RPMTAG_CHANGELOGTEXT ] { 1082 }
+ Constant [ int RPMTAG_CHANGELOGTIME ] { 1080 }
+ Constant [ int RPMTAG_CLASSDICT ] { 1142 }
+ Constant [ int RPMTAG_CONFLICTFLAGS ] { 1053 }
+ Constant [ int RPMTAG_CONFLICTNAME ] { 1054 }
+ Constant [ int RPMTAG_CONFLICTNEVRS ] { 5044 }
+ Constant [ int RPMTAG_CONFLICTS ] { 1054 }
+ Constant [ int RPMTAG_CONFLICTVERSION ] { 1055 }
+ Constant [ int RPMTAG_COOKIE ] { 1094 }
+ Constant [ int RPMTAG_DBINSTANCE ] { 1195 }
+ Constant [ int RPMTAG_DEPENDSDICT ] { 1145 }
+ Constant [ int RPMTAG_DESCRIPTION ] { 1005 }
+ Constant [ int RPMTAG_DIRINDEXES ] { 1116 }
+ Constant [ int RPMTAG_DIRNAMES ] { 1118 }
+ Constant [ int RPMTAG_DISTRIBUTION ] { 1010 }
+ Constant [ int RPMTAG_DISTTAG ] { 1155 }
+ Constant [ int RPMTAG_DISTURL ] { 1123 }
+ Constant [ int RPMTAG_DSAHEADER ] { 267 }
+ Constant [ int RPMTAG_E ] { 1003 }
+ Constant [ int RPMTAG_ENCODING ] { 5062 }
+ Constant [ int RPMTAG_ENHANCEFLAGS ] { 5057 }
+ Constant [ int RPMTAG_ENHANCENAME ] { 5055 }
+ Constant [ int RPMTAG_ENHANCENEVRS ] { 5061 }
+ Constant [ int RPMTAG_ENHANCES ] { 5055 }
+ Constant [ int RPMTAG_ENHANCEVERSION ] { 5056 }
+ Constant [ int RPMTAG_EPOCH ] { 1003 }
+ Constant [ int RPMTAG_EPOCHNUM ] { 5019 }
+ Constant [ int RPMTAG_EVR ] { 5013 }
+ Constant [ int RPMTAG_EXCLUDEARCH ] { 1059 }
+ Constant [ int RPMTAG_EXCLUDEOS ] { 1060 }
+ Constant [ int RPMTAG_EXCLUSIVEARCH ] { 1061 }
+ Constant [ int RPMTAG_EXCLUSIVEOS ] { 1062 }
+ Constant [ int RPMTAG_FILECAPS ] { 5010 }
+ Constant [ int RPMTAG_FILECLASS ] { 1141 }
+ Constant [ int RPMTAG_FILECOLORS ] { 1140 }
+ Constant [ int RPMTAG_FILECONTEXTS ] { 1147 }
+ Constant [ int RPMTAG_FILEDEPENDSN ] { 1144 }
+ Constant [ int RPMTAG_FILEDEPENDSX ] { 1143 }
+ Constant [ int RPMTAG_FILEDEVICES ] { 1095 }
+ Constant [ int RPMTAG_FILEDIGESTALGO ] { 5011 }
+ Constant [ int RPMTAG_FILEDIGESTS ] { 1035 }
+ Constant [ int RPMTAG_FILEFLAGS ] { 1037 }
+ Constant [ int RPMTAG_FILEGROUPNAME ] { 1040 }
+ Constant [ int RPMTAG_FILEINODES ] { 1096 }
+ Constant [ int RPMTAG_FILELANGS ] { 1097 }
+ Constant [ int RPMTAG_FILELINKTOS ] { 1036 }
+ Constant [ int RPMTAG_FILEMD5S ] { 1035 }
+ Constant [ int RPMTAG_FILEMODES ] { 1030 }
+ Constant [ int RPMTAG_FILEMTIMES ] { 1034 }
+ Constant [ int RPMTAG_FILENAMES ] { 5000 }
+ Constant [ int RPMTAG_FILENLINKS ] { 5045 }
+ Constant [ int RPMTAG_FILEPROVIDE ] { 5001 }
+ Constant [ int RPMTAG_FILERDEVS ] { 1033 }
+ Constant [ int RPMTAG_FILEREQUIRE ] { 5002 }
+ Constant [ int RPMTAG_FILESIGNATURELENGTH ] { 5091 }
+ Constant [ int RPMTAG_FILESIGNATURES ] { 5090 }
+ Constant [ int RPMTAG_FILESIZES ] { 1028 }
+ Constant [ int RPMTAG_FILESTATES ] { 1029 }
+ Constant [ int RPMTAG_FILETRIGGERCONDS ] { 5086 }
+ Constant [ int RPMTAG_FILETRIGGERFLAGS ] { 5072 }
+ Constant [ int RPMTAG_FILETRIGGERINDEX ] { 5070 }
+ Constant [ int RPMTAG_FILETRIGGERNAME ] { 5069 }
+ Constant [ int RPMTAG_FILETRIGGERPRIORITIES ] { 5084 }
+ Constant [ int RPMTAG_FILETRIGGERSCRIPTFLAGS ] { 5068 }
+ Constant [ int RPMTAG_FILETRIGGERSCRIPTPROG ] { 5067 }
+ Constant [ int RPMTAG_FILETRIGGERSCRIPTS ] { 5066 }
+ Constant [ int RPMTAG_FILETRIGGERTYPE ] { 5087 }
+ Constant [ int RPMTAG_FILETRIGGERVERSION ] { 5071 }
+ Constant [ int RPMTAG_FILEUSERNAME ] { 1039 }
+ Constant [ int RPMTAG_FILEVERIFYFLAGS ] { 1045 }
+ Constant [ int RPMTAG_FSCONTEXTS ] { 1148 }
+ Constant [ int RPMTAG_GIF ] { 1012 }
+ Constant [ int RPMTAG_GROUP ] { 1016 }
+ Constant [ int RPMTAG_HDRID ] { 269 }
+ Constant [ int RPMTAG_HEADERCOLOR ] { 5017 }
+ Constant [ int RPMTAG_HEADERI18NTABLE ] { 100 }
+ Constant [ int RPMTAG_HEADERIMAGE ] { 61 }
+ Constant [ int RPMTAG_HEADERIMMUTABLE ] { 63 }
+ Constant [ int RPMTAG_HEADERREGIONS ] { 64 }
+ Constant [ int RPMTAG_HEADERSIGNATURES ] { 62 }
+ Constant [ int RPMTAG_ICON ] { 1043 }
+ Constant [ int RPMTAG_INSTALLCOLOR ] { 1127 }
+ Constant [ int RPMTAG_INSTALLTID ] { 1128 }
+ Constant [ int RPMTAG_INSTALLTIME ] { 1008 }
+ Constant [ int RPMTAG_INSTFILENAMES ] { 5040 }
+ Constant [ int RPMTAG_INSTPREFIXES ] { 1099 }
+ Constant [ int RPMTAG_LICENSE ] { 1014 }
+ Constant [ int RPMTAG_LONGARCHIVESIZE ] { 271 }
+ Constant [ int RPMTAG_LONGFILESIZES ] { 5008 }
+ Constant [ int RPMTAG_LONGSIGSIZE ] { 270 }
+ Constant [ int RPMTAG_LONGSIZE ] { 5009 }
+ Constant [ int RPMTAG_MODULARITYLABEL ] { 5096 }
+ Constant [ int RPMTAG_N ] { 1000 }
+ Constant [ int RPMTAG_NAME ] { 1000 }
+ Constant [ int RPMTAG_NEVR ] { 5015 }
+ Constant [ int RPMTAG_NEVRA ] { 5016 }
+ Constant [ int RPMTAG_NOPATCH ] { 1052 }
+ Constant [ int RPMTAG_NOSOURCE ] { 1051 }
+ Constant [ int RPMTAG_NVR ] { 5014 }
+ Constant [ int RPMTAG_NVRA ] { 1196 }
+ Constant [ int RPMTAG_O ] { 1090 }
+ Constant [ int RPMTAG_OBSOLETEFLAGS ] { 1114 }
+ Constant [ int RPMTAG_OBSOLETENAME ] { 1090 }
+ Constant [ int RPMTAG_OBSOLETENEVRS ] { 5043 }
+ Constant [ int RPMTAG_OBSOLETES ] { 1090 }
+ Constant [ int RPMTAG_OBSOLETEVERSION ] { 1115 }
+ Constant [ int RPMTAG_OLDENHANCES ] { 1159 }
+ Constant [ int RPMTAG_OLDENHANCESFLAGS ] { 1161 }
+ Constant [ int RPMTAG_OLDENHANCESNAME ] { 1159 }
+ Constant [ int RPMTAG_OLDENHANCESVERSION ] { 1160 }
+ Constant [ int RPMTAG_OLDFILENAMES ] { 1027 }
+ Constant [ int RPMTAG_OLDSUGGESTS ] { 1156 }
+ Constant [ int RPMTAG_OLDSUGGESTSFLAGS ] { 1158 }
+ Constant [ int RPMTAG_OLDSUGGESTSNAME ] { 1156 }
+ Constant [ int RPMTAG_OLDSUGGESTSVERSION ] { 1157 }
+ Constant [ int RPMTAG_OPTFLAGS ] { 1122 }
+ Constant [ int RPMTAG_ORDERFLAGS ] { 5037 }
+ Constant [ int RPMTAG_ORDERNAME ] { 5035 }
+ Constant [ int RPMTAG_ORDERVERSION ] { 5036 }
+ Constant [ int RPMTAG_ORIGBASENAMES ] { 1120 }
+ Constant [ int RPMTAG_ORIGDIRINDEXES ] { 1119 }
+ Constant [ int RPMTAG_ORIGDIRNAMES ] { 1121 }
+ Constant [ int RPMTAG_ORIGFILENAMES ] { 5007 }
+ Constant [ int RPMTAG_OS ] { 1021 }
+ Constant [ int RPMTAG_P ] { 1047 }
+ Constant [ int RPMTAG_PACKAGER ] { 1015 }
+ Constant [ int RPMTAG_PATCH ] { 1019 }
+ Constant [ int RPMTAG_PATCHESFLAGS ] { 1134 }
+ Constant [ int RPMTAG_PATCHESNAME ] { 1133 }
+ Constant [ int RPMTAG_PATCHESVERSION ] { 1135 }
+ Constant [ int RPMTAG_PAYLOADCOMPRESSOR ] { 1125 }
+ Constant [ int RPMTAG_PAYLOADDIGEST ] { 5092 }
+ Constant [ int RPMTAG_PAYLOADDIGESTALGO ] { 5093 }
+ Constant [ int RPMTAG_PAYLOADFLAGS ] { 1126 }
+ Constant [ int RPMTAG_PAYLOADFORMAT ] { 1124 }
+ Constant [ int RPMTAG_PKGID ] { 261 }
+ Constant [ int RPMTAG_PLATFORM ] { 1132 }
+ Constant [ int RPMTAG_POLICIES ] { 1150 }
+ Constant [ int RPMTAG_POLICYFLAGS ] { 5033 }
+ Constant [ int RPMTAG_POLICYNAMES ] { 5030 }
+ Constant [ int RPMTAG_POLICYTYPES ] { 5031 }
+ Constant [ int RPMTAG_POLICYTYPESINDEXES ] { 5032 }
+ Constant [ int RPMTAG_POSTIN ] { 1024 }
+ Constant [ int RPMTAG_POSTINFLAGS ] { 5021 }
+ Constant [ int RPMTAG_POSTINPROG ] { 1086 }
+ Constant [ int RPMTAG_POSTTRANS ] { 1152 }
+ Constant [ int RPMTAG_POSTTRANSFLAGS ] { 5025 }
+ Constant [ int RPMTAG_POSTTRANSPROG ] { 1154 }
+ Constant [ int RPMTAG_POSTUN ] { 1026 }
+ Constant [ int RPMTAG_POSTUNFLAGS ] { 5023 }
+ Constant [ int RPMTAG_POSTUNPROG ] { 1088 }
+ Constant [ int RPMTAG_PREFIXES ] { 1098 }
+ Constant [ int RPMTAG_PREIN ] { 1023 }
+ Constant [ int RPMTAG_PREINFLAGS ] { 5020 }
+ Constant [ int RPMTAG_PREINPROG ] { 1085 }
+ Constant [ int RPMTAG_PRETRANS ] { 1151 }
+ Constant [ int RPMTAG_PRETRANSFLAGS ] { 5024 }
+ Constant [ int RPMTAG_PRETRANSPROG ] { 1153 }
+ Constant [ int RPMTAG_PREUN ] { 1025 }
+ Constant [ int RPMTAG_PREUNFLAGS ] { 5022 }
+ Constant [ int RPMTAG_PREUNPROG ] { 1087 }
+ Constant [ int RPMTAG_PROVIDEFLAGS ] { 1112 }
+ Constant [ int RPMTAG_PROVIDENAME ] { 1047 }
+ Constant [ int RPMTAG_PROVIDENEVRS ] { 5042 }
+ Constant [ int RPMTAG_PROVIDES ] { 1047 }
+ Constant [ int RPMTAG_PROVIDEVERSION ] { 1113 }
+ Constant [ int RPMTAG_PUBKEYS ] { 266 }
+ Constant [ int RPMTAG_R ] { 1002 }
+ Constant [ int RPMTAG_RECOMMENDFLAGS ] { 5048 }
+ Constant [ int RPMTAG_RECOMMENDNAME ] { 5046 }
+ Constant [ int RPMTAG_RECOMMENDNEVRS ] { 5058 }
+ Constant [ int RPMTAG_RECOMMENDS ] { 5046 }
+ Constant [ int RPMTAG_RECOMMENDVERSION ] { 5047 }
+ Constant [ int RPMTAG_RECONTEXTS ] { 1149 }
+ Constant [ int RPMTAG_RELEASE ] { 1002 }
+ Constant [ int RPMTAG_REMOVETID ] { 1129 }
+ Constant [ int RPMTAG_REQUIREFLAGS ] { 1048 }
+ Constant [ int RPMTAG_REQUIRENAME ] { 1049 }
+ Constant [ int RPMTAG_REQUIRENEVRS ] { 5041 }
+ Constant [ int RPMTAG_REQUIRES ] { 1049 }
+ Constant [ int RPMTAG_REQUIREVERSION ] { 1050 }
+ Constant [ int RPMTAG_RPMVERSION ] { 1064 }
+ Constant [ int RPMTAG_RSAHEADER ] { 268 }
+ Constant [ int RPMTAG_SHA1HEADER ] { 269 }
+ Constant [ int RPMTAG_SHA256HEADER ] { 273 }
+ Constant [ int RPMTAG_SIGGPG ] { 262 }
+ Constant [ int RPMTAG_SIGMD5 ] { 261 }
+ Constant [ int RPMTAG_SIGPGP ] { 259 }
+ Constant [ int RPMTAG_SIGSIZE ] { 257 }
+ Constant [ int RPMTAG_SIZE ] { 1009 }
+ Constant [ int RPMTAG_SOURCE ] { 1018 }
+ Constant [ int RPMTAG_SOURCEPACKAGE ] { 1106 }
+ Constant [ int RPMTAG_SOURCEPKGID ] { 1146 }
+ Constant [ int RPMTAG_SOURCERPM ] { 1044 }
+ Constant [ int RPMTAG_SUGGESTFLAGS ] { 5051 }
+ Constant [ int RPMTAG_SUGGESTNAME ] { 5049 }
+ Constant [ int RPMTAG_SUGGESTNEVRS ] { 5059 }
+ Constant [ int RPMTAG_SUGGESTS ] { 5049 }
+ Constant [ int RPMTAG_SUGGESTVERSION ] { 5050 }
+ Constant [ int RPMTAG_SUMMARY ] { 1004 }
+ Constant [ int RPMTAG_SUPPLEMENTFLAGS ] { 5054 }
+ Constant [ int RPMTAG_SUPPLEMENTNAME ] { 5052 }
+ Constant [ int RPMTAG_SUPPLEMENTNEVRS ] { 5060 }
+ Constant [ int RPMTAG_SUPPLEMENTS ] { 5052 }
+ Constant [ int RPMTAG_SUPPLEMENTVERSION ] { 5053 }
+ Constant [ int RPMTAG_TRANSFILETRIGGERCONDS ] { 5088 }
+ Constant [ int RPMTAG_TRANSFILETRIGGERFLAGS ] { 5082 }
+ Constant [ int RPMTAG_TRANSFILETRIGGERINDEX ] { 5080 }
+ Constant [ int RPMTAG_TRANSFILETRIGGERNAME ] { 5079 }
+ Constant [ int RPMTAG_TRANSFILETRIGGERPRIORITIES ] { 5085 }
+ Constant [ int RPMTAG_TRANSFILETRIGGERSCRIPTFLAGS ] { 5078 }
+ Constant [ int RPMTAG_TRANSFILETRIGGERSCRIPTPROG ] { 5077 }
+ Constant [ int RPMTAG_TRANSFILETRIGGERSCRIPTS ] { 5076 }
+ Constant [ int RPMTAG_TRANSFILETRIGGERTYPE ] { 5089 }
+ Constant [ int RPMTAG_TRANSFILETRIGGERVERSION ] { 5081 }
+ Constant [ int RPMTAG_TRIGGERCONDS ] { 5005 }
+ Constant [ int RPMTAG_TRIGGERFLAGS ] { 1068 }
+ Constant [ int RPMTAG_TRIGGERINDEX ] { 1069 }
+ Constant [ int RPMTAG_TRIGGERNAME ] { 1066 }
+ Constant [ int RPMTAG_TRIGGERSCRIPTFLAGS ] { 5027 }
+ Constant [ int RPMTAG_TRIGGERSCRIPTPROG ] { 1092 }
+ Constant [ int RPMTAG_TRIGGERSCRIPTS ] { 1065 }
+ Constant [ int RPMTAG_TRIGGERTYPE ] { 5006 }
+ Constant [ int RPMTAG_TRIGGERVERSION ] { 1067 }
+ Constant [ int RPMTAG_URL ] { 1020 }
+ Constant [ int RPMTAG_V ] { 1001 }
+ Constant [ int RPMTAG_VCS ] { 5034 }
+ Constant [ int RPMTAG_VENDOR ] { 1011 }
+ Constant [ int RPMTAG_VERBOSE ] { 5018 }
+ Constant [ int RPMTAG_VERIFYSCRIPT ] { 1079 }
+ Constant [ int RPMTAG_VERIFYSCRIPTFLAGS ] { 5026 }
+ Constant [ int RPMTAG_VERIFYSCRIPTPROG ] { 1091 }
+ Constant [ int RPMTAG_VERSION ] { 1001 }
+ Constant [ int RPMTAG_XPM ] { 1013 }
}
- Functions {
@@ -35,6 +282,14 @@ Extension [ <persistent> extension #136 rpminfo version 0.2.3 ] {
Parameter #1 [ <optional> $full ]
}
}
+ Function [ <internal:rpminfo> function rpmdbsearch ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $pattern ]
+ Parameter #1 [ <optional> $rpmtag ]
+ Parameter #2 [ <optional> $rpmmire ]
+ }
+ }
Function [ <internal:rpminfo> function rpminfo ] {
- Parameters [3] {
diff --git a/php-pecl-rpminfo.spec b/php-pecl-rpminfo.spec
index 90950fb..f5a3b2b 100644
--- a/php-pecl-rpminfo.spec
+++ b/php-pecl-rpminfo.spec
@@ -1,4 +1,4 @@
-# spec file for php-pecl-rpminfo
+# remirepo spec file for php-pecl-rpminfo
#
# Copyright (c) 2018-2020 Remi Collet
# License: CC-BY-SA
@@ -22,14 +22,14 @@
Summary: RPM information
Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 0.2.3
+Version: 0.3.0
Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: PHP
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
BuildRequires: %{?dtsprefix}gcc
-BuildRequires: rpm-devel >= 4.11.3
+BuildRequires: pkgconfig(rpm) >= 4.11.3
BuildRequires: %{?scl_prefix}php-devel > 7
BuildRequires: %{?scl_prefix}php-pear
@@ -75,7 +75,8 @@ Retrieve RPM information using librpm.
Available functions:
- rpmvercmp to compare 2 EVRs
- rpminfo to retrieve information from a RPM file
-- rpmdbingo to rerieve information from an installed RPM
+- rpmdbinfo to rerieve information from an installed RPM
+- rpmdbsearch to search installed RPMs
Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}.
@@ -224,6 +225,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Thu Mar 12 2020 Remi Collet <remi@remirepo.net> - 0.3.0-1
+- update to 0.3.0
+
* Wed Mar 11 2020 Remi Collet <remi@remirepo.net> - 0.2.3-1
- update to 0.2.3