import datetime;

include('el9x.tpl')

config_opts['root'] = 'el9x74'
config_opts['resultdir'] = "/var/lib/mock/el9x74"

config_opts['module_enable'] = ['php:remi-7.4']

nn = datetime.datetime.now().strftime("%Y%m%d%H%M%S");
config_opts['macros']['%_module_build']="1"
config_opts['macros']['%_module_name']="php"
config_opts['macros']['%_module_stream']="remi-7.4"
config_opts['macros']['%_module_version']="90000" + nn;
config_opts['macros']['%_module_context']="00000000"
config_opts['macros']['%modularitylabel']="%{_module_name}:%{_module_stream}:%{_module_version}:%{_module_context}"

config_opts['yum.conf'] += """
[remi-php74]
name=remi php74
baseurl=file:/home/rpmbuild/site/rpms/enterprise/9/php74/x86_64/
enabled=0
metadata_expire=15

[result-el9x74]
name=result-el9x
baseurl=file:/var/lib/mock/el9x74/
metadata_expire=15
enabled=1

"""