From 29e8449359cc34702afa308c25b1bace624a7f3c Mon Sep 17 00:00:00 2001 From: Kalle Vahlman Date: Tue, 12 Jun 2012 09:12:37 +0300 Subject: Proper packaging for loader communication The package name is changed to match usual library package naming, plus many other changes --- debian/changelog | 6 ++++ debian/compat | 1 + debian/control | 25 ++++++++++++++++ debian/copyright | 64 ++++++++++++++++++++++++++++++++++++++++ debian/docs | 3 ++ debian/libloadercomm-dev.dirs | 2 ++ debian/libloadercomm-dev.install | 1 + debian/libloadercomm1.dirs | 1 + debian/libloadercomm1.install | 1 + debian/rules | 27 +++++++++++++++++ debian/source/format | 1 + 11 files changed, 132 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/libloadercomm-dev.dirs create mode 100644 debian/libloadercomm-dev.install create mode 100644 debian/libloadercomm1.dirs create mode 100644 debian/libloadercomm1.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..7be5537 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +libloadercomm (0.5.0-igloo1) oneiric; urgency=low + + * Re-packaging of riff-loadercomm + * Update from upstream + + -- Kalle Vahlman Tue, 12 Jun 2012 09:52:14 +0300 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..781bb2a --- /dev/null +++ b/debian/control @@ -0,0 +1,25 @@ +Source: libloadercomm +Priority: extra +Maintainer: Kalle Vahlman +Build-Depends: debhelper (>= 8.0.0), libxalan2-java +Standards-Version: 3.9.2 +Section: libs +Homepage: http://igloocommunity.org + +Package: libloadercomm-dev +Section: libdevel +Architecture: any +Depends: libloadercomm1 (= ${binary:Version}) +Description: Riff Loader Communication headers + Riff Loader Communication is a support library for + the riff flashing tool. + +Package: libloadercomm1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: riff-loadercomm +Conflicts: riff-loadercomm +Description: Riff Loader Communication library + Riff Loader Communication is a support library for + the riff flashing tool. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..7937298 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,64 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: libloadercomm + +Files: * + +Copyright (c) 2011, ST-Ericsson SA +All rights reserved. + +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 ST-Ericsson SA 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 ST-Ericsson SA 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. + +Copyright: 2011 ST-Ericsson SA +License: MIT + +Files: source/security_algorithms/sha/sha2.* + +Copyright (c) 2000-2001, Aaron D. Gifford +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. 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. +3. Neither the name of the copyright holder nor the names of contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``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 AUTHOR OR CONTRIBUTOR(S) 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. + +Copyright: 2001 Aaron D. Gifford +License: BSD-3-clause diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..63e15ce --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +LICENSE_SHA2.txt +LICENSE.txt +README.txt diff --git a/debian/libloadercomm-dev.dirs b/debian/libloadercomm-dev.dirs new file mode 100644 index 0000000..9c8acb7 --- /dev/null +++ b/debian/libloadercomm-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include/loadercomm diff --git a/debian/libloadercomm-dev.install b/debian/libloadercomm-dev.install new file mode 100644 index 0000000..38daf5e --- /dev/null +++ b/debian/libloadercomm-dev.install @@ -0,0 +1 @@ +source/LCDriver.h usr/include/loadercomm/ diff --git a/debian/libloadercomm1.dirs b/debian/libloadercomm1.dirs new file mode 100644 index 0000000..6845771 --- /dev/null +++ b/debian/libloadercomm1.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/libloadercomm1.install b/debian/libloadercomm1.install new file mode 100644 index 0000000..2718237 --- /dev/null +++ b/debian/libloadercomm1.install @@ -0,0 +1 @@ +out/out_linux/liblcdriver.so usr/lib/ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f4c03bd --- /dev/null +++ b/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_auto_configure: + make config XALAN=/usr/share/java/xalan2.jar LCD_INSTALLDIR='dist/' + +override_dh_auto_build: +ifeq ($(DEB_HOST_ARCH),i386) + make LBITS=32 +endif +ifeq ($(DEB_HOST_ARCH),amd64) + make LBITS=64 + cp out/out_linux/liblcdriver_x64.so out/out_linux/liblcdriver.so +endif + +override_dh_auto_install: 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) -- cgit v1.2.3