Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following spec file (below), I want to add to the Source - /root/

How do I add second source ?

For example

Source: /root/ /root/ ( is illegal)

The SPEC file

 Summary: An example tool. To show a simple rpm build of the tool.
 Version: 6.2
 Release: 2
 Source: /root/ 
 Group: Development/Debuggers
 License: OtherLicense

 rm -rf %{buildroot}

 mkdir -p %{buildroot}/home
 mkdir -p %{buildroot}/home/home1

cp %SOURCE0 %{buildroot}/home
cp %SOURCE0 %{buildroot}/home/home1

%pre -p /bin/ksh
uname -a


%post -p /bin/ksh


uname -a
print "Now we wait for sleep" ; sleep  1
print $NUM
share|improve this question
up vote 0 down vote accepted

You can find this information on TLDP's RPM-HOWTO


You can also specify more than one source file using lines like:

Source0: blah-0.tar.gz
Source1: blah-1.tar.gz
Source2: fooblah.tar.gz
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.