我有以下规范文件(如下),我想添加到源中 -/root/calculate.sh
我如何添加第二个来源?
例如
Source: /root/test.sh /root/calculate.sh
(是非法的)
SPEC 文件
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
答案1
您可以在 TLDP 上找到此信息RPM 指南
引用:
您还可以使用如下行指定多个源文件:
Source0: blah-0.tar.gz
Source1: blah-1.tar.gz
Source2: fooblah.tar.gz