Overview

Request 2600 (accepted)

Add package for Debian 10 (was dropped upstream)


php-pear-HTTP-Request2.spec Added
x
 
1
@@ -0,0 +1,233 @@
2
+# remirepo/fedora spec file for php-pear-HTTP-Request2
3
+#
4
+# Copyright (c) 2009-2016 Remi Collet
5
+# License: CC-BY-SA
6
+# http://creativecommons.org/licenses/by-sa/4.0/
7
+#
8
+# Please, preserve the changelog entries
9
+#
10
+%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
11
+%{!?__pear:       %global __pear       %{_bindir}/pear}
12
+%global pear_name   HTTP_Request2
13
+%global with_tests  %{?_with_tests:1}%{!?_with_tests:0}
14
+
15
+# Needed for openSUSE
16
+%if 0%{?suse_version}
17
+%{!?pear_cfgdir:    %global pear_cfgdir %(%{__pear} config-get cfg_dir  2> /dev/null || echo undefined)}
18
+%{!?pear_datadir:   %global pear_datadir %(%{__pear} config-get data_dir 2> /dev/null || echo undefined)}
19
+%{!?pear_docdir:    %global pear_docdir %(%{__pear} config-get doc_dir  2> /dev/null || echo undefined)}
20
+%{!?pear_metadir:   %global pear_metadir %(%{__pear} config-get metadata_dir 2> /dev/null || echo undefined)}
21
+%{!?pear_phpdir:    %global pear_phpdir %(%{__pear} config-get php_dir  2> /dev/null || echo undefined)}
22
+%{!?pear_testdir:   %global pear_testdir %(%{__pear} config-get test_dir 2> /dev/null || echo undefined)}
23
+%{!?pear_wwwdir:    %global pear_wwwdir %(%{__pear} config-get www_dir  2> /dev/null || echo undefined)}
24
+%{!?pear_xmldir:    %global pear_xmldir %{_localstatedir}/lib/pear/pkgxml}
25
+%endif
26
+
27
+%if 0%{?suse_version} > 0
28
+Name:           php5-pear-HTTP_Request2
29
+%else
30
+Name:           php-pear-HTTP-Request2
31
+%endif
32
+Version:        2.3.0
33
+Release:        1%{?dist}
34
+Summary:        Provides an easy way to perform HTTP requests
35
+
36
+License:        BSD
37
+URL:            http://pear.php.net/package/HTTP_Request2
38
+Source0:        http://pear.php.net/get/%{pear_name}-%{version}.tgz
39
+
40
+BuildArch:      noarch
41
+%if 0%{?suse_version} > 0
42
+BuildRequires:  php-pear >= 1.9.2
43
+%else
44
+BuildRequires:  php-pear(PEAR) >= 1.9.2
45
+%endif
46
+# For test suite
47
+%if %{with_tests}
48
+BuildRequires:  php-pear(pear.phpunit.de/PHPUnit)
49
+BuildRequires:  php-pear(Net_URL2) >= 2.2.0
50
+%endif
51
+
52
+Requires(post): %{__pear}
53
+Requires(postun): %{__pear}
54
+# From package.xml
55
+Requires:       php-pear(Net_URL2) >= 2.2.0
56
+%if 0%{?suse_version} > 0
57
+Requires:       php-pear >= 1.9.2
58
+%else
59
+Requires:       php-pear(PEAR) >= 1.9.2
60
+%endif
61
+
62
+# From package.xml, optional
63
+Requires:       php-curl
64
+Requires:       php-fileinfo
65
+Requires:       php-openssl
66
+Requires:       php-zlib
67
+# From phpcompatinfo report for version 2.2.0
68
+Requires:       php-date
69
+Requires:       php-mbstring
70
+Requires:       php-pcre
71
+Requires:       php-spl
72
+
73
+Provides:       php-pear(%{pear_name}) = %{version}
74
+Provides:       php-composer(pear/http_request2) = %{version}
75
+
76
+
77
+%description
78
+PHP5 rewrite of HTTP_Request package. Provides cleaner API and pluggable
79
+Adapters. Currently available are:
80
+  * Socket adapter, based on old HTTP_Request code,
81
+  * Curl adapter, wraps around PHP's cURL extension,
82
+  * Mock adapter, to use for testing packages dependent on HTTP_Request2.
83
+Supports POST requests with data and file uploads, basic and digest 
84
+authentication, cookies, proxies, gzip and deflate encodings, monitoring 
85
+the request progress with Observers...
86
+
87
+
88
+%prep
89
+%setup -q -c
90
+
91
+cd %{pear_name}-%{version}
92
+# package.xml is V2
93
+mv ../package.xml %{name}.xml
94
+
95
+
96
+%build
97
+cd %{pear_name}-%{version}
98
+# Empty build section, most likely nothing required.
99
+
100
+
101
+%install
102
+rm -rf %{buildroot}
103
+
104
+cd %{pear_name}-%{version}
105
+%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
106
+
107
+# for rpmlint
108
+sed -i -e 's/\r//' %{buildroot}%{pear_docdir}/%{pear_name}/examples/upload-rapidshare.php
109
+
110
+# Clean up unnecessary files
111
+rm -rf %{buildroot}%{pear_metadir}/.??*
112
+
113
+# Install XML package description
114
+mkdir -p %{buildroot}%{pear_xmldir}
115
+install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
116
+
117
+
118
+%check
119
+%if %{with_tests}
120
+cd %{pear_name}-%{version}/tests
121
+# Tests: 97, Assertions: 171, Skipped: 3.
122
+
123
+phpunit \
124
+   -d date.timezone=UTC \
125
+   -d include_path=.:%{buildroot}%{pear_phpdir}:%{pear_phpdir} \
126
+   AllTests.php
127
+%else
128
+echo 'Test suite disabled (missing "--with tests" option)'
129
+%endif
130
+
131
+
132
+
133
+%post
134
+%{__pear} install --nodeps --soft --force --register-only \
135
+    %{pear_xmldir}/%{name}.xml >/dev/null || :
136
+
137
+%postun
138
+if [ $1 -eq 0 ] ; then
139
+    %{__pear} uninstall --nodeps --ignore-errors --register-only \
140
+        pear.php.net/%{pear_name} >/dev/null || :
141
+fi
142
+
143
+
144
+%files
145
+%doc %{pear_docdir}/%{pear_name}
146
+%{pear_xmldir}/%{name}.xml
147
+%{pear_phpdir}/HTTP
148
+%{pear_testdir}/%{pear_name}
149
+%{pear_datadir}/%{pear_name}
150
+
151
+
152
+%changelog
153
+* Sun Feb 14 2016 Remi Collet <remi@fedoraproject.org> - 2.3.0-1
154
+- update to 2.3.0 (stable)
155
+- raise dependency on Net_URL2 >= 2.2.0
156
+- provide php-composer(pear/http_request2)
157
+- drop generated Changelog
158
+
159
+* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-4
160
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
161
+
162
+* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
163
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
164
+
165
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
166
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
167
+
168
+* Fri Jan 17 2014 Remi Collet <remi@fedoraproject.org> - 2.2.1-1
169
+- update to 2.2.1 (stable)
170
+
171
+* Mon Jan 13 2014 Remi Collet <remi@fedoraproject.org> - 2.2.0-1
172
+- update to 2.2.0 (stable)
173
+- https://pear.php.net/bugs/20176 - corrupted archive
174
+- https://pear.php.net/bugs/20175 - license
175
+
176
+* Mon Aug  5 2013 Remi Collet <remi@fedoraproject.org> - 2.1.1-8
177
+- xml2change need simplexml
178
+
179
+* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-7
180
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
181
+
182
+* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-6
183
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
184
+
185
+* Mon Dec 03 2012 Remi Collet <remi@fedoraproject.org> - 2.1.1-5
186
+- add requires on all extensions
187
+
188
+* Sun Aug 19 2012 Remi Collet <remi@fedoraproject.org> - 2.1.1-4
189
+- rebuilt for new pear_datadir
190
+
191
+* Tue Aug 14 2012 Remi Collet <remi@fedoraproject.org> - 2.1.1-3
192
+- rebuilt for new pear_testdir
193
+
194
+* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
195
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
196
+
197
+* Sat May 12 2012 Remi Collet <remi@fedoraproject.org> - 2.1.1-1
198
+- Version 2.1.1 (stable) - API 2.1.0 (stable)
199
+- requires PEAR 1.9.2
200
+- (re)enable test during build
201
+
202
+* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
203
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
204
+
205
+* Sat Oct 22 2011 Remi Collet <remi@fedoraproject.org> - 2.0.0-1
206
+- Version 2.0.0 (stable) - API 2.0.0 (stable)
207
+- add "tests" option
208
+
209
+* Sun Apr 17 2011 Remi Collet <Fedora@FamilleCollet.com> 0.6.0-2
210
+- doc in /usr/share/doc/pear
211
+
212
+* Wed Feb 16 2011 Remi Collet <Fedora@FamilleCollet.com> 0.6.0-1
213
+- Version 0.6.0 (alpha) - API 0.6.0 (alpha)
214
+- set date.timezone during build
215
+- run phpunit test suite during %%check
216
+
217
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-3
218
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
219
+
220
+* Sat May 22 2010 Remi Collet <Fedora@FamilleCollet.com> 0.5.2-2
221
+- spec cleanup
222
+
223
+* Wed Apr 21 2010 Remi Collet <Fedora@FamilleCollet.com> 0.5.2-1
224
+- new upstream version 0.5.2 (bugfix) - API 0.5.0
225
+- add generated Changelog
226
+
227
+* Sun Nov 22 2009 Remi Collet <Fedora@FamilleCollet.com> 0.5.1-1
228
+- new version
229
+
230
+* Fri Nov 20 2009 Remi Collet <Fedora@FamilleCollet.com> 0.5.0-1
231
+- new version
232
+
233
+* Wed Nov 11 2009 Remi Collet <Fedora@FamilleCollet.com> 0.4.1-1
234
+- initial RPM
235
HTTP_Request2-2.3.0.tgz Added
debian.changelog Added
109
 
1
@@ -0,0 +1,107 @@
2
+php-http-request2 (2.3.0-1~kolab1) unstable; urgency=medium
3
+
4
+  * Package for Kolab
5
+  * Disable failing tests
6
+
7
+ -- Christoph Erhardt <kolab@sicherha.de>  Sat, 05 Oct 2019 10:42:31 +0200
8
+
9
+php-http-request2 (2.3.0-1) unstable; urgency=medium
10
+
11
+  * Team upload
12
+
13
+  [ Alexey Borzov ]
14
+  * Copyright year update
15
+
16
+  [ David Prévot ]
17
+  * Use standard gbp layout
18
+  * Drop patches applied upstream
19
+  * Update copyright (years)
20
+  * Use proper team name
21
+  * Update Standards-Version to 3.9.7
22
+  * Build with recent pkg-php-tools for the PHP 7.0 transition
23
+
24
+ -- David Prévot <taffit@debian.org>  Fri, 18 Mar 2016 15:36:11 -0400
25
+
26
+php-http-request2 (2.2.1-2) unstable; urgency=medium
27
+
28
+  * Team upload, to unstable since Jessie has been released
29
+  * Use patches as applied upstream
30
+  * Adapt packaging to updated patches
31
+
32
+ -- David Prévot <taffit@debian.org>  Sat, 23 May 2015 22:19:45 -0400
33
+
34
+php-http-request2 (2.2.1-1) experimental; urgency=medium
35
+
36
+  * Team upload, to experimental to respect the freeze
37
+
38
+  [ Alexey Borzov ]
39
+  * Prepare release 2.2.1
40
+
41
+  [ David Prévot ]
42
+  * Document upstream VCS
43
+  * Update copyright
44
+  * Bump standards version to 3.9.6
45
+  * Allow tests to run with recent packages
46
+  * Run the testsuite during the build
47
+  * Provide DEP-8 tests
48
+
49
+ -- David Prévot <taffit@debian.org>  Fri, 20 Mar 2015 22:46:30 -0400
50
+
51
+php-http-request2 (2.1.1-5) unstable; urgency=medium
52
+
53
+  * Team upload
54
+
55
+  [ Sascha Girrulat ]
56
+  * add gbp.conf in addition to pkg-php.alioth.debian.org
57
+  * update buildsystem addition to pkg-php.alioth.debian.org
58
+  * update vcs urls to pkg-php destination
59
+
60
+  [ David Prévot ]
61
+  * Remove useless dh-make-php build-dependency
62
+  * Bump standards version to 3.9.5
63
+  * Use ${phppear:*} substitutions
64
+  * Adapt copyright to comply with format 1.0
65
+  * Shorten rules
66
+  * Do not ship tests
67
+
68
+ -- David Prévot <taffit@debian.org>  Wed, 01 Jan 2014 11:14:10 -0400
69
+
70
+php-http-request2 (2.1.1-4) unstable; urgency=low
71
+
72
+  * [578bb68] set section to php
73
+  * [18c2168] remove needless d/dirs
74
+  * [d02113a] remove needless and empty directory
75
+  * [92a00d0] fix bsd license block at d/copyright
76
+  * [21a41ad] remove needles d/README.Debian
77
+  * [1b29308] remove dh-make template header from d/rules
78
+  * (Closes: #651960)
79
+
80
+ -- Sascha Girrulat <sascha@girrulat.de>  Thu, 29 Aug 2013 14:46:38 +0200
81
+
82
+php-http-request2 (2.1.1-3) unstable; urgency=low
83
+
84
+  * [db31a9f] remove obsolete DMUA tag from d/control
85
+  * [51abb00] convert d/copyright to format version 1.0 and add missing license
86
+    headers
87
+  * [52a9985] bump debhelper dependency to 8.0.0
88
+  * [79190de] bump to standards version 3.9.4
89
+  * [37327e2] Add d/source/format
90
+  * [c79e513] add vcs and homepage information to d/control
91
+  * [f3802f9] Add lintian-override for .channel.doc.php.net
92
+
93
+ -- Sascha Girrulat <sascha@girrulat.de>  Tue, 13 Aug 2013 18:24:06 +0200
94
+
95
+php-http-request2 (2.1.1-2) unstable; urgency=low
96
+
97
+  * [e10c2d5] add dependency to php-net-url2
98
+  * [ef53f90] allow DM Uploads
99
+  * [a391745] update copyright
100
+
101
+ -- Sascha Girrulat <sascha@girrulat.de>  Wed, 06 Jun 2012 14:45:10 +0200
102
+
103
+php-http-request2 (2.1.1-1) unstable; urgency=low
104
+
105
+  * Initial Release (Closes: #651960).
106
+
107
+ -- Sascha Girrulat <sascha@girrulat.de>  Tue, 05 Jun 2012 15:23:57 +0200
108
+
109
debian.control Added
24
 
1
@@ -0,0 +1,22 @@
2
+Source: php-http-request2
3
+Section: php
4
+Priority: optional
5
+Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>
6
+Uploaders: Sascha Girrulat <sascha@girrulat.de>
7
+Build-Depends: debhelper (>= 8.0.0),
8
+               php-net-url2 (>= 2.1.1),
9
+               phpunit,
10
+               pkg-php-tools
11
+Standards-Version: 3.9.7
12
+Homepage: http://pear.php.net/package/HTTP_Request2/
13
+Vcs-Git: git://anonscm.debian.org/pkg-php/php-http-request2.git
14
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-php/php-http-request2.git
15
+
16
+Package: php-http-request2
17
+Architecture: all
18
+Depends: ${misc:Depends}, ${phppear:Debian-Depends}
19
+Recommends: ${phppear:Debian-Recommends}
20
+Suggests: ${phppear:Debian-Suggests}
21
+Breaks: ${phppear:Debian-Breaks}
22
+Description: ${phppear:summary}
23
+ ${phppear:description}
24
debian.rules Added
8
 
1
@@ -0,0 +1,6 @@
2
+#!/usr/bin/make -f
3
+%:
4
+   dh $@ --buildsystem=phppear --with phppear
5
+
6
+get-orig-source:
7
+   uscan --rename --verbose --force
8
debian.tar.gz Added
php-http-request2.dsc Added
20
 
1
@@ -0,0 +1,18 @@
2
+Format: 1.0
3
+Source: php-http-request2
4
+Binary: php-http-request2
5
+Architecture: all
6
+Version: 2.3.0-1~kolab1
7
+Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>
8
+Uploaders: Sascha Girrulat <sascha@girrulat.de>
9
+Homepage: http://pear.php.net/package/HTTP_Request2/
10
+Standards-Version: 3.9.7
11
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-php/php-http-request2.git
12
+Vcs-Git: git://anonscm.debian.org/pkg-php/php-http-request2.git
13
+Testsuite: autopkgtest
14
+Build-Depends: debhelper (>= 8.0.0), php-net-url2 (>= 2.1.1), phpunit, pkg-php-tools
15
+Package-List:
16
+ php-http-request2 deb php optional arch=all
17
+Files:
18
+ 00000000000000000000000000000000 0 HTTP_Request2-2.3.0.tgz
19
+ 00000000000000000000000000000000 0 debian.tar.gz
20
Refresh
Refresh
Request History
Christoph Erhardt's avatar

sicherha created request over 5 years ago

Add package for Debian 10 (was dropped upstream)


Christoph Erhardt's avatar

sicherha accepted request over 5 years ago