The build Macro

After you have prepped the source, you need to compile the code for your system.

The %build macro enables you to tell RPM how to compile the source code. You can use any shell command here, which can be a configure script or a simple make for the Makefile. In this case, you are just running make in the source directory to compile logcheck.

%build make

The macro enters the directory of the source code and runs any programs you define in the %build section. Anything you run on the command line to compile the application can be entered here.

Next, you have to create the %install macro (see Listing 12-8).

Was this article helpful?

0 0

Post a comment