From 2a3a82ccc3035e3e43f35c265e35ede11327894c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 2 Dec 2014 10:13:34 +0100 Subject: Add debian/* --- debian/README.source | 19 ++++ debian/changelog | 161 +++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 81 ++++++++++++++ debian/copyright | 52 +++++++++ debian/libmongo-client-dev.install | 4 + debian/libmongo-client-doc.doc-base | 11 ++ debian/libmongo-client-doc.install | 4 + debian/libmongo-client-doc.links | 1 + debian/libmongo-client-doc.lintian-overrides | 2 + debian/libmongo-client0.docs | 1 + debian/libmongo-client0.install | 1 + debian/libmongo-client0.symbols | 9 ++ debian/rules | 49 ++++++++ debian/source/format | 1 + debian/source/options | 1 + debian/watch | 11 ++ 17 files changed, 409 insertions(+) create mode 100644 debian/README.source create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/libmongo-client-dev.install create mode 100644 debian/libmongo-client-doc.doc-base create mode 100644 debian/libmongo-client-doc.install create mode 100644 debian/libmongo-client-doc.links create mode 100644 debian/libmongo-client-doc.lintian-overrides create mode 100644 debian/libmongo-client0.docs create mode 100644 debian/libmongo-client0.install create mode 100644 debian/libmongo-client0.symbols create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options create mode 100644 debian/watch diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..d390955 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,19 @@ +Working with the Debianized libmongo-client +=========================================== + +The package is meant to be built from a git checkout, the original +tarballs are git snapshots aswell. + +Since I'm also upstream for the package, the upstream branch for +git-buildpackage has been set to the 'stable' branch, while the Debian +branch remained the default: 'debian'. This is set in the +debian/gbp.conf file. If one wants to build a snapshot of master, that +file will need an edit too. + +Other than this, whenever a new upload is finalised, the stable branch +gets merged into the debian branch, and all is well: the Debian branch +should contain the debianised sources, with all changes already +applied, based on whichever upstream source is appropriate. + +-- +Gergely Nagy diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..758dd5c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,161 @@ +libmongo-client (0.1.8-2) unstable; urgency=medium + + * New Maintainer (Closes: #770801). + * debian/contol: + - Set myself as maintainer. + - Bump Standards-Version to 3.9.6 (no changes required). + - Change Vcs-* to collab-maint since old Vcs is not longer available. + * debian/copyright: + - Add missing license for tests/tools/*. + - Add myself to the list of authors for debian/*. + * debian/rules: + - Remove useless override_dh_builddeb: xz is now standard. + - Remove oldstyle debhelper parts. + * debian/watch: + - disabled because upstream repository contains debian tarballs. + + -- Jörg Frings-Fürst Tue, 02 Dec 2014 09:59:39 +0100 + +libmongo-client (0.1.8-1) unstable; urgency=medium + + * New upstream release. + * debian/symbols updated with the new LMC_0.1.8 version tag. + * debian/copyright updated to include 2014 in copyright years. + * debian/rules updated to drop --with-versioned-symbols: it is + automatically enabled now, if supported. + + -- Gergely Nagy Thu, 22 May 2014 13:05:18 +0200 + +libmongo-client (0.1.7.1-1) unstable; urgency=medium + + * New upstream release. + + Improves the roboustness of safe mode. + + -- Gergely Nagy Fri, 14 Mar 2014 11:04:43 +0100 + +libmongo-client (0.1.7-1) unstable; urgency=low + + * New upstream release. + + Automatic re-authentication support, even when using automatic + failover with replicasets. + * debian/symbols updated with the new LMC_0.1.7 version tag. + + -- Gergely Nagy Sun, 15 Dec 2013 11:37:03 +0100 + +libmongo-client (0.1.6.3-2) unstable; urgency=low + + * debian/copyright: Point to /usr/share/common-licenses/Apache-2.0 for + the full text of the license. (Thanks, lintian!) + * Bumped Standards-Version to 3.9.5, no changed necessary. + + -- Gergely Nagy Tue, 05 Nov 2013 10:38:33 +0100 + +libmongo-client (0.1.6.3-1) unstable; urgency=low + + * New upstream release. + + Fixed chunked GridFS file retrieval, to keep the chunk order. + + Fixed a crash that happened when verification in safe-mode failed. + * Bumped Standards-Version to 3.9.4, no changes necessary. + * debian/copyright: Updated the copyright years. + + -- Gergely Nagy Tue, 27 Aug 2013 10:10:37 +0200 + +libmongo-client (0.1.6.2-1) unstable; urgency=low + + * New upstream release. + + Minor memory leak fix in the GridFS code + + Support for the obsolete Binary subtype in GridFS files + + Documentation improvements + * Don't muck with m4/ during build, it is included upstream now. + + -- Gergely Nagy Fri, 21 Dec 2012 12:35:43 +0100 + +libmongo-client (0.1.6.1-3) unstable; urgency=low + + * Make libmongo-client-dev depend on libglib2.0-dev. Thanks Michael + Biebl. (Closes: #690992) + + -- Gergely Nagy Sat, 20 Oct 2012 08:30:09 +0200 + +libmongo-client (0.1.6.1-2) unstable; urgency=low + + * Really build with verbose messages enabled, the test suite too. + * Install and clean the m4/ directory too during build, to make + backporting easier. + + -- Gergely Nagy Mon, 15 Oct 2012 08:38:07 +0200 + +libmongo-client (0.1.6.1-1) unstable; urgency=low + + * New upstream bugfix release. + + Restores ABI compatibility with versions prior to 0.1.6. + + -- Gergely Nagy Sun, 14 Oct 2012 23:15:47 +0200 + +libmongo-client (0.1.6-1) unstable; urgency=low + + * New upstream release. + * Build with verbose messages enabled. + * Use xz compression for source & binaries too. + + -- Gergely Nagy Sun, 14 Oct 2012 21:18:39 +0200 + +libmongo-client (0.1.5-1) unstable; urgency=low + + * New upstream bugfix release. + + Fixes build on s390x, sparc64 and ppc64. + * Bump debhelper build-dependency to >= 9~ + * Update debian/copyright to copyright-format-1.0. + * Bump Standards-Version to 3.9.3 (no other changes necessary) + + -- Gergely Nagy Fri, 13 Apr 2012 18:37:21 +0200 + +libmongo-client (0.1.4-3) unstable; urgency=low + + * Build-Depend on debhelper (>= 8.9.7~) for -arch/-indep override + support. + * Move doxygen & graphviz to Build-Depends-Indep, and only build docs + when building -indep. This'll save quite a bit of disk space on + buildds. Thanks Laszlo Boszormenyi for the suggestion. + + -- Gergely Nagy Wed, 14 Sep 2011 23:08:53 +0200 + +libmongo-client (0.1.4-2) unstable; urgency=low + + * Build a libmongo-client-doc package, with API docs, the tutorial and + examples. Based on a patch from Guido Günther + (Closes: #639940). + + -- Gergely Nagy Sat, 03 Sep 2011 23:55:10 +0200 + +libmongo-client (0.1.4-1) unstable; urgency=low + + * New upstream release. + + -- Gergely Nagy Sat, 27 Aug 2011 13:26:17 +0200 + +libmongo-client (0.1.3-1) unstable; urgency=low + + * New upstream release. + + -- Gergely Nagy Tue, 19 Jul 2011 19:48:33 +0200 + +libmongo-client (0.1.2-1) unstable; urgency=low + + * New upstream release. + * Converted to multi-arch. + * Use DEP-5 format debian/copyright. + + -- Gergely Nagy Fri, 01 Jul 2011 11:08:57 +0200 + +libmongo-client (0.1.1-1) unstable; urgency=low + + * New upstream release. + + -- Gergely Nagy Thu, 16 Jun 2011 12:25:16 +0200 + +libmongo-client (0.1.0-1) unstable; urgency=low + + * Initial release (Closes: #626969) + + -- Gergely Nagy Wed, 25 May 2011 11:00:05 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e922a67 --- /dev/null +++ b/debian/control @@ -0,0 +1,81 @@ +Source: libmongo-client +Priority: extra +Maintainer: Jörg Frings-Fürst +Build-Depends: + debhelper (>= 9~), + libglib2.0-dev, perl, + dh-autoreconf +Build-Depends-Indep: + doxygen, + graphviz +Standards-Version: 3.9.6 +Section: libs +Homepage: https://github.com/algernon/libmongo-client +Vcs-Browser: http://anonscm.debian.org/cgit/collab-maint/libmongo-client.git +Vcs-Git: git://anonscm.debian.org/collab-maint/libmongo-client.git + +Package: libmongo-client0 +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: + ${shlibs:Depends}, + ${misc:Depends} +Description: Alternate C driver for the MongoDB document-oriented datastore + MongoDB is a high-performance, open source, schema-free + document-oriented data store. + . + This library provides an alternative C language driver, focusing on + stability, ease of use, striving to make the most common use cases as + convenient as possible. + . + Among its features are: + . + * Well documented, easy, clean and stable API. + * Support for asynchronous operation. + * ReplicaSet support, with support for automatic reconnecting and + discovery. + * Safe-mode support, to optionally enable extra safety checks on + writes. + +Package: libmongo-client-dev +Section: libdevel +Architecture: any +Depends: + libmongo-client0 (= ${binary:Version}), + pkg-config, + libglib2.0-dev, + ${misc:Depends} +Description: Development files for the alternate C driver for MongoDB + libmongo-client is an alternative C language driver to the MongoDB + document-oriented datastore. + . + This package is needed to compile programs against libmongo-client0, + as only it includes the header files and static libraries needed for + compiling. + +Package: libmongo-client0-dbg +Section: debug +Architecture: any +Multi-Arch: same +Depends: + libmongo-client0 (= ${binary:Version}), + ${misc:Depends} +Description: Alternate C driver for MongoDB (debugging symbols) + libmongo-client is an alternative C language driver to the MongoDB + document-oriented datastore. + . + This package contains detached debugging symbols. + . + Most people will not need this package. + +Package: libmongo-client-doc +Section: doc +Architecture: all +Depends: ${misc:Depends} +Recommends: libjs-jquery +Description: Documentation for the alternate C driver for MongoDB + libmongo-client is an alternative C language driver to the MongoDB + document-oriented datastore. + . + This package contains the API documentation, tutorials and examples. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b613245 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,52 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libmongo-client +Upstream-Contact: Gergely Nagy +Source: git://git.madhouse-project.org/projects/libmongo-client.git +Copyright: Copyright (C) 2011-2014 Gergely Nagy +License: Apache-2.0 + +Files: * +Copyright: 2011-2014 Gergely Nagy +License: Apache-2.0 + +Files: tests/tools/* +Copyright: 2006 Daniel Berrange +License: GPL-2+ + +Files: debian/* +Copyright: 2011-2014 Gergely Nagy + 2014 Jörg Frings-Fürst +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache License can be found in + the file `/usr/share/common-licenses/Apache-2.0'. + +License: GPL-2+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + The complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. diff --git a/debian/libmongo-client-dev.install b/debian/libmongo-client-dev.install new file mode 100644 index 0000000..76f28fa --- /dev/null +++ b/debian/libmongo-client-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/lib*.so +usr/lib/*/pkgconfig/* diff --git a/debian/libmongo-client-doc.doc-base b/debian/libmongo-client-doc.doc-base new file mode 100644 index 0000000..02aca77 --- /dev/null +++ b/debian/libmongo-client-doc.doc-base @@ -0,0 +1,11 @@ +Document: libmongo-client +Title: libmongo-client documentation +Author: Gergely Nagy +Abstract: API documentation and tutorial for the libmongo-client + library, an alternative C language driver for the MongoDB document + store. +Section: Programming/C + +Format: HTML +Index: /usr/share/doc/libmongo-client-doc/html/index.html +Files: /usr/share/doc/libmongo-client-doc/html/*.html diff --git a/debian/libmongo-client-doc.install b/debian/libmongo-client-doc.install new file mode 100644 index 0000000..45dc8ae --- /dev/null +++ b/debian/libmongo-client-doc.install @@ -0,0 +1,4 @@ +build-tree/docs/html/* usr/share/doc/libmongo-client0/html/ +docs/tutorial/examples/tut_* usr/share/doc/libmongo-client0/examples/tutorial/ +docs/tutorial/examples/GNUmakefile usr/share/doc/libmongo-client0/examples/tutorial/ +examples/*.c usr/share/doc/libmongo-client0/examples/ diff --git a/debian/libmongo-client-doc.links b/debian/libmongo-client-doc.links new file mode 100644 index 0000000..23b7085 --- /dev/null +++ b/debian/libmongo-client-doc.links @@ -0,0 +1 @@ +/usr/share/javascript/jquery/jquery.js usr/share/doc/libmongo-client0/html/jquery.js diff --git a/debian/libmongo-client-doc.lintian-overrides b/debian/libmongo-client-doc.lintian-overrides new file mode 100644 index 0000000..3cf1246 --- /dev/null +++ b/debian/libmongo-client-doc.lintian-overrides @@ -0,0 +1,2 @@ +# doxygen generated stuff, it's not feasible to remove the duplicates. +libmongo-client-doc: duplicate-files * diff --git a/debian/libmongo-client0.docs b/debian/libmongo-client0.docs new file mode 100644 index 0000000..edc0071 --- /dev/null +++ b/debian/libmongo-client0.docs @@ -0,0 +1 @@ +NEWS diff --git a/debian/libmongo-client0.install b/debian/libmongo-client0.install new file mode 100644 index 0000000..3ddde58 --- /dev/null +++ b/debian/libmongo-client0.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/debian/libmongo-client0.symbols b/debian/libmongo-client0.symbols new file mode 100644 index 0000000..b3d154c --- /dev/null +++ b/debian/libmongo-client0.symbols @@ -0,0 +1,9 @@ +libmongo-client.so.0 #PACKAGE# #MINVER# + (symver)LMC_0.1.0 0.1.0 + (symver)LMC_0.1.0_INTERNAL 0.1.0 + (symver)LMC_0.1.1 0.1.1 + (symver)LMC_0.1.2 0.1.2 + (symver)LMC_0.1.3 0.1.3 + (symver)LMC_0.1.6 0.1.6 + (symver)LMC_0.1.7 0.1.7 + (symver)LMC_0.1.8 0.1.8 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c4ddaa7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +export DH_OPTIONS += -O-Bbuild-tree + +UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -n '/\(Version:\)/{s/^Version:[[:space:]]\+\([0-9]\+:\)\?\(.*\)/\2/p}' | rev | cut -d- -f 2- | rev) + +%: + dh $@ --with autoreconf + +## +# Arch dependent overrides +## +override_dh_autoreconf-arch: + dh_autoreconf + +override_dh_auto_configure-arch: + dh_auto_configure -- --enable-shared + +override_dh_auto_build-arch: + dh_auto_build -- V=1 + +override_dh_auto_test-arch: + dh_auto_test -- V=1 + +## +# Arch independent overrides +## +override_dh_autoreconf-indep override_dh_auto_configure-indep: ; +override_dh_auto_test-indep override_dh_auto_install-indep: ; +override_dh_auto_build-indep: + install -d build-tree/docs/html + cd build-tree && sed -e "s,@VERSION@,${UPSTREAM_VERSION},g" \ + -e "s,@top_srcdir@,../,g" \ + <../Doxyfile.in >Doxyfile + cd build-tree && doxygen + +## +# Overrides common to both +## +override_dh_installdocs: + dh_installdocs --link-doc=libmongo-client0 + +override_dh_compress: + dh_compress -Xusr/share/doc/libmongo-client0/examples/ \ + -Xusr/share/doc/libmongo-client0/html/ + +override_dh_strip: + dh_strip --dbg-package=libmongo-client0-dbg diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..b7bc1f2 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +compression = "xz" diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..c324c04 --- /dev/null +++ b/debian/watch @@ -0,0 +1,11 @@ +# Compulsory line, this is a version 3 file +version=3 + +# +# Watch flie disabled because github repository +# contains debian tarballs +# + +#opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/libmongo-client-$1\.tar\.gz/ \ +# https://github.com/algernon/libmongo-client/tags .*/v?(\d\S*)\.tar\.gz + -- cgit v1.2.3