Product SiteDocumentation Site

8.2.3.4. The install section

The spec file install section holds the commands necessary to install the newly built application or library. In most cases, your install section should clean out the Buildroot directory and run the make install command. For example:
%install
rm -fr $RPM_BUILD_ROOT
make install
The install section starts with an %install statement.