I want to create an rpm package.
I have a set of python, php and html files. I made a tar of all these files and put them in /usr/src/redhat/SOURCES directory. I also made a .spec file which contains
%files
/usr/src/redhat/SOURCES/my_rpm.tar
then I used the command
rpmbuild -ba SPECS/file.spec
I got the following result.
Wrote: /usr/src/redhat/SRPMS/my_rpm-1.0-1.src.rpm
Wrote: /usr/src/redhat/RPMS/i386/my_rpm-1.0-1.i386.rpm
When I install my package some the tar files goes into usr/src/redhat/SOURCES/my_rpm.tar
What I want is when someone installs my packages some files should go into his html directory of apache and other files into his apache's cgi-bin.
How can I do this?
Help please.
I have a set of python, php and html files. I made a tar of all these files and put them in /usr/src/redhat/SOURCES directory. I also made a .spec file which contains
%files
/usr/src/redhat/SOURCES/my_rpm.tar
then I used the command
rpmbuild -ba SPECS/file.spec
I got the following result.
Wrote: /usr/src/redhat/SRPMS/my_rpm-1.0-1.src.rpm
Wrote: /usr/src/redhat/RPMS/i386/my_rpm-1.0-1.i386.rpm
When I install my package some the tar files goes into usr/src/redhat/SOURCES/my_rpm.tar
What I want is when someone installs my packages some files should go into his html directory of apache and other files into his apache's cgi-bin.
How can I do this?
Help please.
Comment