akozumpl/hawkey — pull request #1 by scottt (2012-06-26 09:20:59+00:00)
Title: Add hawkey.pc for use with pkgconfig

This patch installs a hawkey.pc file for use with pkg-config(1).
Since a pkgconfig file contains a version field, it also adds a VERSION.cmake file similar to how libsolv does it.

A pkgconfig file makes a C library easier to use:
1. It simplifies declaring an optional or mandatory dependency regardless of the build system used. For example, one potential hawkey user, zif, uses GNU autotools and the autoconf code required to add a dependency via pkgconfig is shorter than the alternative.
2. It simplifies having multiple copies of the library along with some the library's dependencies installed. With pkgconfig, the user can set the PKG_CONFIG_PATH environment variable once to switch to using his local copy of hawkey and libsolv.
3. A pkgconfig would also clarify that programs should use "#include " as opposed to just "#include " to include the hawkey header files.