blob: f93ddf1a95750ce226fd9d5b563fb8c823cdc6ca (
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
|
# remirepo/fedora spec file for php-zetacomponents-unit-test
#
# Copyright (c) 2015-2022 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%global gh_commit cb521e9197ce5a3b6daab2d8fa006c9f97a05275
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner zetacomponents
%global gh_project UnitTest
%global cname unit-test
%global ezcdir %{_datadir}/php/ezc
Name: php-%{gh_owner}-%{cname}
Version: 1.2.3
Release: 1%{?dist}
Summary: Zeta UnitTest Component
License: ASL 2.0
URL: http://zetacomponents.org/
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
BuildArch: noarch
BuildRequires: php-fedora-autoloader-devel
# From phpcompatinfo report for 1.0.2
Requires: php(language) > 5.3
Requires: php-pcre
Requires: php-reflection
Requires: php-spl
Requires: phpunit8
# Also use Exception for Base, skipped to avoid circular dep.
Requires: php-composer(fedora/autoloader)
Provides: php-composer(%{gh_owner}/%{cname}) = %{version}
%description
UnitTest is an internal component which extends PhpUnit to facilitate test
running and reports of the components themselves.
For this reason, there is no tutorial for this component. If you really want
to use it for some reason it's sane to expect some community support on IRC or
the mailing list.
%prep
%setup -q -n %{gh_project}-%{gh_commit}
%build
: Generate a simple autoloader
%{_bindir}/phpab \
--template fedora \
--output src/autoloader.php \
src
%install
mkdir -p %{buildroot}%{ezcdir}/autoload
: The library
cp -pr src \
%{buildroot}%{ezcdir}/%{gh_project}
: For ezcBase autoloader
cp -pr src/*_autoload.php \
%{buildroot}%{ezcdir}/autoload
%files
%{!?_licensedir:%global license %%doc}
%license LICENSE* CREDITS
%doc ChangeLog
%doc composer.json
%doc docs design
%dir %{ezcdir}
%dir %{ezcdir}/autoload
%{ezcdir}/autoload/*_autoload.php
%{ezcdir}/%{gh_project}
%changelog
* Mon Jul 18 2022 Remi Collet <remi@remirepo.net> - 1.2.3-1
- update to 1.2.3
- switch to phpunit9
* Tue Feb 15 2022 Remi Collet <remi@remirepo.net> - 1.1.7-1
- update to 1.1.7
* Mon Jan 24 2022 Remi Collet <remi@remirepo.net> - 1.1.5-1
- update to 1.1.5
* Mon Aug 9 2021 Remi Collet <remi@remirepo.net> - 1.1.3-1
- update to 1.1.3
- switch to phpunit8
* Wed Feb 27 2019 Remi Collet <remi@remirepo.net> - 1.1.2-1
- update to 1.1.2
* Thu Jun 4 2015 Remi Collet <remi@fedoraproject.org> - 1.0.2-2
- add upstream patch for LICENSE file
* Wed Jun 3 2015 Remi Collet <remi@fedoraproject.org> - 1.0.2-1
- initial package
- open https://github.com/zetacomponents/UnitTest/issues/4 License
- open https://github.com/zetacomponents/UnitTest/pull/5 phpunit 4
|