From 723cc80f4e3e8091c7d5da853431dfc0e813586c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 27 Mar 2020 10:49:15 +0100 Subject: mkmodular: add php-extras (temp) repository --- mkmodular | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'mkmodular') 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"; -- cgit