From f481bbe8bf5d17635fae7ee8462ca1831e7cd6aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Pr=C3=A9vot?= <david@tilapin.org> Date: Tue, 30 Mar 2021 09:11:45 -0400 Subject: [PATCH] Initial packaging --- .../php-http-interop-http-factory-tests | 1 + debian/changelog | 5 ++++ debian/clean | 1 + debian/control | 26 +++++++++++++++++++ debian/copyright | 25 ++++++++++++++++++ debian/gbp.conf | 4 +++ debian/install | 2 ++ debian/pkg-php-tools-autoloaders | 1 + debian/rules | 10 +++++++ debian/source/format | 1 + debian/upstream/metadata | 5 ++++ debian/watch | 4 +++ 12 files changed, 85 insertions(+) create mode 100644 debian/autoloaders/php-http-interop-http-factory-tests create mode 100644 debian/changelog create mode 100644 debian/clean create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/install create mode 100644 debian/pkg-php-tools-autoloaders create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/autoloaders/php-http-interop-http-factory-tests b/debian/autoloaders/php-http-interop-http-factory-tests new file mode 100644 index 0000000..e9cad61 --- /dev/null +++ b/debian/autoloaders/php-http-interop-http-factory-tests @@ -0,0 +1 @@ +http-interop http-factory-tests Interop/Http/Factory/autoload.php diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7db1873 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +php-http-interop-http-factory-tests (0.9.0-1) unstable; urgency=low + + * Initial release (new php-guzzlehpttp-psr7 build-dependency) + + -- David Prévot <taffit@debian.org> Tue, 30 Mar 2021 09:06:45 -0400 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..20fbec2 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +test/autoload.php diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..0c2ba4b --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: php-http-interop-http-factory-tests +Section: php +Priority: optional +Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org> +Uploaders: David Prévot <taffit@debian.org> +Build-Depends: debhelper-compat (= 13), + dh-sequence-phpcomposer, + phpab, + phpunit (>= 9.5.3), + pkg-php-tools (>= 1.41~) +Standards-Version: 4.5.1 +Homepage: https://github.com/http-interop/http-factory-tests +Vcs-Git: https://salsa.debian.org/php-team/pear/php-http-interop-http-factory-tests.git +Vcs-Browser: https://salsa.debian.org/php-team/pear/php-http-interop-http-factory-tests +Rules-Requires-Root: no + +Package: php-http-interop-http-factory-tests +Architecture: all +Depends: ${misc:Depends}, ${phpcomposer:Debian-require} +Recommends: ${phpcomposer:Debian-recommend} +Suggests: ${phpcomposer:Debian-suggest} +Replaces: ${phpcomposer:Debian-replace} +Breaks: ${phpcomposer:Debian-conflict}, ${phpcomposer:Debian-replace} +Provides: ${phpcomposer:Debian-provide} +Description: ${phpcomposer:description} + This package provides ${phpcomposer:description}. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b0e60dc --- /dev/null +++ b/debian/copyright @@ -0,0 +1,25 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Unit tests for HTTP Factory implementations +Upstream-Contact: Woody Gilk <woody.gilk@gmail.com> +Source: https://github.com/http-interop/http-factory-tests + +Files: * +Copyright: 2016, Woody Gilk <woody.gilk@gmail.com> +License: Expat + 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/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..07ca718 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +debian-branch = debian/latest +pristine-tar = True +upstream-vcs-tag = %(version%~%-)s diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..8bc78b1 --- /dev/null +++ b/debian/install @@ -0,0 +1,2 @@ +debian/autoloaders usr/share/pkg-php-tools +test/* usr/share/php/Interop/Http/Factory diff --git a/debian/pkg-php-tools-autoloaders b/debian/pkg-php-tools-autoloaders new file mode 100644 index 0000000..2b387cd --- /dev/null +++ b/debian/pkg-php-tools-autoloaders @@ -0,0 +1 @@ +psr http-factory Psr/Http/Message/factory-autoload.php diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..aa86b85 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_build: + phpabtpl composer.json > debian/autoload.php.tpl + phpab \ + --output test/autoload.php \ + --template debian/autoload.php.tpl \ + test 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/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..818dd23 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/http-interop/http-factory-tests/issues +Bug-Submit: https://github.com/http-interop/http-factory-tests/issues/new +Repository: https://github.com/http-interop/http-factory-tests.git +Repository-Browse: https://github.com/http-interop/http-factory-tests diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..7d14f6c --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +options=uversionmangle=s/-?([^\d.])\.?/~$1/i;tr/A-Z/a-z/ \ +https://github.com/http-interop/http-factory-tests/releases \ +.*/v?(\d.+).tar.gz -- GitLab