Hello,I'am playing around building an RPM from a tar.gz archive.
Everything goes well except the fact that only files are embedded
into the final package,dirs and subdirs not.
I.E. from archive root.tar.gz containing:
/root
file1.bin
file2.bin
/subroot1
file3.bin
file4.bin
attempting the %install command into my .SPEC file I tried:
%install
mkdir -p $RPM_BUILD_ROOT/home/root
mkdir -p $RPM_BUILD_ROOT/home/root/subroot1
cp %{builddir}/file1.bin $RPM_BUILD_ROOT/home/root/file1.bin
cp %{builddir}/file2.bin $RPM_BUILD_ROOT/home/root/file2.bin
cp -r %{builddir}/subroot1 $RPM_BUILD_ROOT/home/root/subroot1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Then,installing such rpm I find only related files copied into final locations,
the related subdirs are missed.
Where I'am wrong?
How the right command inside SPEC file to copy the original subdir into the
building RPM is?
Many Thank's
--
Regards,: Marco Calistri <[EMAIL PROTECTED]>
gpg key available on http://www.qsl.net/ik5bcu
Xfmail 1.4.7p2 on linux RedHat 6.2
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs