Re: Re: Re: Creating relocatable packages

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

 



On Sat, 2004-10-23 at 07:12 +0000, Shiva Varma wrote:
> hi paul,
>   please help me in creating the relocatable package
> my spec file looks like this 

What version of rpm.  The below works for me.

$ rpm -q rpm 
rpm-4.3.2-13

$ rpm -qpl relocator-1.0-1.noarch.rpm
/usr/opt/relocator
/usr/opt/relocator/relocator
# rpm -ivh --prefix /usr/opt/foo ../RPMS/relocator-1.0-1.
$ rpm -ivh --prefix /usr/opt/foo ../RPMS/relocator-1.0-1.n oarch.rpm
Preparing...                ###########################################
[100%]
   1:relocator              ###########################################
[100%]
$ rpm -ql relocator
/usr/opt/foo/relocator
/usr/opt/foo/relocator/relocator

My sample spec attached, hopefully this will be of some use.

Paul
Summary: Relocator
Name: relocator
Version: 1.0
Release: 1
License: BSD
Group: Development/Libraries
AutoReqProv: no
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Prefix: /usr/opt
%description
Other.

%prep

%build

%install
install -d -m 755 $RPM_BUILD_ROOT/usr/opt/%{name}
echo "%{name} %{version}" > $RPM_BUILD_ROOT/usr/opt/%{name}/%{name}


%clean

%files
%defattr(0644,root,root,0755)
%dir %{prefix}/%{name}
     %{prefix}/%{name}/%{name}


_______________________________________________
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