Fresh specs for RHEL-based and RHED-derived distributions (CentOS, Amazon Linux AMI)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
helpers
sources
specs
README.md

README.md

rpm-packages

Fresh specs for RHEL-based and RHEL-derived distributions (CentOS, Amazon Linux AMI)

Brush up

Put in your /etc/mock/site-defaults.cfg

config_opts['scm_opts']['method'] = 'git'
config_opts['scm_opts']['git_get'] = "bash -c 'git clone SCM_BRN git://github.com/imankulov/rpm-packages.git SCM_PKG && mv SCM_PKG/sources/* SCM_PKG/'"
config_opts['scm_opts']['spec'] = 'specs/SCM_PKG.spec'
config_opts['scm_opts']['git_timestamps'] = False
config_opts['scm_opts']['ext_src_dir'] = '/tmp/sources'

Then download sources from specs. You may pick one or more specfiles.

./helpers/download_sources.py specs/*.spec 

Then build a package of your dream.

mock --scm-enable  --scm-option package=python-pip -v

After the build yo may use ./helpers/sync_to_s3.sh to build the repo and publish it to Amazon S3:

echo 'export YUM_S3_BUCKET=name-of-the-bucket' >> ~/.bashrc
source ~/.bashrc

./helpers/sync_to_s3.sh