<div dir="ltr">I created some RPMs for openscap-1.2.3 on RHEL 7. To do so, I started with the tarball and modified/removed a few lines from the openscap.spec (full process below). I'm not too worried about removing the gconf dependency as these RPMs will only be used on headless servers with no Gnome packages.<div><br></div><div>But I also removed `probe_systemdunitdependency` and `probe_systemdunitproperty` - been doing some research but nothing yet definitive as to whether these are critical or not.</div><div><br></div><div>Pointers/ help?</div><div>Thanks,</div><div>=Fen</div><div><br></div><div><div>sudo yumdownloader --source openscap-utils</div><div>mkdir ~/rpmbuild</div><div>rpm -ihv openscap-1.1.1-3.el7.src.rpm</div><div>cd ~/rpmbuild/SOURCES</div><div>rm *</div><div>wget <a href="https://fedorahosted.org/releases/o/p/openscap/openscap-1.2.3.tar.gz">https://fedorahosted.org/releases/o/p/openscap/openscap-1.2.3.tar.gz</a></div><div>cd ~/rpmbuild/SPECS</div><div>sed -i 's/^\(Version:.*\)1.1.1/\11.2.3/' openscap.spec</div><div>sed -i 's/^\(Release:.*\)3\(.*\)/\10\2/' openscap.spec</div><div>sed -i '/.*patch.*/d' openscap.spec</div><div>sed -i 's/^\(.*GConf2-devel\)/#\1/' openscap.spec</div><div>sed -i 's/^\(.*probe_gconf\)/#\1/' openscap.spec</div><div>sed -i 's/^\(.*probe_systemdunitdependency\)/#\1/' openscap.spec</div><div>sed -i 's/^\(.*probe_systemdunitproperty\)/#\1/' openscap.spec</div><div>sed -i 's/^\(.*\)README/\1README.md/' openscap.spec</div><div>rpmbuild -ba openscap.spec</div><div><br></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Fen Labalme, CivicActions.com</div><div>Engineering | Quality | Systems</div><div><br></div></div></div>
</div></div></div>