如何在rpm中指定perl的自定义位置

时间:2013-05-30 17:26:53

标签: perl maven rpm

我使用maven创建了rpm,maven创建了以下spec文件:

cod.spec

Name: cod
Version: 1.0
Release: SNAPSHOT20130528162816
Summary: cod
License: test
Group: Applications/Productivity
autoprov: yes
autoreq: yes
BuildRoot: /extra/cod/www/developer/target/rpm/cod/buildroot

%description

%install
if [ -e $RPM_BUILD_ROOT ];
then
  mv /extra/cod/www/developer/target/rpm/cod/tmp-buildroot/* $RPM_BUILD_ROOT
else
  mv /extra/cod/www/developer/target/rpm/cod/tmp-buildroot $RPM_BUILD_ROOT
fi

%files

%attr(440,cod,cod) "/extra/codt/cod/bin"
%attr(660,codt,codt) "/extra/codt/cod/cgi-bin"

当我尝试通过rpm -ivh安装rpm时,我得到:

error: Failed dependencies:
    /usr/co//bin/perl is needed by cod-1.0-SNAPSHOT20130528162816.x86_64
    /usr/co/bin/perl is needed by cod-1.0-SNAPSHOT20130528162816.x86_64
    perl(Algorithm::Diff) is needed by cod-1.0-SNAPSHOT20130528162816.x86_64
    perl(Apache2::Request) is needed by cod-1.0-SNAPSHOT20130528162816.x86_64

0 个答案:

没有答案