[Open-scap] Creating RPMs: probes removed

Fen Labalme fen at civicactions.com
Wed May 13 19:18:30 UTC 2015


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.

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.

Pointers/ help?
Thanks,
=Fen

sudo yumdownloader --source openscap-utils
mkdir ~/rpmbuild
rpm -ihv openscap-1.1.1-3.el7.src.rpm
cd ~/rpmbuild/SOURCES
rm *
wget https://fedorahosted.org/releases/o/p/openscap/openscap-1.2.3.tar.gz
cd ~/rpmbuild/SPECS
sed -i 's/^\(Version:.*\)1.1.1/\11.2.3/' openscap.spec
sed -i 's/^\(Release:.*\)3\(.*\)/\10\2/' openscap.spec
sed -i '/.*patch.*/d' openscap.spec
sed -i 's/^\(.*GConf2-devel\)/#\1/' openscap.spec
sed -i 's/^\(.*probe_gconf\)/#\1/' openscap.spec
sed -i 's/^\(.*probe_systemdunitdependency\)/#\1/' openscap.spec
sed -i 's/^\(.*probe_systemdunitproperty\)/#\1/' openscap.spec
sed -i 's/^\(.*\)README/\1README.md/' openscap.spec
rpmbuild -ba openscap.spec

-- 
Fen Labalme, CivicActions.com
Engineering | Quality | Systems
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/open-scap-list/attachments/20150513/3b70f76f/attachment.htm>


More information about the Open-scap-list mailing list