LinuxCzar

Engineering Software, Linux, and Observability. The website of Jack Neely.    

Lessons in RPM Packaging

  May 29, 2008   Operations

I do nasty things to RPM packages, but I feel as if I should point out some great examples of things YOU SHOULD NEVER DO.  Such as:

Version: %(echo `awk '{ print $1 }' %{SOURCE1}`)
#Release: %(echo `awk '{ print $2 }' %{SOURCE1}`)%{?dist}
Release: %{expand: %(awk '{ print $2 }' %{SOURCE1})

 Previous  Up  Next


comments powered by Disqus