diff options
author | Remi Collet <remi@remirepo.net> | 2020-03-27 10:49:15 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-03-27 10:49:15 +0100 |
commit | 723cc80f4e3e8091c7d5da853431dfc0e813586c (patch) | |
tree | 7049e765fba06c671ea232e6b40b7b849c2a2524 /mkmodular | |
parent | cc39e34ffb47ba49d58959f6402731ed51efe6a2 (diff) |
mkmodular: add php-extras (temp) repository
Diffstat (limited to 'mkmodular')
-rwxr-xr-x | mkmodular | 55 |
1 files changed, 55 insertions, 0 deletions
@@ -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"; |