pkginclude_HEADERS += lib/rpmvf.h
pkginclude_HEADERS += lib/rpmplugins.h
+pkginclude_HEADERS += lib/rpmsign.h
+
pkginclude_HEADERS += build/rpmbuild.h
pkginclude_HEADERS += build/rpmfc.h
pkginclude_HEADERS += build/rpmspec.h
rpmsign_SOURCES = rpmsign.c debug.h system.h
rpmsign_CPPFLAGS = $(AM_CPPFLAGS)
rpmsign_LDADD = libcliutils.la
-rpmsign_LDADD += lib/librpm.la rpmio/librpmio.la
+rpmsign_LDADD += lib/librpmsign.la lib/librpm.la rpmio/librpmio.la
rpmsign_LDADD += @WITH_NSS_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
rpmbuild_SOURCES = rpmbuild.c debug.h system.h
AM_CPPFLAGS += -DLOCALSTATEDIR="\"$(localstatedir)\""
AM_CPPFLAGS += -DLIBRPMALIAS_FILENAME="\"rpmpopt-${VERSION}\""
+usrlibdir = $(libdir)
+
check_PROGRAMS =
CLEANFILES =
EXTRA_DIST = gentagtbl.sh tagtbl.C rpmhash.C rpmhash.H
EXTRA_PROGRAMS =
+usrlib_LTLIBRARIES =
-usrlibdir = $(libdir)
-usrlib_LTLIBRARIES = librpm.la
+usrlib_LTLIBRARIES += librpm.la
librpm_la_SOURCES = \
backend/dbconfig.c backend/db3.c backend/dbi.h \
headerutil.c header.c headerfmt.c header_internal.h \
verify.c rpmlock.c rpmlock.h misc.h \
rpmscript.h rpmscript.c legacy.c merge.c \
rpmliblua.c rpmliblua.h rpmchroot.c rpmchroot.h \
- rpmplugins.c rpmplugins.h rpmgensig.c
+ rpmplugins.c rpmplugins.h
librpm_la_LDFLAGS = -version-info 1:0:0
mv -f $@.new $@
BUILT_SOURCES = tagtbl.C
+usrlib_LTLIBRARIES += librpmsign.la
+librpmsign_la_SOURCES = rpmgensig.c
+librpmsign_la_LDFLAGS = -version-info 0:0:0
+librpmsign_la_LIBADD = \
+ librpm.la \
+ $(top_builddir)/rpmio/librpmio.la \
+ @WITH_POPT_LIB@ \
+ @LIBINTL@
+
if WITH_INTERNAL_DB
# XXX watchout, $(top_builddir)/db3/libdb.la created by this Makefile may surprise
libdb_la = $(top_builddir)/db3/libdb.la
< $(top_builddir)/db3/libdb-$(BDBVER).la > $(libdb_la)
CLEANFILES += $(libdb_la)
+
rpmlibexec_PROGRAMS =
rpmlibexec_PROGRAMS += rpmdb_archive
/* ==================================================================== */
/** \name RPMK */
-/** \ingroup rpmcli
- * Create/delete package signatures.
- * @param argv array of package path arguments (NULL terminated)
- * @param deleting adding or deleting signature(s)
- * @param passPhrase passphrase (ignored when deleting)
- * @return 0 on success
- */
-int rpmcliSign(ARGV_const_t argv, int deleting, const char *passPhrase);
-
/** Import public key(s) to rpm keyring
* @param ts transaction set
* @param argv array of pubkey path arguments (NULL terminated)
#include <rpm/rpmlib.h> /* RPMSIGTAG & related */
#include <rpm/rpmpgp.h>
-#include <rpm/rpmcli.h>
+#include <rpm/rpmsign.h>
#include <rpm/rpmfileutil.h> /* rpmMkTemp() */
#include <rpm/rpmlog.h>
#include <rpm/rpmstring.h>
--- /dev/null
+#ifndef _RPMSIGN_H
+#define _RPMSIGN_H
+
+#include <rpm/argv.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** \ingroup rpmsign
+ * Create/delete package signatures.
+ * @param argv array of package path arguments (NULL terminated)
+ * @param deleting adding or deleting signature(s)
+ * @param passPhrase passphrase (ignored when deleting)
+ * @return 0 on success
+ */
+int rpmcliSign(ARGV_const_t argv, int deleting, const char *passPhrase);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _RPMSIGN_H */
$(INSTALL_DATA) $(top_srcdir)/lib/rpmplugins.h include/rpm/rpmplugins.h
BUILT_SOURCES += include/rpm/rpmplugins.h
CLEANFILES += include/rpm/rpmplugins.h
+include/rpm/rpmsign.h: lib/rpmsign.h include/rpm/$(dirstamp)
+ $(INSTALL_DATA) $(top_srcdir)/lib/rpmsign.h include/rpm/rpmsign.h
+BUILT_SOURCES += include/rpm/rpmsign.h
+CLEANFILES += include/rpm/rpmsign.h
include/rpm/rpmbuild.h: build/rpmbuild.h include/rpm/$(dirstamp)
$(INSTALL_DATA) $(top_srcdir)/build/rpmbuild.h include/rpm/rpmbuild.h
BUILT_SOURCES += include/rpm/rpmbuild.h