1,885
edits
Changes
→Writing a specfile
== Writing a specfile ==
* <code>rpmdev-newspec ''packagename''</code>
* Sections
# %prep - commands to prepare the package for building
# %build - commands to build the package
# %install - commands to install the built files
# %check - commands to check/test the built files (optional, often not included)
# %clean - commands to clean up the disk space
# %files - list of files to be included in the pacakge
# %changelog - record of the package's change-history
* Scripts
** %pre
** %post
** %preun
** %postun
* Macros
** %{_tmppath}
** %{buildroot}
** %{_bindir}
** %{_datadir}
** %{_mandir}
** %{_smp_flags}
** %setup
** %configure
** %makeinstall
== Creating a Simple Package ==