Packaging libopenscap for Ubuntu - uyuni-project/uyuni GitHub Wiki

This is how openscap package was built for Ubuntu:

$ dpkg-source -x openscap_1.2.15-1build1.dsc
$ cd openscap-1.2.15
$ debchange -D bionic -b -v 1.2.15-1build1~uyuni1 "Comentari"
$ debuild -S -sa -k0x<GPG key hash>

Note we are adding the "~uyuni1" suffix. This is so it is seen as older than the same version you would find in Ubuntu repositories. The reason is that this package is for the use case you don't have the required Ubuntu repositories, so you can install our package instead. If you have the Ubuntu ones, then you will get those, instead.