rpm packaging

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sangeeth
    New Member
    • Dec 2006
    • 23

    rpm packaging

    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.
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    I don't know much about creating RPMs, but I googled it and came up with https://pmc.ucsc.edu/~dmk/notes/RPMs/Creating_RPMs.html.

    Comment

    Working...