Ok I already said that I know RPM isn't needed for this, but had to do this this way anyway, so let's move on from what RPM is or is not for etc.
Your second comment is halfway helpful. Could you please explain in a bit more detail maybe with code lines as well?
There is no tarball to begin with. Assume a regular uncompressed directory is what we start with. Are you suggesting that I use say %prep section to do:
%prep
1) a manual tarring of the starting dir: tar someDefaultLocation/dirTObeMoved
2) move the resulting tarball to BUILDROOT directory (what for? because %files section requires them to be there??)
3) untar the tarball manually inside BUILDROOT
%files
4) list the topmost directory BUILDROOT/dirTobeMoved in the files section (x/y/z/* notation works here?)
done?
Will it then unpack all the files listed in 4 wherever I run rpm -Uvh createdRpm.rpm?
Because so far that is not working...
What all those warnings I got (see my OP)?
When I run the rpm -Uvh without dependency suppression I get these:
error: Failed dependencies:
perl(Data::Types) is needed by myRPM-1-1.el6.noarch
perl(SOAP::Lite) is needed by myRPM-1-1.el6.noarch
perl(SOAP::Transport::HTTP) is needed by myRPM-1-1.el6.noarch
perl(Text::CSV) is needed by myRPM-1-1.el6.noarch
Do I need these packages? All I am trying to do is move a directory, what do I need perl stuff for?
Thanks in advance. If there is a better forum where to post this, please let me know.
Edit:
So I tried following your other post here:
http://www.linuxquestions.org/questi...c-file-648210/
and moved all the operations in the spec such as moving all the files from the sourceDir to topDir/BUILD into %prep.
Still when it gets to %install section I get:
+ /usr/lib/rpm/brp-compress
/usr/lib/rpm/brp-compress: line 8: cd: /home/mockbuild/rpm/BUILDROOT/myRPM-1-1.el6.i386: No such file or directory
+ /usr/lib/rpm/brp-strip
find: `/home/mockbuild/rpm/BUILDROOT/myRPM-1-1.el6.i386': No such file or directory
+ /usr/lib/rpm/brp-strip-static-archive
find: `/home/mockbuild/rpm/BUILDROOT/myRPM-1-1.el6.i386': No such file or directory
+ /usr/lib/rpm/brp-strip-comment-note
find: `/home/mockbuild/rpm/BUILDROOT/myRPM-1-1.el6.i386': No such file or directory
currently only %prep and %files are not blank. What am I doing wrong here?