From c9d8a23142ff04b99ff6bc1db9c668cdb9de8fb7 Mon Sep 17 00:00:00 2001 From: Rafael Diniz Date: Tue, 2 May 2023 18:30:08 +0300 Subject: [PATCH] added debian dir --- debian/changelog | 34 ++++++++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 39 +++++++++++++++++++++++++++++++++++++ debian/copyright | 32 ++++++++++++++++++++++++++++++ debian/libwiringpi-dev.dirs | 2 ++ debian/libwiringpi-dev.install | 2 ++ debian/libwiringpi2.install | 1 + debian/libwiringpi2.shlibs | 2 ++ debian/rules | 44 ++++++++++++++++++++++++++++++++++++++++++ debian/source/format | 1 + debian/watch | 4 ++++ debian/wiringpi.dirs | 1 + debian/wiringpi.docs | 2 ++ debian/wiringpi.install | 2 ++ 14 files changed, 167 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/libwiringpi-dev.dirs create mode 100644 debian/libwiringpi-dev.install create mode 100644 debian/libwiringpi2.install create mode 100644 debian/libwiringpi2.shlibs create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch create mode 100644 debian/wiringpi.dirs create mode 100644 debian/wiringpi.docs create mode 100644 debian/wiringpi.install diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5b45176 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,34 @@ +wiringpi (2.71-1) unstable; urgency=low + + * Sync to upstream + + -- Rafael Diniz Tue, 02 May 2023 18:33:12 +0300 + +wiringpi (2.50-0ubuntu2) hirsute; urgency=medium + + * d/p/0001-Fix-for-multiple-definition-of-comDat-76.patch: Cherrypick patch + from upstream fork to fix FTBFS with GCC 10. + + -- Logan Rosen Thu, 07 Jan 2021 22:18:31 -0500 + +wiringpi (2.50-0ubuntu1) eoan; urgency=medium + + * New upstream release 2.50 (LP: #1824370). + + -- Dave Jones Thu, 11 Apr 2019 14:41:08 +0000 + +wiringpi (2.46-0ubuntu4) bionic; urgency=medium + + * Use v3 quilt format + * Add patch to fix build system to work with -as-needed, and to remove + redundant library dependencies + * Add patch to build and run on arm64 + + -- Dave Jones Wed, 20 Feb 2019 10:28:07 +0000 + +wiringpi (2.26~iwj) rpi-unstable; urgency=low + + * Initial version with real Debian source package build. + + -- Ian Jackson Sat, 12 Sep 2015 18:31:35 +0100 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e23a739 --- /dev/null +++ b/debian/control @@ -0,0 +1,39 @@ +Source: wiringpi +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Dave Jones +Build-Depends: debhelper (>= 10) +Standards-Version: 4.1.2 +Section: libs +Homepage: https://wiringpi.com/ +Vcs-Browser: https://git.drogon.net/?p=wiringPi;a=summary + +Package: libwiringpi-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libwiringpi2 (= ${binary:Version}), ${misc:Depends} +Description: Raspberry Pi library for controlling GPIO devices + A Raspberry Pi specific library for querying and controlling the GPIO pins, + and a variety of devices that connect to them from C, C++, or BASIC. + . + This package contains the development files (headers, etc.) for compiling + applications against libwiringPi. + +Package: libwiringpi2 +Architecture: any +Multi-Arch: same +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Raspberry Pi library for controlling GPIO devices + A Raspberry Pi specific library for querying and controlling the GPIO pins, + and a variety of devices that connect to them from C, C++, or BASIC. + . + This package contains the shared libraries libwiringPi and libwiringPiDev. + +Package: wiringpi +Architecture: any +Multi-Arch: foreign +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Raspberry Pi tool for controlling GPIO devices + A command line utility for querying and controlling the GPIO pins from the + shell. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..6bafd5f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,32 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: wiringpi +Source: https://git.drogon.net/?p=wiringPi;a=summary + +Files: * +Copyright: 2012-2018 Gordon Henderson +License: LGPL-3.0+ + +Files: wiringPi/wiringShift.h +Copyright: 2009-2012 Gordon Henderson +License: LGPL-3.0+ + +Files: debian/* +Copyright: 2019 Dave Jones +License: LGPL-3.0+ + +License: LGPL-3.0+ + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser 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 + Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU Lesser General + Public License can be found in "/usr/share/common-licenses/LGPL-3". diff --git a/debian/libwiringpi-dev.dirs b/debian/libwiringpi-dev.dirs new file mode 100644 index 0000000..4418816 --- /dev/null +++ b/debian/libwiringpi-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/libwiringpi-dev.install b/debian/libwiringpi-dev.install new file mode 100644 index 0000000..f3800aa --- /dev/null +++ b/debian/libwiringpi-dev.install @@ -0,0 +1,2 @@ +usr/include/* +usr/lib/*/lib*.so diff --git a/debian/libwiringpi2.install b/debian/libwiringpi2.install new file mode 100644 index 0000000..3ddde58 --- /dev/null +++ b/debian/libwiringpi2.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/debian/libwiringpi2.shlibs b/debian/libwiringpi2.shlibs new file mode 100644 index 0000000..0be8db1 --- /dev/null +++ b/debian/libwiringpi2.shlibs @@ -0,0 +1,2 @@ +libwiringPi 2 libwiringpi2 +libwiringPiDev 2 libwiringpi2 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d96680b --- /dev/null +++ b/debian/rules @@ -0,0 +1,44 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +# These won't do anything until the Makefiles are fixed +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +VERSION:=$(shell cat VERSION) +export VERSION +MAJOR:=$(shell echo $${VERSION%%.*}) +WIRINGPI_SONAME_SUFFIX:=.$(MAJOR) +export WIRINGPI_SONAME_SUFFIX + + +%: + dh $@ + +override_dh_prep: + dh_prep -Xdebian/tmp + +dirs: + dh_installdirs -A + mkdir debian/tmp + set -e; for pkg in `dh_listpackages`; do \ + (cd debian/$$pkg; find -type d) | \ + (cd debian/tmp; xargs mkdir -p) \ + done + mkdir -p debian/tmp/usr/lib/$(DEB_TARGET_GNU_TYPE)/ + +override_dh_clean: + dh_clean + WIRINGPI_SUDO= sh -xe ./build clean + +override_dh_auto_build: dirs + V=1 LDCONFIG=: WIRINGPI_SUDO= WIRINGPI_SUID=0 \ + DESTDIR=`pwd`/debian/tmp/usr PREFIX= sh -xe ./build + mv `find debian/tmp/usr/lib -type f` debian/tmp/usr/lib/$(DEB_TARGET_GNU_TYPE)/ + set -ex; for lib in `find debian/tmp/usr/lib/$(DEB_TARGET_GNU_TYPE)/ -type f`; do \ + ln -s $${lib##*/} $${lib%%.$(VERSION)}; \ + ln -s $${lib##*/} $${lib%%.$(VERSION)}.$(MAJOR); \ + done 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..6f5c0f6 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 + +# Direct Git +opts="mode=git" git://git.drogon.net/wiringPi refs/tags/v([\d\.]+) debian uupdate diff --git a/debian/wiringpi.dirs b/debian/wiringpi.dirs new file mode 100644 index 0000000..e772481 --- /dev/null +++ b/debian/wiringpi.dirs @@ -0,0 +1 @@ +usr/bin diff --git a/debian/wiringpi.docs b/debian/wiringpi.docs new file mode 100644 index 0000000..816605d --- /dev/null +++ b/debian/wiringpi.docs @@ -0,0 +1,2 @@ +README.TXT +People diff --git a/debian/wiringpi.install b/debian/wiringpi.install new file mode 100644 index 0000000..a833141 --- /dev/null +++ b/debian/wiringpi.install @@ -0,0 +1,2 @@ +debian/tmp/usr/bin +debian/tmp/usr/share