From ca4d3d672e983fe1a9ad40d8eef95ba35ba87421 Mon Sep 17 00:00:00 2001 From: Alejandro del Castillo Date: Thu, 26 Jan 2017 17:10:29 -0600 Subject: [PATCH] Split libsolvext into it's own pkg-config file Signed-off-by: Alejandro del Castillo --- CMakeLists.txt | 4 +++- libsolv.pc.in | 4 ++-- libsolvext.pc.in | 9 +++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 libsolvext.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 12b9b321..838f9d0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -393,9 +393,11 @@ MACRO (SPECFILE) ENDMACRO (SPECFILE) MACRO (PCFILE) - MESSAGE (STATUS "Writing pkg-config file...") + MESSAGE (STATUS "Writing pkg-config files...") CONFIGURE_FILE (${CMAKE_SOURCE_DIR}/libsolv.pc.in ${CMAKE_BINARY_DIR}/libsolv.pc @ONLY) INSTALL( FILES ${CMAKE_BINARY_DIR}/libsolv.pc DESTINATION ${PKGCONFIG_INSTALL_DIR} ) + CONFIGURE_FILE (${CMAKE_SOURCE_DIR}/libsolvext.pc.in ${CMAKE_BINARY_DIR}/libsolvext.pc @ONLY) + INSTALL( FILES ${CMAKE_BINARY_DIR}/libsolvext.pc DESTINATION ${PKGCONFIG_INSTALL_DIR} ) ENDMACRO (PCFILE) SPECFILE () diff --git a/libsolv.pc.in b/libsolv.pc.in index c82dfc4e..40a86230 100644 --- a/libsolv.pc.in +++ b/libsolv.pc.in @@ -2,7 +2,7 @@ libdir=@LIB_INSTALL_DIR@ includedir=@INCLUDE_INSTALL_DIR@ Name: libsolv -Description: Library for solving packages and reading repositories +Description: Library for solving packages Version: @VERSION@ -Libs: -L${libdir} -lsolvext -lsolv +Libs: -L${libdir} -lsolv Cflags: -I${includedir} diff --git a/libsolvext.pc.in b/libsolvext.pc.in new file mode 100644 index 00000000..d48b6fab --- /dev/null +++ b/libsolvext.pc.in @@ -0,0 +1,9 @@ +libdir=@LIB_INSTALL_DIR@ +includedir=@INCLUDE_INSTALL_DIR@ + +Name: libsolvext +Description: Library for reading repositories +Version: @VERSION@ +Requires: libsolv +Libs: -L${libdir} -lsolvext +Cflags: -I${includedir} -- 2.47.2