summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2010-02-25 07:04:53 +0100
committerGuillem Jover <guillem@debian.org>2010-02-25 09:37:42 +0100
commit9cdcabb0a7f7a38b8cd2292a48a98eb4eb5e458d (patch)
tree0b6c6f1e22fc56fc59e23a84321c6569328c7932
parentc406ca71c4fa7b8b49a240f33a36b69decfcc3c9 (diff)
downloaddpkg-9cdcabb0a7f7a38b8cd2292a48a98eb4eb5e458d.tar.gz
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.
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac1
-rw-r--r--debian/.gitignore1
-rw-r--r--debian/changelog2
-rw-r--r--debian/control12
-rw-r--r--debian/libdpkg-dev.docs5
-rw-r--r--debian/libdpkg-dev.install3
-rw-r--r--debian/libdpkg-dev.lintian-overrides2
-rw-r--r--lib/dpkg/.gitignore1
-rw-r--r--lib/dpkg/Makefile.am69
-rw-r--r--lib/dpkg/libdpkg.pc.in12
11 files changed, 89 insertions, 22 deletions
diff --git a/Makefile.am b/Makefile.am
index 9153da256..4c5aabf46 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 6b8524394..337e93729 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 66b19bbc1..205fb23f9 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 314832636..565622713 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 d6bd45e58..6a24035ad 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 000000000..7eeafe895
--- /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 000000000..ae50bdd73
--- /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 000000000..83ff3f4e6
--- /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 ad7739ade..5096fbf9a 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 557a916e4..24123658e 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 000000000..05a351950
--- /dev/null
+++ b/lib/dpkg/libdpkg.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+pkglibdir=@pkglibdir@
+
+Name: libdpkg
+Description: Debian package management system library
+Version: @VERSION@
+Libs: -L${libdir} -ldpkg
+Libs.private: @ZLIB_LIBS@ @BZ2_LIBS@
+Cflags: -I${includedir}