summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-03-27 10:49:15 +0100
committerRemi Collet <remi@remirepo.net>2020-03-27 10:49:15 +0100
commit723cc80f4e3e8091c7d5da853431dfc0e813586c (patch)
tree7049e765fba06c671ea232e6b40b7b849c2a2524
parentcc39e34ffb47ba49d58959f6402731ed51efe6a2 (diff)
mkmodular: add php-extras (temp) repository
-rwxr-xr-xmkmodular55
1 files changed, 55 insertions, 0 deletions
diff --git a/mkmodular b/mkmodular
index 82242b6c..0a4ad657 100755
--- a/mkmodular
+++ b/mkmodular
@@ -72,6 +72,49 @@ data:
EOT;
+$template_phpextras = <<< EOT
+---
+document: modulemd
+version: 2
+data:
+ name: php-extras
+ stream: @VERSION@
+ version: @DATE@
+ context: 00000000
+ arch: @ARCH@
+ summary: PHP scripting language
+ description: >-
+ Additional package for php @VERSION@ module.
+ license:
+ module:
+ - GPLv2+
+ content:
+ - BSD
+ - BSD and LGPLv3+
+ - PHP
+ - PHP and BSD
+ - PHP and LGPLv2 and OpenLDAP
+ - PHP and LGPLv2+
+ - PHP and Zend and BSD and MIT and ASL 1.0
+ dependencies:
+ - buildrequires:
+ platform: [@DIST@]
+ requires:
+@DEPS@
+ references:
+ documentation: http://php.net/
+ tracker: https://bugs.php.net/
+ profiles:
+ common:
+ rpms:
+ - php-sodium
+ artifacts:
+ rpms:
+@RPMS@
+...
+
+EOT;
+
$template_redis = <<< EOT
---
document: modulemd
@@ -405,6 +448,18 @@ if (count($_SERVER['argv']) < 2 || in_array('el8', $_SERVER['argv'])) {
createRepo($dest, $mod);
}
+if (count($_SERVER['argv']) > 1 && in_array('epel', $_SERVER['argv'])) {
+ $dest = 'temp/epel-8-modular';
+ echo "Populate $dest\n";
+ cleanup($dest);
+ $deps = ['platform' => 'el8', 'php' => '7.2'];
+ $mod = genModule('temp/epel-8-php-7.2', $dest, '*.rpm', '7.2', 'x86_64', $deps, $template_phpextras);
+ $deps = ['platform' => 'el8', 'php' => '7.3'];
+ $mod .= genModule('temp/epel-8-php-7.3', $dest, '*.rpm', '7.3', 'x86_64', $deps, $template_phpextras);
+ $mod .= genDefaults('php-extras', '7.2', ['7.2', 7.3]);
+ createRepo($dest, $mod);
+}
+
if (count($_SERVER['argv']) < 2 || in_array('el7', $_SERVER['argv'])) {
$dest = 'enterprise/7/modular-test/x86_64';
echo "Populate $dest\n";