From 5361a52b5824d04346731f4c86e4c626b28a8c6b Mon Sep 17 00:00:00 2001 From: Ronmi Ren Date: Thu, 12 Jun 2014 11:04:17 +0800 Subject: [PATCH] initial debian packaging --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 27 +++++++++++++++++++++++++++ debian/copyright | 30 ++++++++++++++++++++++++++++++ debian/docs | 1 + debian/libr3-dev.dirs | 2 ++ debian/libr3-dev.install | 4 ++++ debian/libr3.dirs | 1 + debian/libr3.install | 1 + debian/rules | 12 ++++++++++++ debian/source/format | 1 + 11 files changed, 85 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/libr3-dev.dirs create mode 100644 debian/libr3-dev.install create mode 100644 debian/libr3.dirs create mode 100644 debian/libr3.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..4fba51a --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libr3 (1.3.1-1) unstable; urgency=low + + * Initial release using libr3 1.3.1. + + -- Ronmi Ren Thu, 12 Jun 2014 10:54:16 +0800 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..3c440f7 --- /dev/null +++ b/debian/control @@ -0,0 +1,27 @@ +Source: libr3 +Priority: optional +Maintainer: Ronmi Ren +Build-Depends: debhelper (>= 8.0.0), autotools-dev, check +Standards-Version: 3.9.4 +Section: libs +Homepage: https://github.com/c9s/r3 + +Package: libr3-dev +Section: libdevel +Architecture: any +Depends: libr3 (= ${binary:Version}) +Description: Development files for libr3 + libr3 (https://github.com/c9s/r3) is an URL router library with high + performance, thus, it's implemented in C. It compiles your route paths into + a prefix trie. + . + This package contains header files for libr3. + +Package: libr3 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: High performance URL routing library written in C. + libr3 (https://github.com/c9s/r3) is an URL router library with high + performance, thus, it's implemented in C. It compiles your route paths into + a prefix trie. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..68dc6e7 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,30 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libr3 +Source: https://github.com/c9s/r3 + +Files: * +Copyright: 2014 yoanlin93@gmail.com +License: MIT + +Files: debian/* +Copyright: 2014 Ronmi Ren +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/libr3-dev.dirs b/debian/libr3-dev.dirs new file mode 100644 index 0000000..4418816 --- /dev/null +++ b/debian/libr3-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/libr3-dev.install b/debian/libr3-dev.install new file mode 100644 index 0000000..6cd8ddd --- /dev/null +++ b/debian/libr3-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/pkgconfig/* diff --git a/debian/libr3.dirs b/debian/libr3.dirs new file mode 100644 index 0000000..6845771 --- /dev/null +++ b/debian/libr3.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/libr3.install b/debian/libr3.install new file mode 100644 index 0000000..d0dbfd1 --- /dev/null +++ b/debian/libr3.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..fcaaa04 --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ --with autotools-dev + +override_dh_auto_configure: + ./autogen.sh + ./configure --enable-check --prefix=/usr 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)