Change the way of #including createrepo_c library.
authorTomas Mlcoch <tmlcoch@redhat.com>
Mon, 4 Mar 2013 10:11:59 +0000 (11:11 +0100)
committerTomas Mlcoch <tmlcoch@redhat.com>
Mon, 4 Mar 2013 10:21:08 +0000 (11:21 +0100)
src/createrepo_c.h
src/createrepo_c.pc.cmake

index a04af0e..567db7e 100644 (file)
@@ -30,28 +30,28 @@ extern "C" {
  *
  * Usage:
  * \code
- *   #include <createrepo_c.h>
+ *   #include <createrepo_c/createrepo_c.h>
  * \endcode
  *
  */
 
 /** \defgroup   main    Complete API of createrepo_c library
- * Usage: #include <createrepo_c.h>
+ * Usage: #include <createrepo_c/createrepo_c.h>
  */
 
 #include <glib.h>
-#include <compression_wrapper.h>
-#include <constants.h>
-#include <load_metadata.h>
-#include <locate_metadata.h>
-#include <misc.h>
-#include <package.h>
-#include <parsehdr.h>
-#include <parsepkg.h>
-#include <repomd.h>
-#include <sqlite.h>
-#include <version.h>
-#include <xml_dump.h>
+#include "compression_wrapper.h"
+#include "constants.h"
+#include "load_metadata.h"
+#include "locate_metadata.h"
+#include "misc.h"
+#include "package.h"
+#include "parsehdr.h"
+#include "parsepkg.h"
+#include "repomd.h"
+#include "sqlite.h"
+#include "version.h"
+#include "xml_dump.h"
 
 #ifdef __cplusplus
 }
index e06281d..ef33f6e 100644 (file)
@@ -1,6 +1,6 @@
 prefix=@CMAKE_INSTALL_PREFIX@
 libdir=@LIB_INSTALL_DIR@
-includedir=@INCLUDE_INSTALL_DIR@
+includedir=@CMAKE_INSTALL_PREFIX@/include
 
 Name: createrepo_c
 Description: Library for manipulation with repodata.
@@ -9,4 +9,4 @@ Requires: glib-2.0 rpm libcurl sqlite3
 Requires.private: zlib libxml-2.0
 Libs: -L${libdir} -lcreaterepo_c
 Libs.private: -lmagic -lexpat -lbz2 -lzma
-Cflags: -I${includedir}/createrepo_c
+Cflags: -I${includedir}