By thomas, Fri, 09/11/2009 - 16:57
A spec file is where you specify all the information about your package. How to build the package, which files are installed the package, how to uninstall the package and what to do after installing or uninstalling the package.

There are several sections of a spec file.

  • header
  • %description
  • %prep
  • %build
  • %install
  • %pre
  • %post
  • %preun
  • %postun
  • %files
  • %changelog