The following commit has been merged in the master branch:
commit 9cdcabb0a7f7a38b8cd2292a48a98eb4eb5e458d
Author: Guillem Jover <[email protected]>
Date: Thu Feb 25 07:04:53 2010 +0100
Add a new libdpkg-dev package with the headers and the static library
The API should be considered volatile. Although this will help somewhat
people that are currently using the static library anyway, but have to
resort to building dpkg from source and using the headers and the static
library from the source tree.
diff --git a/Makefile.am b/Makefile.am
index 9153da2..4c5aabf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -53,6 +53,9 @@ EXTRA_DIST = \
debian/dselect.install \
debian/dselect.preinst \
debian/dselect.lintian-overrides \
+ debian/libdpkg-dev.docs \
+ debian/libdpkg-dev.install \
+ debian/libdpkg-dev.lintian-overrides \
debian/source.lintian-overrides \
debian/source/format \
debian/source/options \
diff --git a/configure.ac b/configure.ac
index 6b85243..337e937 100644
--- a/configure.ac
+++ b/configure.ac
@@ -139,6 +139,7 @@ AC_CONFIG_FILES([ Makefile
lib/Makefile
lib/compat/Makefile
lib/dpkg/Makefile
+ lib/dpkg/libdpkg.pc
lib/dpkg/test/Makefile
doc/Doxyfile
man/Makefile
diff --git a/debian/.gitignore b/debian/.gitignore
index 66b19bb..205fb23 100644
--- a/debian/.gitignore
+++ b/debian/.gitignore
@@ -1,3 +1,4 @@
+libdpkg-dev
dpkg
dpkg-dev
dselect
diff --git a/debian/changelog b/debian/changelog
index 3148326..5656227 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -128,6 +128,8 @@ dpkg (1.15.6) UNRELEASED; urgency=low
and zlib for dpkg-deb and and libselinux for dpkg on GNU/Linux.
* Mark the libdpkg.a API as volatile and require any possible users to set
LIBDPKG_VOLATILE_API to acknowledge that fact.
+ * Add a new libdpkg-dev package with the headers and the static library,
+ although its API should be considered volatile.
[ Modestas Vainius ]
* Implement symbol patterns (Closes: #563752). From now on, it is possible to
diff --git a/debian/control b/debian/control
index d6bd45e..6a24035 100644
--- a/debian/control
+++ b/debian/control
@@ -14,6 +14,18 @@ Build-Depends: debhelper (>= 6.0.7), pkg-config, po4a (>=
0.33.1),
libselinux1-dev (>= 1.28-4) [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64],
libtimedate-perl, libio-string-perl
+Package: libdpkg-dev
+Section: libdevel
+Priority: optional
+Architecture: any
+Depends: ${misc:Depends}
+Description: package maintenance system for Debian - development files
+ This package contains the header files and static library necessary to
+ develop software using libdpkg, the same library used internally by dpkg.
+ .
+ Note though, that the API is to be considered volatile, and might change
+ at any time, use at your own risk.
+
Package: dpkg
Architecture: any
Essential: yes
diff --git a/debian/libdpkg-dev.docs b/debian/libdpkg-dev.docs
new file mode 100644
index 0000000..7eeafe8
--- /dev/null
+++ b/debian/libdpkg-dev.docs
@@ -0,0 +1,5 @@
+AUTHORS
+THANKS
+debian/usertags
+doc/README.api
+doc/README.feature-removal-schedule
diff --git a/debian/libdpkg-dev.install b/debian/libdpkg-dev.install
new file mode 100644
index 0000000..ae50bdd
--- /dev/null
+++ b/debian/libdpkg-dev.install
@@ -0,0 +1,3 @@
+usr/include/dpkg/*.h
+usr/lib/pkgconfig/libdpkg.pc
+usr/lib/libdpkg.a
diff --git a/debian/libdpkg-dev.lintian-overrides
b/debian/libdpkg-dev.lintian-overrides
new file mode 100644
index 0000000..83ff3f4
--- /dev/null
+++ b/debian/libdpkg-dev.lintian-overrides
@@ -0,0 +1,2 @@
+libdpkg-dev: redundant-origin-field
+libdpkg-dev: redundant-bugs-field
diff --git a/lib/dpkg/.gitignore b/lib/dpkg/.gitignore
index ad7739a..5096fbf 100644
--- a/lib/dpkg/.gitignore
+++ b/lib/dpkg/.gitignore
@@ -1 +1,2 @@
trigdeferred.c
+libdpkg.pc
diff --git a/lib/dpkg/Makefile.am b/lib/dpkg/Makefile.am
index 557a916..2412365 100644
--- a/lib/dpkg/Makefile.am
+++ b/lib/dpkg/Makefile.am
@@ -12,47 +12,72 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/lib
-noinst_LIBRARIES = libdpkg.a
+EXTRA_DIST = \
+ libdpkg.pc.in
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libdpkg.pc
+
+lib_LIBRARIES = libdpkg.a
libdpkg_a_SOURCES = \
- dpkg.h \
- dpkg-db.h \
dlist.h \
- ar.c ar.h \
- buffer.c buffer.h \
+ ar.c \
+ buffer.c \
cleanup.c \
- command.c command.h \
- compress.c compress.h \
+ command.c \
+ compress.c \
database.c \
dbmodify.c \
dump.c \
ehandle.c \
- file.c file.h \
+ file.c \
fields.c \
i18n.h \
lock.c \
log.c \
- macros.h \
md5.c md5.h \
mlib.c \
- myopt.c myopt.h \
+ myopt.c \
nfmalloc.c \
parse.c \
parsehelp.c \
- parsedump.h \
- path.c path.h \
- pkg.c pkg.h \
- pkg-array.c pkg-array.h \
- pkg-format.c pkg-format.h \
- pkg-list.c pkg-list.h \
- pkg-queue.c pkg-queue.h \
- progress.c progress.h \
- string.c string.h \
- subproc.c subproc.h \
- tarfn.c tarfn.h \
+ path.c \
+ pkg.c \
+ pkg-array.c \
+ pkg-format.c \
+ pkg-list.c \
+ pkg-queue.c \
+ progress.c \
+ string.c \
+ subproc.c \
+ tarfn.c \
test.h \
triglib.c \
trigdeferred.l \
utils.c \
- varbuf.c varbuf.h \
+ varbuf.c \
vercmp.c
+
+pkginclude_HEADERS = \
+ ar.h \
+ buffer.h \
+ command.h \
+ compress.h \
+ dpkg.h \
+ dpkg-db.h \
+ file.h \
+ macros.h \
+ myopt.h \
+ parsedump.h \
+ path.h \
+ pkg.h \
+ pkg-array.h \
+ pkg-format.h \
+ pkg-list.h \
+ pkg-queue.h \
+ progress.h \
+ string.h \
+ subproc.h \
+ tarfn.h \
+ varbuf.h
diff --git a/lib/dpkg/libdpkg.pc.in b/lib/dpkg/libdpkg.pc.in
new file mode 100644
index 0000000..05a3519
--- /dev/null
+++ b/lib/dpkg/libdpkg.pc.in
@@ -0,0 +1,12 @@
+pref...@prefix@
+exec_pref...@exec_prefix@
+libd...@libdir@
+included...@includedir@
+pkglibd...@pkglibdir@
+
+Name: libdpkg
+Description: Debian package management system library
+Version: @VERSION@
+Libs: -L${libdir} -ldpkg
+Libs.private: @ZLIB_LIBS@ @BZ2_LIBS@
+Cflags: -I${includedir}
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]