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.
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.