INCLUDE( ${CMAKE_SOURCE_DIR}/VERSION.cmake )
-FIND_PACKAGE(Db43 REQUIRED)
FIND_PACKAGE(EXPAT REQUIRED)
#FIND_PACKAGE(Ruby REQUIRED)
+FIND_LIBRARY(RPMDB_LIBRARY NAMES rpmdb)
SET( PACKAGE "satsolver" )
SET( VERSION "${LIBSATSOLVER_MAJOR}.${LIBSATSOLVER_MINOR}.${LIBSATSOLVER_PATCH}" )
+++ /dev/null
-
-if(DB43_INCLUDE_DIR AND DB43_LIBRARY)
- # Already in cache, be silent
- set(DB43_FIND_QUIETLY TRUE)
-endif(DB43_INCLUDE_DIR AND DB43_LIBRARY)
-
-set(DB43_LIBRARY)
-set(DB43_INCLUDE_DIR)
-
-FIND_PATH(DB43_INCLUDE_DIR db43/db.h
- /usr/include
- /usr/local/include
-)
-
-FIND_LIBRARY(DB43_LIBRARY NAMES db-4.3
- PATHS
- /usr/lib
- /usr/local/lib
-)
-
-if(DB43_INCLUDE_DIR AND DB43_LIBRARY)
- MESSAGE( STATUS "db-4.3 found: includes in ${DB43_INCLUDE_DIR}, library in ${DB43_LIBRARY}")
- set(DB43_FOUND TRUE)
-else(DB43_INCLUDE_DIR AND DB43_LIBRARY)
- MESSAGE( STATUS "db-4.3 not found")
-endif(DB43_INCLUDE_DIR AND DB43_LIBRARY)
-
-MARK_AS_ADVANCED(DB43_INCLUDE_DIR DB43_LIBRARY)
\ No newline at end of file
Source: satsolver-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Development/Libraries/C and C++
-BuildRequires: cmake db43-devel gcc-c++ libexpat-devel ruby-devel swig
+BuildRequires: cmake rpm-devel gcc-c++ libexpat-devel ruby-devel swig
Summary: A new approach to package dependency solving
%description
)
ADD_EXECUTABLE( rpmdb2solv ${rpmdb2solv_REPOS} )
-TARGET_LINK_LIBRARIES( rpmdb2solv satsolver ${DB43_LIBRARY})
+TARGET_LINK_LIBRARIES( rpmdb2solv satsolver ${RPMDB_LIBRARY})
SET(rpmmd2solv_REPOS rpmmd2solv.c repo_rpmmd.h repo_rpmmd.c repo_write.c common_write.c )
ADD_EXECUTABLE( rpmmd2solv ${rpmmd2solv_REPOS} )
#include <stdlib.h>
#include <string.h>
-#include <db43/db.h>
+#include <rpm/db.h>
#include "pool.h"
#include "repo.h"