diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-10-05 18:10:17 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-10-05 18:10:17 +0200 |
commit | fd8bef6bbcfb4f7aff3a7338dfa152a6c4af4afe (patch) | |
tree | cdaf20b01b05b2785c8d22748f6ffe37f01770a7 |
php-mediawiki-at-ease: import from fedora
-rw-r--r-- | php-mediawiki-at-ease.spec | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/php-mediawiki-at-ease.spec b/php-mediawiki-at-ease.spec new file mode 100644 index 0000000..faab100 --- /dev/null +++ b/php-mediawiki-at-ease.spec @@ -0,0 +1,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 + |