Closed edigiacomo closed 6 years ago
Moreover, Requires: lua >= 5.1.1
could be removed from RPM dependencies (because Lua supports pkg-config in RH-based distros).
In-depth explanation following.
Tthe .pc
file should observe with the following rule:
pkg-config
will be listed in Requires
or Requires.private
, with an optional comparison operator for the version.pkg-config
will be listed in Cflag
+ Libs
or Libs.private
.See https://people.freedesktop.org/%7Edbn/pkg-config-guide.html#concepts
The .spec
file should observe the following rules:
pkg-config
will be listed in BuildRequires
as pkgconfig(NAME)
with an optional comparison operator for the version (NAME
is the name used in the Requires
field of the .pc
file). rpmbuild
will automatically add the proper package to the dependencies of the -devel
package.pkg-config
will be listed in BuildRequires
using the name its -devel
package and in Requires
of the -devel
package.See https://fedoraproject.org/wiki/Packaging:PkgConfigBuildRequires and https://fedoraproject.org/wiki/Archives:PackagingDrafts/PkgconfigAutoRequires?rd=PackagingDrafts/PkgconfigAutoRequires
- A required library which doesn't support
pkg-config
will be listed inBuildRequires
using the name its-devel
package and inRequires
of the-devel
package.
Moreover: the library will be in the Requires
of the -devel
package only if it's in Libs
of the .pc
file (i.e. not in Libs.private
).
See https://people.freedesktop.org/~dbn/pkg-config-guide.html#faq
wreport is compiled against the following libraries:
Requires
if lua support pkg-config else inLibs
Libs