0

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

How do I add second source ?

For example

Source: /root/test.sh /root/calculate.sh ( is illegal)

The SPEC file

 Summary: An example tool. To show a simple rpm build of the tool.
 Name: test.sh
 Version: 6.2
 Release: 2
 Source: /root/test.sh 
 URL: http://www.gnomovision.com/cdplayer/cdplayer.html
 Group: Development/Debuggers
 BuildRoot:/tmp/MY_RPM_TESTS
 License: OtherLicense
 %description

 %install
 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

%files
/home/test.sh
/home/home1/test.sh


%post -p /bin/ksh

/home/home1/test.sh

uname -a
print "Now we wait for sleep" ; sleep  1
NUM=100
print $NUM
Scott Pack
  • 14,907
  • 10
  • 53
  • 83
yael
  • 1,389
  • 4
  • 14
  • 13

1 Answers1

0

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

Quote:

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
Mat
  • 1,536
  • 1
  • 17
  • 21