From fd8bef6bbcfb4f7aff3a7338dfa152a6c4af4afe Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 5 Oct 2015 18:10:17 +0200 Subject: php-mediawiki-at-ease: import from fedora --- php-mediawiki-at-ease.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 php-mediawiki-at-ease.spec (limited to 'php-mediawiki-at-ease.spec') 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 - 1.1.0-1 +- Initial package + -- cgit