title: using jenkins to build RPM packages
body: <p>I want to use Jenkins for creating RPM packages to deploy code and scripts onto a Linux redhat machine(s)
  So the applications are a mix of technologies (no compiling needed) i just need to package up the applications deploy them to the correct location restart apache</p>
  
  <p>Would anybody have some instructions on how to do these steps for a total Newbie:</p>
  
  <p>Some questions:</p>
  
  <ol>
  <li><p>Do i need to install jenkins on a local linux machine if im going to be creating RPM's that will be deployed on to linux redhat machine (i was hoping to install jenkins on windows)  </p></li>
  <li><p>Does anybody have a example of creating a package out of a local folder (no source control for the moment)
  I want to just specify the directory of where to take the code from and specify where to deploy the code to on a machine the rpm is installed on</p></li>
  <li><p>On the destination machine i want to run something like 
  yum -install mypackage-version12.rpm
  and it will install the code/scripts to the specified directory and restart apache
  i need an example of this also.</p></li>
  </ol>
  
  <p>Thanks</p>