summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-26 08:12:57 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-26 08:12:57 +0200
commita573178e7cc2f76d237dd2110e4d033b49d90017 (patch)
tree63398ba0b8454116891074adb646d224af02f650
php-oojs-oojs-ui: import from fedora
-rw-r--r--php-oojs-oojs-ui.spec56
1 files changed, 56 insertions, 0 deletions
diff --git a/php-oojs-oojs-ui.spec b/php-oojs-oojs-ui.spec
new file mode 100644
index 0000000..a31b378
--- /dev/null
+++ b/php-oojs-oojs-ui.spec
@@ -0,0 +1,56 @@
+%global git_tag_rev 847c492f2ae8228a4b9ae866dc21212c60813820
+
+Name: php-oojs-oojs-ui
+Version: 0.11.6
+Release: 1%{?dist}
+Summary: Object-Oriented JavaScript – User Interface
+
+License: MIT
+URL: http://www.mediawiki.org/wiki/OOjs_UI
+Source0: http://git.wikimedia.org/zip/?r=oojs/ui.git&format=xz&h=%{git_tag_rev}#/%{name}-%{version}.tar.xz
+
+Buildarch: noarch
+
+BuildRequires: php-phpunit-PHPUnit
+BuildRequires: php-theseer-autoload
+
+Requires: php(language) >= 5.3.3
+Requires: php-json
+Requires: php-pcre
+Requires: php-spl
+
+Provides: php-composer(oojs/oojs-ui) = %{version}
+
+%description
+OOjs UI (Object-Oriented JavaScript – User Interface) is a library that allows
+developers to rapidly create front-end web applications that operate
+consistently across a multitude of browsers.
+
+
+%prep
+%setup -qc %{name}-%{version}
+
+
+%build
+phpab --output php/autoload.php php
+
+
+%install
+mkdir -pm 0755 %{buildroot}%{_datadir}/php/OOUI
+cp -rp php/* %{buildroot}%{_datadir}/php/OOUI
+
+
+%check
+phpunit -v --bootstrap php/autoload.php
+
+
+%files
+%license LICENSE-MIT
+%doc AUTHORS.txt composer.json History.md README.md
+%{_datadir}/php/OOUI
+
+
+%changelog
+* Thu Jun 25 2015 Michael Cronenworth <mike@cchtml.com> - 0.11.6-1
+- Initial package
+