From 4c69d8c7595f5d2b5f41ed84d2cc9d326995957a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 22 Aug 2023 15:11:22 +0200 Subject: Fedora 39 mock config --- fc39x.cfg | 5 +++ fc39x.tpl | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ fc39x74.cfg | 32 +++++++++++++++++ fc39x80.cfg | 32 +++++++++++++++++ fc39x81.cfg | 32 +++++++++++++++++ fc39x82.cfg | 32 +++++++++++++++++ fc39xm.cfg | 15 ++++++++ fc39xr60.cfg | 15 ++++++++ fc39xr62.cfg | 15 ++++++++ fc39xr70.cfg | 15 ++++++++ fc39xr72.cfg | 15 ++++++++ fc39xscl74.cfg | 26 ++++++++++++++ fc39xscl80.cfg | 26 ++++++++++++++ fc39xscl81.cfg | 26 ++++++++++++++ fc39xscl82.cfg | 26 ++++++++++++++ fc39xscl83.cfg | 26 ++++++++++++++ 16 files changed, 448 insertions(+) create mode 100644 fc39x.cfg create mode 100644 fc39x.tpl create mode 100644 fc39x74.cfg create mode 100644 fc39x80.cfg create mode 100644 fc39x81.cfg create mode 100644 fc39x82.cfg create mode 100644 fc39xm.cfg create mode 100644 fc39xr60.cfg create mode 100644 fc39xr62.cfg create mode 100644 fc39xr70.cfg create mode 100644 fc39xr72.cfg create mode 100644 fc39xscl74.cfg create mode 100644 fc39xscl80.cfg create mode 100644 fc39xscl81.cfg create mode 100644 fc39xscl82.cfg create mode 100644 fc39xscl83.cfg diff --git a/fc39x.cfg b/fc39x.cfg new file mode 100644 index 0000000..299ad62 --- /dev/null +++ b/fc39x.cfg @@ -0,0 +1,5 @@ +include('fc39x.tpl') + +# Temp +#config_opts['chroot_setup_cmd'] = 'install @buildsys-build ccache' + diff --git a/fc39x.tpl b/fc39x.tpl new file mode 100644 index 0000000..68b105c --- /dev/null +++ b/fc39x.tpl @@ -0,0 +1,110 @@ +include('vendor.tpl') + +config_opts['root'] = 'fc39x' +config_opts['target_arch'] = 'x86_64' +config_opts['chroot_setup_cmd'] = 'install @buildsys-build gcc' +config_opts['dist'] = 'fc39' # only useful for --resultdir variable subst +config_opts['extra_chroot_dirs'] = [ '/run/lock', ] +config_opts['releasever'] = '39' +config_opts['package_manager'] = 'dnf' + +config_opts['plugin_conf']['ccache_enable'] = True +config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '1G' +config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.fc39x/" + +config_opts['basedir'] = '/dev/shm/' +config_opts['resultdir'] = "/var/lib/mock/fc39x" +config_opts['cleanup_on_success'] = True +config_opts['cleanup_on_failure'] = False + +config_opts['createrepo_on_rpms'] = True +config_opts['createrepo_command'] = '/usr/bin/createrepo -d -q -x *.src.rpm' + +config_opts['macros']['%_topdir']="/builddir/build" +config_opts['macros']['%_smp_mflags']="-j10" +config_opts['macros']['%dist']=".fc39.remi" +config_opts['macros']['%fedora']="39" +config_opts['macros']['%_with_ibase']="1" +config_opts['macros']['%_with_oci8']="1" +config_opts['macros']['%runselftest']="1" + +config_opts['environment']['ACCEPT_EULA'] = 'Y' + +config_opts['yum.conf'] = """ +[main] +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +metadata_expire=80000 +fastestmirror=1 +max_parallel_downloads=6 + +# repos + +[fedora] +name=fedora +metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch +metadata_expire=80000 +##mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-39&arch=x86_64 +#baseurl=http://fr2.rpmfind.net/linux/fedora/releases/39/Everything/x86_64/os/ +# http://ftp.funet.fi/pub/mirrors/ftp.redhat.com/pub/fedora/linux/releases/39/Everything/x86_64/os/ +#baseurl=https://dl.fedoraproject.org/pub/fedora/linux/development/39/Everything/x86_64/os/ + +[updates] +name=updates +metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch +#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f39&arch=x86_64 +#baseurl=http://ftp.funet.fi/pub/mirrors/ftp.redhat.com/pub/fedora/linux/updates/1/x86_64/ +# http://mirrors.ircam.fr/pub/fedora/linux/updates/39/x86_64/ +# http://fr2.rpmfind.net/linux/fedora/updates/39/x86_64/ +#baseurl=https://dl.fedoraproject.org/pub/fedora/linux/updates/33/Everything/x86_64/ +enabled=1 + +[updates-testing] +name=updates-testing +#metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-f$releasever&arch=$basearch +#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f39&arch=x86_64 +baseurl=https://dl.fedoraproject.org/pub/fedora/linux/updates/testing/39/Everything/x86_64/ +enabled=0 + +[remi] +name=remi public +baseurl=file:/home/rpmbuild/site/rpms/fedora/39/remi/x86_64/ +enabled=1 +metadata_expire=10 + +[remi-modular] +name=remi modular +baseurl=file:/home/rpmbuild/site/rpms/fedora/39/modular/x86_64/ +enabled=1 +metadata_expire=10 + +[remi-priv] +name=remi prive +baseurl=file:/home/rpmbuild/site/rpms/priv/x86_64/ +enabled=1 +metadata_expire=10 + +[remi-debuginfo] +name=remi-debuginfo +baseurl=file:/home/rpmbuild/site/rpms/fedora/39/debug-remi/x86_64/ +enabled=1 + +[result-fc39x] +name=result-fc39x +baseurl=file:/var/lib/mock/fc39x/ +metadata_expire=10 +enabled=1 +skip_if_unavailable=True + +[msprod] +name=msprod +baseurl=https://packages.microsoft.com/rhel/8/prod/ +enabled=0 + +""" diff --git a/fc39x74.cfg b/fc39x74.cfg new file mode 100644 index 0000000..4d017a2 --- /dev/null +++ b/fc39x74.cfg @@ -0,0 +1,32 @@ +import datetime; + +include('fc39x.tpl') + +config_opts['chroot_setup_cmd'] = 'install @buildsys-build ccache' +config_opts['root'] = 'fc39x74' +config_opts['resultdir'] = "/var/lib/mock/fc39x74" +config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.fc39x74/" + +config_opts['module_enable'] = ['php:remi-7.4'] +config_opts['module_install'] = ['php:remi-7.4/devel'] + +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']="39" + nn; +config_opts['macros']['%_module_context']="00000000" +config_opts['macros']['%modularitylabel']="%{_module_name}:%{_module_stream}:%{_module_version}:%{_module_context}" + +config_opts['yum.conf'] += """ +[result-fc39x74] +name=result-fc39x74 +baseurl=file:/var/lib/mock/fc39x74/ +enabled=1 +metadata_expire=1 +module_hotfixes=1 +priority=1 +skip_if_unavailable=True + +""" + diff --git a/fc39x80.cfg b/fc39x80.cfg new file mode 100644 index 0000000..cd9edab --- /dev/null +++ b/fc39x80.cfg @@ -0,0 +1,32 @@ +import datetime; + +include('fc39x.tpl') + +config_opts['chroot_setup_cmd'] = 'install @buildsys-build ccache' +config_opts['root'] = 'fc39x80' +config_opts['resultdir'] = "/var/lib/mock/fc39x80" +config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.fc39x80/" + +config_opts['module_enable'] = ['php:remi-8.0'] +config_opts['module_install'] = ['php:remi-8.0/devel'] + +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-8.0" +config_opts['macros']['%_module_version']="39" + nn; +config_opts['macros']['%_module_context']="00000000" +config_opts['macros']['%modularitylabel']="%{_module_name}:%{_module_stream}:%{_module_version}:%{_module_context}" + +config_opts['yum.conf'] += """ +[result-fc39x80] +name=result-fc39x80 +baseurl=file:/var/lib/mock/fc39x80/ +enabled=1 +metadata_expire=1 +module_hotfixes=1 +priority=1 +skip_if_unavailable=True + +""" + diff --git a/fc39x81.cfg b/fc39x81.cfg new file mode 100644 index 0000000..bc3481f --- /dev/null +++ b/fc39x81.cfg @@ -0,0 +1,32 @@ +import datetime; + +include('fc39x.tpl') + +config_opts['chroot_setup_cmd'] = 'install @buildsys-build ccache' +config_opts['root'] = 'fc39x81' +config_opts['resultdir'] = "/var/lib/mock/fc39x81" +config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.fc39x81/" + +config_opts['module_enable'] = ['php:remi-8.1'] +config_opts['module_install'] = ['php:remi-8.1/devel'] + +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-8.1" +config_opts['macros']['%_module_version']="39" + nn; +config_opts['macros']['%_module_context']="00000000" +config_opts['macros']['%modularitylabel']="%{_module_name}:%{_module_stream}:%{_module_version}:%{_module_context}" + +config_opts['yum.conf'] += """ +[result-fc39x81] +name=result-fc39x81 +baseurl=file:/var/lib/mock/fc39x81/ +enabled=1 +metadata_expire=1 +module_hotfixes=1 +priority=1 +skip_if_unavailable=True + +""" + diff --git a/fc39x82.cfg b/fc39x82.cfg new file mode 100644 index 0000000..409de2f --- /dev/null +++ b/fc39x82.cfg @@ -0,0 +1,32 @@ +import datetime; + +include('fc39x.tpl') + +config_opts['chroot_setup_cmd'] = 'install @buildsys-build ccache' +config_opts['root'] = 'fc39x82' +config_opts['resultdir'] = "/var/lib/mock/fc39x82" +config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.fc39x82/" + +config_opts['module_enable'] = ['php:remi-8.2'] +config_opts['module_install'] = ['php:remi-8.2/devel'] + +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-8.2" +config_opts['macros']['%_module_version']="39" + nn; +config_opts['macros']['%_module_context']="00000000" +config_opts['macros']['%modularitylabel']="%{_module_name}:%{_module_stream}:%{_module_version}:%{_module_context}" + +config_opts['yum.conf'] += """ +[result-fc39x82] +name=result-fc39x82 +baseurl=file:/var/lib/mock/fc39x82/ +enabled=1 +metadata_expire=1 +module_hotfixes=1 +priority=1 +skip_if_unavailable=True + +""" + diff --git a/fc39xm.cfg b/fc39xm.cfg new file mode 100644 index 0000000..cd4bd83 --- /dev/null +++ b/fc39xm.cfg @@ -0,0 +1,15 @@ +import datetime; + +include('fc39x.tpl') + +config_opts['root'] = 'fc39x' +config_opts['resultdir'] = "/var/lib/mock/fc39x" + +nn = datetime.datetime.now().strftime("%Y%m%d%H%M%S"); +config_opts['macros']['%_module_build']="1" +config_opts['macros']['%_module_name']="memcached" +config_opts['macros']['%_module_stream']="remi" +config_opts['macros']['%_module_version']="39" + nn; +config_opts['macros']['%_module_context']="00000000" +config_opts['macros']['%modularitylabel']="%{_module_name}:%{_module_stream}:%{_module_version}:%{_module_context}" + diff --git a/fc39xr60.cfg b/fc39xr60.cfg new file mode 100644 index 0000000..dbff5cc --- /dev/null +++ b/fc39xr60.cfg @@ -0,0 +1,15 @@ +import datetime; + +include('fc39x.tpl') + +config_opts['root'] = 'fc39x' +config_opts['resultdir'] = "/var/lib/mock/fc39x" + +nn = datetime.datetime.now().strftime("%Y%m%d%H%M%S"); +config_opts['macros']['%_module_build']="1" +config_opts['macros']['%_module_name']="redis" +config_opts['macros']['%_module_stream']="remi-6.0" +config_opts['macros']['%_module_version']="39" + nn; +config_opts['macros']['%_module_context']="00000000" +config_opts['macros']['%modularitylabel']="%{_module_name}:%{_module_stream}:%{_module_version}:%{_module_context}" + diff --git a/fc39xr62.cfg b/fc39xr62.cfg new file mode 100644 index 0000000..f70bca0 --- /dev/null +++ b/fc39xr62.cfg @@ -0,0 +1,15 @@ +import datetime; + +include('fc39x.tpl') + +config_opts['root'] = 'fc39x' +config_opts['resultdir'] = "/var/lib/mock/fc39x" + +nn = datetime.datetime.now().strftime("%Y%m%d%H%M%S"); +config_opts['macros']['%_module_build']="1" +config_opts['macros']['%_module_name']="redis" +config_opts['macros']['%_module_stream']="remi-6.2" +config_opts['macros']['%_module_version']="39" + nn; +config_opts['macros']['%_module_context']="00000000" +config_opts['macros']['%modularitylabel']="%{_module_name}:%{_module_stream}:%{_module_version}:%{_module_context}" + diff --git a/fc39xr70.cfg b/fc39xr70.cfg new file mode 100644 index 0000000..d6b3a27 --- /dev/null +++ b/fc39xr70.cfg @@ -0,0 +1,15 @@ +import datetime; + +include('fc39x.tpl') + +config_opts['root'] = 'fc39x' +config_opts['resultdir'] = "/var/lib/mock/fc39x" + +nn = datetime.datetime.now().strftime("%Y%m%d%H%M%S"); +config_opts['macros']['%_module_build']="1" +config_opts['macros']['%_module_name']="redis" +config_opts['macros']['%_module_stream']="remi-7.0" +config_opts['macros']['%_module_version']="39" + nn; +config_opts['macros']['%_module_context']="00000000" +config_opts['macros']['%modularitylabel']="%{_module_name}:%{_module_stream}:%{_module_version}:%{_module_context}" + diff --git a/fc39xr72.cfg b/fc39xr72.cfg new file mode 100644 index 0000000..b8cfe4d --- /dev/null +++ b/fc39xr72.cfg @@ -0,0 +1,15 @@ +import datetime; + +include('fc39x.tpl') + +config_opts['root'] = 'fc39x' +config_opts['resultdir'] = "/var/lib/mock/fc39x" + +nn = datetime.datetime.now().strftime("%Y%m%d%H%M%S"); +config_opts['macros']['%_module_build']="1" +config_opts['macros']['%_module_name']="redis" +config_opts['macros']['%_module_stream']="remi-7.2" +config_opts['macros']['%_module_version']="39" + nn; +config_opts['macros']['%_module_context']="00000000" +config_opts['macros']['%modularitylabel']="%{_module_name}:%{_module_stream}:%{_module_version}:%{_module_context}" + diff --git a/fc39xscl74.cfg b/fc39xscl74.cfg new file mode 100644 index 0000000..549c360 --- /dev/null +++ b/fc39xscl74.cfg @@ -0,0 +1,26 @@ +include('fc39x.tpl') + +config_opts['root'] = 'scl74fc39x' +config_opts['chroot_setup_cmd'] = 'install @buildsys-build ccache scl-utils-build php74-build php74-php-devel php74-php-pear' +config_opts['resultdir'] = "/var/lib/mock/scl74fc39x" +config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.fc39xscl74/" + +# Only needed to build main SCL package +config_opts['macros']['%scl_vendor']="remi" +config_opts['macros']['%_scl_prefix']="/opt/remi" + +config_opts['macros']['%nophptag']="1" +# Official (but temporary) workaround for https://bugzilla.redhat.com/1484390 +#config_opts['macros']['%_debugsource_packages']="%nil" +# workaround for https://bugzilla.redhat.com/1485310 +config_opts['macros']['%_build_id_links']='none' + +config_opts['yum.conf'] += """ +[result-scl74fc39x] +name=result-scl74fc39x +baseurl=file:///var/lib/mock/scl74fc39x/ +enabled=1 +metadata_expire=10 +skip_if_unavailable=True + +""" diff --git a/fc39xscl80.cfg b/fc39xscl80.cfg new file mode 100644 index 0000000..61e8327 --- /dev/null +++ b/fc39xscl80.cfg @@ -0,0 +1,26 @@ +include('fc39x.tpl') + +config_opts['root'] = 'scl80fc39x' +config_opts['chroot_setup_cmd'] = 'install @buildsys-build ccache scl-utils-build php80-build php80-php-devel php80-php-pear' +config_opts['resultdir'] = "/var/lib/mock/scl80fc39x" +config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.fc39xscl80/" + +# Only needed to build main SCL package +config_opts['macros']['%scl_vendor']="remi" +config_opts['macros']['%_scl_prefix']="/opt/remi" + +config_opts['macros']['%nophptag']="1" +# Official (but temporary) workaround for https://bugzilla.redhat.com/1484390 +#config_opts['macros']['%_debugsource_packages']="%nil" +# workaround for https://bugzilla.redhat.com/1485310 +config_opts['macros']['%_build_id_links']='none' + +config_opts['yum.conf'] += """ +[result-scl80fc39x] +name=result-scl80fc39x +baseurl=file:///var/lib/mock/scl80fc39x/ +enabled=1 +metadata_expire=10 +skip_if_unavailable=True + +""" diff --git a/fc39xscl81.cfg b/fc39xscl81.cfg new file mode 100644 index 0000000..de4380c --- /dev/null +++ b/fc39xscl81.cfg @@ -0,0 +1,26 @@ +include('fc39x.tpl') + +config_opts['root'] = 'scl81fc39x' +config_opts['chroot_setup_cmd'] = 'install @buildsys-build ccache scl-utils-build php81-build php81-php-devel php81-php-pear' +config_opts['resultdir'] = "/var/lib/mock/scl81fc39x" +config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.fc39xscl81/" + +# Only needed to build main SCL package +config_opts['macros']['%scl_vendor']="remi" +config_opts['macros']['%_scl_prefix']="/opt/remi" + +config_opts['macros']['%nophptag']="1" +# Official (but temporary) workaround for https://bugzilla.redhat.com/1484390 +#config_opts['macros']['%_debugsource_packages']="%nil" +# workaround for https://bugzilla.redhat.com/1485310 +config_opts['macros']['%_build_id_links']='none' + +config_opts['yum.conf'] += """ +[result-scl81fc39x] +name=result-scl81fc39x +baseurl=file:///var/lib/mock/scl81fc39x/ +enabled=1 +metadata_expire=10 +skip_if_unavailable=True + +""" diff --git a/fc39xscl82.cfg b/fc39xscl82.cfg new file mode 100644 index 0000000..ef6a5be --- /dev/null +++ b/fc39xscl82.cfg @@ -0,0 +1,26 @@ +include('fc39x.tpl') + +config_opts['root'] = 'scl82fc39x' +config_opts['chroot_setup_cmd'] = 'install @buildsys-build ccache scl-utils-build php82-build php82-php-devel php82-php-pear' +config_opts['resultdir'] = "/var/lib/mock/scl82fc39x" +config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.fc39xscl82/" + +# Only needed to build main SCL package +config_opts['macros']['%scl_vendor']="remi" +config_opts['macros']['%_scl_prefix']="/opt/remi" + +config_opts['macros']['%nophptag']="1" +# Official (but temporary) workaround for https://bugzilla.redhat.com/1484390 +#config_opts['macros']['%_debugsource_packages']="%nil" +# workaround for https://bugzilla.redhat.com/1485310 +config_opts['macros']['%_build_id_links']='none' + +config_opts['yum.conf'] += """ +[result-scl82fc39x] +name=result-scl82fc39x +baseurl=file:///var/lib/mock/scl82fc39x/ +enabled=1 +metadata_expire=10 +skip_if_unavailable=True + +""" diff --git a/fc39xscl83.cfg b/fc39xscl83.cfg new file mode 100644 index 0000000..4e7c7b0 --- /dev/null +++ b/fc39xscl83.cfg @@ -0,0 +1,26 @@ +include('fc39x.tpl') + +config_opts['root'] = 'scl83fc39x' +config_opts['chroot_setup_cmd'] = 'install @buildsys-build ccache scl-utils-build php83-build php83-php-devel php83-php-pear' +config_opts['resultdir'] = "/var/lib/mock/scl83fc39x" +config_opts['plugin_conf']['ccache_opts']['dir'] = "/dev/shm/ccache.fc39xscl83/" + +# Only needed to build main SCL package +config_opts['macros']['%scl_vendor']="remi" +config_opts['macros']['%_scl_prefix']="/opt/remi" + +config_opts['macros']['%nophptag']="1" +# Official (but temporary) workaround for https://bugzilla.redhat.com/1484390 +#config_opts['macros']['%_debugsource_packages']="%nil" +# workaround for https://bugzilla.redhat.com/1485310 +config_opts['macros']['%_build_id_links']='none' + +config_opts['yum.conf'] += """ +[result-scl83fc39x] +name=result-scl83fc39x +baseurl=file:///var/lib/mock/scl83fc39x/ +enabled=1 +metadata_expire=10 +skip_if_unavailable=True + +""" -- cgit