blob: faab100ea25f98b1ccdae0c7003dabcc75d7d068 (
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
|
%global git_tag_rev 94c0b84888841d160419f915c2745d9d08fbf0c3
Name: php-mediawiki-at-ease
Version: 1.1.0
Release: 1%{?dist}
Summary: Safe replacement to @ for suppressing warnings
License: GPLv2+
URL: http://www.mediawiki.org/wiki/at-ease
Source0: http://git.wikimedia.org/zip/?r=at-ease.git&format=xz&h=%{git_tag_rev}#/%{name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: php-phpunit-PHPUnit
Requires: php(language) >= 5.3.0
Provides: php-composer(mediawiki/at-ease) = %{version}
%description
at-ease is a PHP library that provides a safe alternative to PHP's @ error
control operator. See Manual:Coding conventions/PHP#Error handling on why
we don't use @. The code was originally introduced to MediaWiki in r4261,
and then split out into a separate library during the MediaWiki 1.26
development cycle.
%prep
%setup -qc %{name}-%{version}
%build
%install
mkdir -pm 0755 %{buildroot}%{_datadir}/php/MediaWiki/at-ease
cp -rp src/* %{buildroot}%{_datadir}/php/MediaWiki/at-ease
%check
phpunit -v --bootstrap %{buildroot}%{_datadir}/php/MediaWiki/at-ease/Functions.php
%files
%license COPYING
%doc composer.json README.md
%{_datadir}/php/MediaWiki
%changelog
* Wed Sep 30 2015 Michael Cronenworth <mike@cchtml.com> - 1.1.0-1
- Initial package
|