Cannot include sub directories and files in rpm package

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

 



Hello,

I am creating one rpm for my package.

WHen I try to run spec file, it shows the sub directories can't be fine.

Error:

install: cannot stat `/mine/derot.txt': No such file or directory
error: Bad exit status from /home/user/rpmbuild/tmp/rpm-
tmp.XgsNY2 (%install)


Actually in SOURCE, I have Script directory. Inside the ShellScript dir, I have mine directory and its files.

my spec %install part is,
%install

mkdir -p $RPM_BUILD_ROOT/home/dictator/
mkdir -p $RPM_BUILD_ROOT/home/dictator/supplies
mkdir -p $RPM_BUILD_ROOT/home/dictator/supplies/ShellScripts
mkdir -p $RPM_BUILD_ROOT/home/dictator/supplies/ShellScripts/mine

install -d ShellScripts $RPM_BUILD_ROOT/home/dictator/supplies/ShellScripts
install -p Scripts/dir_check.sh $RPM_BUILD_ROOT/home/dictator/supplies/ShellScripts/dir_check.sh
install -d ShellScripts/mine $RPM_BUILD_ROOT/home/dictator/supplies/ShellScripts/mine
install -p /mine/derot.txt $RPM_BUILD_ROOT/home/dictator/supplies/ShellScripts/mine/derot.txt
install -p ShellScripts/mine/dir_check.sh $RPM_BUILD_ROOT/home/dictator/supplies/ShellScripts/mine/dir_check.sh

In my test-1.tar.gz file, test-1 directory contains ShellScript dir. Inside ShellScript dir, i created mine directory.

In build, I am noit able to add mine in my binary.

How to add directory and subdirectories in binary.

thank you.
-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux