Re: Re: Re: Creating relocatable packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi paul,
  please help me in creating the relocatable package
my spec file looks like this 
.....
.....
Prefix: /usr/src/redhat/SOURCES/Mypc
BuildRoot: /usr/src/redhat/SOURCES/Mypc/SHIVA

%prep
RPM_BUILD_DIR=/usr/src/redhat/SOURCES/Mypc
echo $RPM_BUILD_DIR
rm -rf $RPM_BUILD_DIR/shiva_test

%build
make

%install
make ROOT="$RPM_BUILD_ROOT" install

%files
/usr/src/redhat/SOURCES/Mypc/SHIVA/shiva_test
#/usr/src/redhat/BUILD/Makefile

%clean
  

I have included the prefix above.
After creating the spec file if i try installing the package on a different machine as
rpm -i --prefix /usr/varma/ shiva-test.spec i am getting the error
error: package is not relocateable.

Is there anything else i need to do???


Thanks in advance
Shiva
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux