-1

I am creating customized rpm through source. I want to know what is the use of %files section. These are the files that rpm will include in the package or it needs these files for rpm creation purpose? How to know which files should be listed under %files section and what is the exact path of these files?

Follwoing error is coming:

/bin/sh ../../libtool --mode=install ../../build/shtool install -c -m 644 libldap.la /usr/local/openldap-2.4.31-root/usr/lib
libtool: install: error: cannot install 'libldap.la' to a directory not ending in usr/local/lib

Please provide your valuable suggestions.

Thanking you.

1 Answer 1

1

They enumerate the files and their corresponding ownership and permissions within the generated package. There is no fixed way to know which files should be listed within, but in general if you only generate one package then it will contain all files installed.

7
  • how to get the listing of installed files in order to mention in spec file?
    – Infotechie
    Apr 30, 2012 at 5:06
  • Have you... even actually tried it out yet? Or are you just asking a bunch of theoretical questions? Apr 30, 2012 at 5:07
  • Obviously, I have tried and getting errors if I am not mentioning these files.
    – Infotechie
    Apr 30, 2012 at 5:12
  • So... then... mention them. Apr 30, 2012 at 5:25
  • I have updated the question with the error details. May be this will be helpful in understanding problem. Thanks
    – Infotechie
    Apr 30, 2012 at 12:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .