summaryrefslogtreecommitdiffstats
path: root/php-pear-phing.spec
blob: 7048a3be8c4be0851a9109b76e40f3e34e83d6c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
# remirepo/fedora spec file for php-pear-phing
#
# Copyright (c) 2013-2022 Remi Collet
# Copyright (c) 2010-2013 Christof Damian
# Copyright (c) 2007-2010 Alexander Kahl
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please, preserve the changelog entries
#
%{!?__pear:       %global __pear       %{_bindir}/pear}
%global pear_name    phing
%global pear_channel pear.phing.info

Summary:       A project build system based on Apache Ant
Name:          php-pear-phing
Version:       2.17.2
Release:       1%{?dist}

License:       LGPLv2
URL:           http://phing.info/trac/

# remove non-free stuff
# pear download phing/phing
# ./strip.sh %%{version}
Source0:       %{pear_name}-%{version}-strip.tgz
Source1:       strip.sh

BuildArch:	noarch
BuildRequires: php(language) >= 5.2.0
BuildRequires: php-pear(PEAR) >= 1.8.0
BuildRequires: php-channel(%{pear_channel})
BuildRequires: dos2unix

Requires(post): %{__pear}
Requires(postun): %{__pear}
Requires:      php-cli
# From package.xml, Required
Requires:      php(language) >= 5.2.0
Requires:      php-pear(PEAR) >= 1.8.0
Requires:      php-channel(%{pear_channel})
# From package.xml, Optional
Requires:      php-pear(Archive_Tar) >= 1.3.8
Requires:      php-pear(HTTP_Request2) >= 2.1.1
Requires:      php-pear(PHP_CodeSniffer) >= 1.5.0
Requires:      php-pear(pear.pdepend.org/PHP_Depend) >= 0.10.0
Requires:      php-pear(pear.phpmd.org/PHP_PMD) >= 1.1.0
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8
# Removed from package.xml as no more available in pear
Recommends:    phpunit
Recommends:    phploc
Recommends:    phpcpd
Recommends:    phpcov
%endif

# TODO
# pear.phing.info/phingdocs >= 2.9.0
# VersionControl_SVN >= 0.4.0
# VersionControl_Git >= 0.4.3
# PEAR_PackageFileManager >= 1.5.2
# Services_Amazon_S3 >= 0.3.1
# pear.phpdoc.org/phpDocumentor >= 2.0.0a10

Provides:      php-pear(%{pear_channel}/%{pear_name}) = %{version}
Provides:      php-composer(phing/phing) = %{version}
# The project/command
Provides:      phing = %{version}


%description
PHing Is Not GNU make; it's a project build system based on Apache Ant.

You can do anything with it that you could do with a traditional build
system like GNU make, and its use of simple XML build files and extensible
PHP "task" classes make it an easy-to-use and highly flexible build
framework. Features include file transformations (e.g. token replacement,
XSLT transformation, Smarty template transformations), file system operations,
interactive build support, SQL execution, CVS operations, tools for creating
PEAR packages, and much more.


%prep
%setup -qc
cd %{pear_name}-%{version}
mv ../package.xml %{name}.xml


%build
cd %{pear_name}-%{version}


%install
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml

rm -rf %{buildroot}%{pear_metadir}/.??*

mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}


%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{pear_channel}/%{pear_name} >/dev/null || :
fi


%files
%{_bindir}/phing
%doc %{pear_docdir}/%{pear_name}
%{pear_datadir}/%{pear_name}
%{pear_phpdir}/%{pear_name}
%{pear_phpdir}/%{pear_name}.php
%{pear_xmldir}/%{name}.xml


%changelog
* Wed Feb  9 2022 Remi Collet <remi@remirepo.net> - 2.17.2-1
- update to 2.17.2

* Mon Jan 17 2022 Remi Collet <remi@remirepo.net> - 2.17.1-1
- update to 2.17.1

* Thu Sep  2 2021 Remi Collet <remi@remirepo.net> - 2.17.0-1
- update to 2.17.0

* Thu Feb  4 2021 Remi Collet <remi@remirepo.net> - 2.16.4-1
- update to 2.16.4

* Fri Jul 24 2020 Remi Collet <remi@remirepo.net> - 2.16.1-7
- use weak dependencies for phpunit, phploc, phpcpd and phpcov

* Thu Jan 25 2018 Remi Collet <remi@remirepo.net> - 2.16.1-1
- Update to 2.16.1 (no change)

* Fri Dec 23 2016 Remi Collet <remi@fedoraproject.org> - 2.16.0-1
- Update to 2.16.0

* Thu Oct 13 2016 Remi Collet <remi@fedoraproject.org> - 2.15.2-1
- Update to 2.15.2

* Wed Oct 12 2016 Remi Collet <remi@fedoraproject.org> - 2.15.1-1
- Update to 2.15.1

* Thu Sep 15 2016 Remi Collet <remi@fedoraproject.org> - 2.15.0-1
- Update to 2.15.0

* Fri Mar 11 2016 Remi Collet <remi@fedoraproject.org> - 2.14.0-1
- Update to 2.14.0

* Fri Dec 04 2015 Remi Collet <remi@fedoraproject.org> - 2.13.0-1
- Update to 2.13.0
- provide phing

* Tue Aug 25 2015 Remi Collet <remi@fedoraproject.org> - 2.12.0-1
- Update to 2.12.0

* Wed May 20 2015 Remi Collet <remi@fedoraproject.org> - 2.11.0-1
- Update to 2.11.0

* Fri Feb 20 2015 Remi Collet <remi@fedoraproject.org> - 2.10.1-1
- Update to 2.10.1

* Fri Feb 13 2015 Remi Collet <remi@fedoraproject.org> - 2.10.0-1
- Update to 2.10.0

* Wed Dec 03 2014 Remi Collet <remi@fedoraproject.org> - 2.9.1-1
- Update to 2.9.1

* Wed Nov 26 2014 Remi Collet <remi@fedoraproject.org> - 2.9.0-1
- Update to 2.9.0 (stable)

* Fri Oct 10 2014 Remi Collet <remi@fedoraproject.org> - 2.8.2-1
- Update to 2.8.2

* Mon Sep 16 2013 Remi Collet <remi@fedoraproject.org> - 2.6.1-1
- Update to 2.6.1

* Wed May  1 2013 Remi Collet <remi@fedoraproject.org> - 2.5.0-3
- clean more non-free stuff

* Sat Apr 20 2013 Christof Damian <christof@damian.net> - 2.5.0-2
- remove more mentions of non-free stuff

* Thu Mar 28 2013 Remi Collet <remi@fedoraproject.org> - 2.5.0-2
- remove jsmin from task/defaults.properties

* Wed Mar 13 2013 Remi Collet <remi@fedoraproject.org> - 2.5.0-1
- Update to 2.5.0

* Tue Jan 15 2013 Collet <RPMS@FamilleCollet.com> - 2.4.14-1.1
- sync with rawhide, drop non free stuff

* Mon Jan 14 2013 Christof Damian <christof@damian.net> - 2.4.14-1
- upstream 2.4.14
- remove non-free stuff
- remove optional xdebug requirement
- use pear_metadir

* Fri Nov 30 2012 Remi Collet <RPMS@FamilleCollet.com> - 2.4.14-1
- upstream 2.4.14, for remi repo

* Tue Nov 20 2012 Remi Collet <RPMS@FamilleCollet.com> - 2.4.13-1
- upstream 2.4.13, for remi repo
- add more requires (optional deps)

* Thu Apr 12 2012 Remi Collet <RPMS@FamilleCollet.com> - 2.4.12-1
- upstream 2.4.13, backport for remi repo

* Wed Apr 11 2012 Christof Damian <christof@damian.net> - 2.4.12-1
- upstream 2.4.12

* Tue Jan 24 2012 Remi Collet <RPMS@FamilleCollet.com> - 2.4.9-1
- upstream 2.4.9

* Fri Nov 04 2011 Remi Collet <RPMS@FamilleCollet.com> - 2.4.8-1
- upstream 2.4.8, rebuild for remi repository
- doc in /usr/share/doc/pear

* Thu Nov  3 2011 Christof Damian <christof@damian.net> - 2.4.8-1
- upstream 2.4.8

* Sun Jul 17 2011 Remi Collet <RPMS@FamilleCollet.com> - 2.4.6-1
- rebuild for remi repository

* Fri Jul 15 2011 Christof Damian <christof@damian.net> - 2.4.6-1
- upstream 2.4.6

* Sat Mar  5 2011 Christof Damian <christof@damian.net> - 2.4.5-1
- remove requires hint

* Fri Mar  4 2011 Christof Damian <christof@damian.net> - 2.4.5-1
- upstream 2.4.5

* Sun Dec 12 2010 Remi Collet <RPMS@FamilleCollet.com> - 2.4.4-1
- rebuild for remi repository

* Wed Dec  8 2010 Christof Damian <christof@damian.net> - 2.4.4-1
- upstream 2.4.4

* Thu Nov 25 2010 Remi Collet <RPMS@FamilleCollet.com> - 2.4.3-1
- rebuild for remi repository

* Tue Nov 23 2010 Christof Damian <christof@damian.net> - 2.4.3-1
- upstream 2.4.3

* Fri Aug 06 2010 Remi Collet <RPMS@FamilleCollet.com> - 2.4.2-1
- rebuild for remi repository

* Sat Jul 31 2010 Christof Damian <christof@damian.net> - 2.4.2-1
- upstream 2.4.2

* Wed Jun 23 2010 Remi Collet <RPMS@FamilleCollet.com> - 2.4.1-1
- rebuild for remi repository

* Thu May 27 2010 Christof Damian <christof@damian.net> - 2.4.1-1
- upstream 2.4.1
- taking over package

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Sun Jul 19 2009 Remi Collet <RPMS@FamilleCollet.com> - 2.3.0-2
- rebuild for remi repository

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Tue Nov  6 2007 Alexander Kahl <akahl@iconmobile.com> - 2.3.0-1
- stable version

* Tue Oct 30 2007 Alexander Kahl <akahl@iconmobile.com> - 2.3.0-0.1.RC2
- new release candidate version

* Tue Oct 16 2007 Alexander Kahl <akahl@iconmobile.com> - 2.3.0-0.1.RC1
- new release candidate version
- consequently adapted macros for all shell operations
- sanitized requires
- switched build root macro style
- additional s/\r\n/\n/g fixes

* Mon Sep  3 2007 Alexander Kahl <akahl@iconmobile.com> - 2.3.0-0.6.beta1
- name change (lowercase)
- changed pear datadir macro

* Fri Aug 24 2007 Alexander Kahl <akahl@iconmobile.com> - 2.3.0-0.5.beta1
- Fixed dos line terminators.

* Wed Aug 22 2007 Alexander Kahl <akahl@iconmobile.com> - 2.3.0-0.4.beta1
- New beta version.

* Tue Aug 21 2007 Alexander Kahl <akahl@iconmobile.com> - 2.2.0-3
- Adapted new Fedora layout.

* Tue Aug 21 2007 Alexander Kahl <akahl@iconmobile.com> - 2.2.0-2
- Updated PHPUnit dependency.

* Fri May 25 2007 Alexander Kahl <akahl@iconmobile.com> - 2.2.0-1
- Removed ant dependency.
- Added channel dependency.

* Wed May 23 2007 Alexander Kahl <akahl@iconmobile.com> 2.2.0-0
- Initial RPM release.