I create some scripts under my Linux machine RedHat-Linux-OS-5.3
the following scripts home directory is /root/dir
And the scripts are:
/root/dir/rfg.sh
/root/dir/ener.pl
/root/dir/wnr.sh
And some lib files are under /lib as the following
/lib/lib1.so
/lib/lib2.so
/lib/lib3.so
my question I want to create RPM that include my scripts and my lib files !
For example
After I performed (rpm installation) :
rpm -i SOME_RPM.rpm
All scripts will be created under /root/dir directory (include directory creation)
And all my lib files will created under /lib directory
Please advice how to create this RPM hopefully it will be step by step (because I read some documents regarding RPM Build package, and it’s hard to understand them
The most basic bit is that you need the rpmbuild tool and you need to write a spec file. I have the following script that takes a spec file and a tree as it would look installed on the target machine:
For details on spec files, see RPM spec specification.