From 852d35914a0aa10fa8ab9a9dff5de712c17b9f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Pr=C3=A9vot?= <david@tilapin.org> Date: Mon, 1 Jul 2019 14:45:00 -1000 Subject: [PATCH] Initial packaging --- debian/autoload.php.tpl | 26 ++++++++++++++++++++++++++ debian/changelog | 5 +++++ debian/clean | 1 + debian/control | 20 ++++++++++++++++++++ debian/copyright | 26 ++++++++++++++++++++++++++ debian/install | 1 + debian/pkg-php-tools-overrides | 1 + debian/rules | 9 +++++++++ debian/source/format | 1 + debian/watch | 4 ++++ 10 files changed, 94 insertions(+) create mode 100644 debian/autoload.php.tpl create mode 100644 debian/changelog create mode 100644 debian/clean create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/install create mode 100644 debian/pkg-php-tools-overrides create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/autoload.php.tpl b/debian/autoload.php.tpl new file mode 100644 index 0000000..2f6e26e --- /dev/null +++ b/debian/autoload.php.tpl @@ -0,0 +1,26 @@ +<?php + +require_once 'Psr/Http/Message/autoload.php'; +require_once 'Psr/Http/Client/autoload.php'; +require_once 'Http/Promise/autoload.php'; + +// @codingStandardsIgnoreFile +// @codeCoverageIgnoreStart +// this is an autogenerated file - do not edit +spl_autoload_register( + function($class) { + static $classes = null; + if ($classes === null) { + $classes = array( + ___CLASSLIST___ + ); + } + $cn = strtolower($class); + if (isset($classes[$cn])) { + require ___BASEDIR___$classes[$cn]; + } + }, + true, + false +); +// @codeCoverageIgnoreEnd diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ad53c73 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +php-http-httplug (2.0.0-1) unstable; urgency=medium + + * Initial release (new symfony build-dependency) + + -- David Prévot <taffit@debian.org> Mon, 01 Jul 2019 15:01:02 -1000 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..58dd3b7 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +src/autoload.php diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..66fcd14 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: php-http-httplug +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 (= 12), phpab, pkg-php-tools (>= 1.7~) +Standards-Version: 4.3.0 +Homepage: http://httplug.io +Vcs-Git: https://salsa.debian.org/php-team/pear/php-http-httplug.git +Vcs-Browser: https://salsa.debian.org/php-team/pear/php-http-httplug + +Package: php-http-httplug +Architecture: all +Depends: ${misc:Depends}, ${phpcomposer:Debian-require} +Suggests: ${phpcomposer:Debian-suggest} +Breaks: ${phpcomposer:Debian-conflict} +Provides: ${phpcomposer:Debian-provide} +Description: ${phpcomposer:description} + HTTPlug allows one to write reusable libraries that need an HTTP client + without binding to a specific implementation. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..98cda98 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: HTTP Factories +Upstream-Contact: Márk Sági-Kazár <mark.sagikazar@gmail.com> +Source: https://github.com/php-http/httplug + +Files: * +Copyright: 2014, Eric GELOEN <geloen.eric@gmail.com> + 2015, PHP HTTP Team <team@php-http.org> +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/install b/debian/install new file mode 100644 index 0000000..f4ec3e2 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +src/* usr/share/php/Http/Client diff --git a/debian/pkg-php-tools-overrides b/debian/pkg-php-tools-overrides new file mode 100644 index 0000000..50391a7 --- /dev/null +++ b/debian/pkg-php-tools-overrides @@ -0,0 +1 @@ +php-http promise php-http-promise diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e181a16 --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ --with phpcomposer + +override_dh_auto_build: + phpab \ + --output src/autoload.php \ + --template debian/autoload.php.tpl \ + src 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..319fbe6 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 +options=uversionmangle=s/-?([^\d.])/~$1/i;tr/A-Z/a-z/ \ +https://github.com/php-http/httplug/releases \ +.*/archive/v?([\d\.]*-?\w*)\.tar\.gz -- GitLab