zypper: add new package

Signed-off-by: Saul Wold <saul.wold@intel.com>
Signed-off-by: Qing He <qing.he@intel.com>
This commit is contained in:
Qing He 2010-08-20 11:08:43 +08:00 committed by Saul Wold
parent 162c652a2c
commit 7b017195a3
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,20 @@
without the patch, /usr/include/rpm/ won't be added
in cppflags
8/19/2010 - created by Qing He <qing.he@intel.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6b040a6..04a1595 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,6 +21,10 @@ SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O2 -Wall -fstack-protector" )
GENERATE_PACKAGING(${PACKAGE} ${VERSION})
+FIND_PACKAGE(PkgConfig REQUIRED)
+PKG_CHECK_MODULES(RPM REQUIRED rpm)
+INCLUDE_DIRECTORIES( ${RPM_INCLUDE_DIRS} )
+
FIND_PACKAGE( Zypp REQUIRED )
IF( ZYPP_FOUND )
INCLUDE_DIRECTORIES(${ZYPP_INCLUDE_DIR})

View File

@ -0,0 +1,19 @@
HOMEPAGE = "http://gitorious.org/opensuse/zypper"
DESCRIPTION = "The ZYpp Linux Software management framework"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=3201406e350b39e05a82e28b5020f413"
DEPENDS = "libzypp augeas"
PR = "r0"
inherit cmake
SRCREV = "9eb0e248e06c8d20ad054be2439149d9ede37531"
SRC_URI = "git://gitorious.org/opensuse/zypper.git;protocol=git \
file://cmake.patch \
"
S = "${WORKDIR}/git"
PV = "1.4.7-git${SRCPV}"