summaryrefslogtreecommitdiff
path: root/python/Makefile.am
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-10-02 18:31:32 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-10-02 18:31:32 +0300
commit8169bbde6934637ed7be58e18103330c1d5e4546 (patch)
tree0d9ca014d272addf6fc72c3f51486244eb64f9dc /python/Makefile.am
parentbc9b86ae5c14e093078506b533cede3c5f1f5ab9 (diff)
downloadlibrpm-tizen-8169bbde6934637ed7be58e18103330c1d5e4546.tar.gz
librpm-tizen-8169bbde6934637ed7be58e18103330c1d5e4546.tar.bz2
librpm-tizen-8169bbde6934637ed7be58e18103330c1d5e4546.zip
Split rpmbuild dependencies to separate _rpmb module
- installers and the like dont need the pile of poo called librpmbuild for anything, avoid dragging it in needlessly - import _rpmb into rpm namespace if available but dont complain if its not there - arrange ts.parseSpec() compatibility on python side by dynamically importing _rpmb if possible
Diffstat (limited to 'python/Makefile.am')
-rw-r--r--python/Makefile.am14
1 files changed, 11 insertions, 3 deletions
diff --git a/python/Makefile.am b/python/Makefile.am
index c11e675b0..2b913922e 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -8,12 +8,11 @@ AM_CPPFLAGS += -I$(top_srcdir)/python
AM_CPPFLAGS += -I$(top_srcdir)/misc
AM_CPPFLAGS += -I@WITH_PYTHON_INCLUDE@
-pkgpyexec_LTLIBRARIES = _rpmmodule.la
+pkgpyexec_LTLIBRARIES = _rpmmodule.la _rpmbmodule.la
pkgpyexec_DATA = rpm/__init__.py rpm/transaction.py
_rpmmodule_la_LDFLAGS = -module -avoid-version
_rpmmodule_la_LIBADD = \
- $(top_builddir)/build/librpmbuild.la \
$(top_builddir)/lib/librpm.la \
$(top_builddir)/rpmio/librpmio.la \
@WITH_PYTHON_LIB@
@@ -28,6 +27,15 @@ _rpmmodule_la_SOURCES = rpmmodule.c rpmsystem-py.h \
rpmmacro-py.c rpmmacro-py.h \
rpmtd-py.c rpmtd-py.h \
rpmte-py.c rpmte-py.h \
- rpmts-py.c rpmts-py.h \
+ rpmts-py.c rpmts-py.h
+
+_rpmbmodule_la_LDFLAGS = -module -avoid-version
+_rpmbmodule_la_LIBADD = \
+ $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la \
+ $(top_builddir)/rpmio/librpmio.la \
+ @WITH_PYTHON_LIB@
+
+_rpmbmodule_la_SOURCES = rpmbmodule.c rpmsystem-py.h \
spec-py.c spec-py.h
endif