GitHunt
MB

mbukatov/usmqe-specfiles

USM QE specfiles.

==================
USM QE Specfiles

Spec files of of USM QE server tools packaged as a dependent software collection_ extending standard rh-python35_ software collection_.

Creating new Software collection extending an existing one

This is a quick overview of extending rh-python35_ software collection_
with another one, which would contain packages with usm qe server tools.

First of all, we need to come up with the proper name for new software
collection. We are going to use rh-usmqeserver10, where:

  • scl name prefix: rh- is vendor (aka provider or organization) id
  • scl name base: usmqeserver
  • scl name version: 10 (this stands for 1.0)

Now let's generate initial specfile of software collection metapackage_ (via
spec2scl_)::

$ cd ~/projects/usmqe-specfiles
$ spec2scl --meta-specfile rh-usmqeserver10 > rh-usmqeserver10.spec

Such metapackage spec file needs a heavy editing though (TODO: describe the
changes needed).

And now something completelly different: based on the sdist tarball,
generate the initial spec file for mrglog module (via pyp2rpm
)::

$ cd ~/projects/usmqe-specfiles
$ pyp2rpm -t epel7 -b 3 ~/rpmbuild/SOURCES/mrglog-0.1.1.tar.gz > python-mrglog.spec

The specfile needs inspection and changes (eg. add Source0)::

$ vim python-mrglog.spec

And again, this spec file needs a heavy editing (TODO: pyp2rpm template).

.. _sdist tarball: https://packaging.python.org/glossary/?highlight=sdist#term-source-distribution-or-sdist
.. _pyp2rpm: https://github.com/fedora-python/pyp2rpm
.. _spec2scl: https://bitbucket.org/bkabrda/spec2scl
.. _mock: https://github.com/rpm-software-management/mock/wiki#using-mock-outside-your-git-sandbox
.. _copr: https://developer.fedoraproject.org/deployment/copr/about.html
.. _copr-cli tool: https://developer.fedoraproject.org/deployment/copr/copr-cli.html

.. _software collection: https://www.softwarecollections.org/en/about/
.. _software collection metapackage: https://www.softwarecollections.org/en/docs/guide/#sect-Meta_Package
.. _dependent software collection: https://access.redhat.com/documentation/en-US/Red_Hat_Software_Collections/2/html-single/Packaging_Guide/index.html#sect-Extending_the_python27_and_rh-python34_Software_Collections
.. _rh-python35: https://www.softwarecollections.org/en/scls/rhscl/rh-python35/

Contributors

Apache License 2.0
Created November 4, 2016
Updated April 22, 2024
mbukatov/usmqe-specfiles | GitHunt