From 4d308a5f5e778f5e30ba22e8cfd708303d959a88 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 28 Mar 2012 13:41:27 +0200 Subject: [PATCH] debian: initial packaging bits --- debian/README.Debian | 6 ++ debian/changelog | 5 ++ debian/compat | 1 + debian/control | 108 +++++++++++++++++++++++++++++++++ debian/copyright | 88 +++++++++++++++++++++++++++ debian/gbp.conf | 4 ++ debian/libam7xxx-bin.install | 1 + debian/libam7xxx-bin.manpages | 1 + debian/libam7xxx-dev.install | 3 + debian/libam7xxx-doc.doc-base | 10 +++ debian/libam7xxx-doc.docs | 3 + debian/libam7xxx-doc.examples | 1 + debian/libam7xxx-doc.lintian-overrides | 4 ++ debian/libam7xxx0.1.install | 1 + debian/libam7xxx0.1.symbols | 10 +++ debian/libam7xxx0.1.udev | 1 + debian/rules | 9 +++ debian/source/format | 1 + debian/watch | 1 + 19 files changed, 258 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/libam7xxx-bin.install create mode 100644 debian/libam7xxx-bin.manpages create mode 100644 debian/libam7xxx-dev.install create mode 100644 debian/libam7xxx-doc.doc-base create mode 100644 debian/libam7xxx-doc.docs create mode 100644 debian/libam7xxx-doc.examples create mode 100644 debian/libam7xxx-doc.lintian-overrides create mode 100644 debian/libam7xxx0.1.install create mode 100644 debian/libam7xxx0.1.symbols create mode 120000 debian/libam7xxx0.1.udev create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..dfdf2fb --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ + +Permission to access am7xxx devices +=================================== + +The access to am7xxx devices is granted to any user belonging to the +"plugdev" group. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e720a03 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libam7xxx (0.1.2-1) unstable; urgency=low + + * Initial release (Closes: #666075) + + -- Antonio Ospite Wed, 28 Mar 2012 16:51:54 +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..46aa47e --- /dev/null +++ b/debian/control @@ -0,0 +1,108 @@ +Source: libam7xxx +Section: libdevel +Priority: extra +Maintainer: Antonio Ospite +Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), cmake, pkg-config, + libusb-1.0-0-dev, libxcb1-dev, libavdevice-dev, libavformat-dev, libavcodec-dev, libswscale-dev +Build-Depends-Indep: doxygen, asciidoc (>> 8.0.0), xmlto, docbook-xsl (>> 1.72) +Standards-Version: 3.9.3 +Homepage: http://git.ao2.it/libam7xxx.git +Vcs-Git: git://git.ao2.it/libam7xxx.git +Vcs-Browser: http://git.ao2.it/libam7xxx.git + +Package: libam7xxx0.1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: usb-modeswitch, usb-modeswitch-data (>= 20111023-1) +Description: library for accessing am7xxx based devices + libam7xxx is an Open Source library to communicate via USB with projectors and + Digital Picture Frames based on the Actions Micro AM7XXX family if ICs. + . + libam7xxx makes it possible to use these devices as USB displays on + non-Windows Operating Systems like GNU/Linux or Android/Linux just to name + a few, and on non-PC platforms like for instance mobile phones, tablets or + game consoles. + . + Examples of supported devices are: + - Acer C110 + - Philips/SagemCom PicoPix 1020 + . + This package contains the shared library of libam7xxx. + +Package: libam7xxx-dev +Architecture: any +Depends: ${misc:Depends}, libam7xxx0.1 (= ${binary:Version}) +Description: library for accessing am7xxx based devices -- development files + libam7xxx is an Open Source library to communicate via USB with projectors and + Digital Picture Frames based on the Actions Micro AM7XXX family if ICs. + . + libam7xxx makes it possible to use these devices as USB displays on + non-Windows Operating Systems like GNU/Linux or Android/Linux just to name + a few, and on non-PC platforms like for instance mobile phones, tablets or + game consoles. + . + Examples of supported devices are: + - Acer C110 + - Philips/SagemCom PicoPix 1020 + . + This is the development package containing the libraries and header for + software development with libam7xxx. + +Package: libam7xxx-bin +Section: utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: library for accessing am7xxx devices -- utilities and samples + libam7xxx is an Open Source library to communicate via USB with projectors and + Digital Picture Frames based on the Actions Micro AM7XXX family if ICs. + . + libam7xxx makes it possible to use these devices as USB displays on + non-Windows Operating Systems like GNU/Linux or Android/Linux just to name + a few, and on non-PC platforms like for instance mobile phones, tablets or + game consoles. + . + Examples of supported devices are: + - Acer C110 + - Philips/SagemCom PicoPix 1020 + . + This package includes utilities and sample programs for libam7xxx. + +Package: libam7xxx-doc +Section: doc +Architecture: all +Depends: ${misc:Depends} +Description: library for accessing am7xxx devices -- documentation + libam7xxx is an Open Source library to communicate via USB with projectors and + Digital Picture Frames based on the Actions Micro AM7XXX family if ICs. + . + libam7xxx makes it possible to use these devices as USB displays on + non-Windows Operating Systems like GNU/Linux or Android/Linux just to name + a few, and on non-PC platforms like for instance mobile phones, tablets or + game consoles. + . + Examples of supported devices are: + - Acer C110 + - Philips/SagemCom PicoPix 1020 + . + This package contains the documentation of the API of libam7xxx. + +Package: am7xxx +Section: libs +Architecture: any +Depends: ${misc:Depends}, libam7xxx-bin, libam7xxx-dev, libam7xxx0.1, + libam7xxx-doc +Description: library for accessing am7xxx devices -- metapackage + libam7xxx is an Open Source library to communicate via USB with projectors and + Digital Picture Frames based on the Actions Micro AM7XXX family if ICs. + . + libam7xxx makes it possible to use these devices as USB displays on + non-Windows Operating Systems like GNU/Linux or Android/Linux just to name + a few, and on non-PC platforms like for instance mobile phones, tablets or + game consoles. + . + Examples of supported devices are: + - Acer C110 + - Philips/SagemCom PicoPix 1020 + . + This is the metapackage to install all components of the project. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..6b81095 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,88 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libam7xxx +Upstream-Contact: Antonio Ospite +Source: http://git.ao2.it/libam7xxx.git + +Files: * +Copyright: 2012, Antonio Ospite +License: GPL-2+ + +Files: cmake_modules/Findlibusb-1.0.cmake +Copyright: 2006, Andreas Schneider + 2008, Kyle Machulis +License: BSD-3+CMAKE + +Files: cmake_modules/FindXCB.cmake +Copyright: 2008 Helio Chissini de Castro, + 2007, Matthias Kretz, +License: BSD-3+CMAKE + +Files: debian/* +Copyright: 2012, Antonio Ospite +License: GPL-2+ + +Files: examples/* +Copyright: 2012, Antonio Ospite +License: GPL-3+ + +License: GPL-2+ + This package 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 package 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 + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +License: GPL-3+ + This package 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 3 of the License, or + (at your option) any later version. + . + This package 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 + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + +License: BSD-3+CMAKE + Redistribution and use is allowed according to the terms of the New BSD license. + . + CMake-Modules Project New BSD License + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the CMake-Modules Project nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..0a80fe8 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +debian-branch = debian +upstream-branch = master +upstream-tag = v%(version)s diff --git a/debian/libam7xxx-bin.install b/debian/libam7xxx-bin.install new file mode 100644 index 0000000..1df36c6 --- /dev/null +++ b/debian/libam7xxx-bin.install @@ -0,0 +1 @@ +usr/bin/* diff --git a/debian/libam7xxx-bin.manpages b/debian/libam7xxx-bin.manpages new file mode 100644 index 0000000..4450a71 --- /dev/null +++ b/debian/libam7xxx-bin.manpages @@ -0,0 +1 @@ +debian/tmp/usr/share/man/man1/*.1 diff --git a/debian/libam7xxx-dev.install b/debian/libam7xxx-dev.install new file mode 100644 index 0000000..6970d78 --- /dev/null +++ b/debian/libam7xxx-dev.install @@ -0,0 +1,3 @@ +usr/include/am7xxx.h +usr/lib/*.so +usr/lib/pkgconfig/* diff --git a/debian/libam7xxx-doc.doc-base b/debian/libam7xxx-doc.doc-base new file mode 100644 index 0000000..cfa0385 --- /dev/null +++ b/debian/libam7xxx-doc.doc-base @@ -0,0 +1,10 @@ +Document: libam7xxx +Title: libam7xxx API Manual +Author: libam7xxx project +Abstract: This manual describes the API of libam7xxx, an open source driver + for AM7XXX devices. +Section: Programming + +Format: HTML +Index: /usr/share/doc/libam7xxx-doc/html/index.html +Files: /usr/share/doc/libam7xxx-doc/html/*.html diff --git a/debian/libam7xxx-doc.docs b/debian/libam7xxx-doc.docs new file mode 100644 index 0000000..2423339 --- /dev/null +++ b/debian/libam7xxx-doc.docs @@ -0,0 +1,3 @@ +HACKING.asciidoc +README.asciidoc +debian/tmp/usr/share/doc/libam7xxx/html/ diff --git a/debian/libam7xxx-doc.examples b/debian/libam7xxx-doc.examples new file mode 100644 index 0000000..43ec862 --- /dev/null +++ b/debian/libam7xxx-doc.examples @@ -0,0 +1 @@ +examples/*.c diff --git a/debian/libam7xxx-doc.lintian-overrides b/debian/libam7xxx-doc.lintian-overrides new file mode 100644 index 0000000..d1a87d7 --- /dev/null +++ b/debian/libam7xxx-doc.lintian-overrides @@ -0,0 +1,4 @@ +# These are derived from how doxygen works, we are masking them so to have +# less noise when running lintian +libam7xxx-doc: duplicate-files usr/share/doc/libam7xxx-doc/html/search/all_6e.js usr/share/doc/libam7xxx-doc/html/search/variables_6e.js +libam7xxx-doc: embedded-javascript-library usr/share/doc/libam7xxx-doc/html/jquery.js diff --git a/debian/libam7xxx0.1.install b/debian/libam7xxx0.1.install new file mode 100644 index 0000000..093956b --- /dev/null +++ b/debian/libam7xxx0.1.install @@ -0,0 +1 @@ +usr/lib/*.so.* diff --git a/debian/libam7xxx0.1.symbols b/debian/libam7xxx0.1.symbols new file mode 100644 index 0000000..8cf79c3 --- /dev/null +++ b/debian/libam7xxx0.1.symbols @@ -0,0 +1,10 @@ +libam7xxx.so.0.1 libam7xxx0.1 #MINVER# + am7xxx_calc_scaled_image_dimensions@Base 0.1.0 + am7xxx_close_device@Base 0.1.0 + am7xxx_get_device_info@Base 0.1.0 + am7xxx_init@Base 0.1.0 + am7xxx_open_device@Base 0.1.0 + am7xxx_send_image@Base 0.1.0 + am7xxx_set_log_level@Base 0.1.0 + am7xxx_set_power_mode@Base 0.1.0 + am7xxx_shutdown@Base 0.1.0 diff --git a/debian/libam7xxx0.1.udev b/debian/libam7xxx0.1.udev new file mode 120000 index 0000000..e5bed5d --- /dev/null +++ b/debian/libam7xxx0.1.udev @@ -0,0 +1 @@ +../contrib/55-am7xxx.rules \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8fa7396 --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +DEB_LDFLAGS_MAINT_APPEND=-Wl,-Bsymbolic-functions -Wl,--as-needed +include /usr/share/dpkg/buildflags.mk +export CFLAGS CPPFLAGS LDFLAGS + +%: + dh $@ 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/watch b/debian/watch new file mode 100644 index 0000000..0f44399 --- /dev/null +++ b/debian/watch @@ -0,0 +1 @@ +#git=git://git.ao2.it/libam7xxx.git -- 2.1.4