summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-07-18 07:39:12 +0200
committerRemi Collet <remi@remirepo.net>2017-07-18 07:39:12 +0200
commit65a766550f47af0283ca59a98ce78cd89a311c06 (patch)
treeed4ad84e73a559bbcd6693b50b83f7ca8f6832a3
parent5342a852fe013ad9b8f38fb76275cb2450ab46d3 (diff)
v0.21.2 from FedoraHEADmaster
-rw-r--r--.gitignore7
-rw-r--r--php-oojs-oojs-ui.spec31
2 files changed, 21 insertions, 17 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1ab5c4f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+package-*.xml
+*.tgz
+*.tar.gz
+*.tar.xz
+*.tar.xz.asc
+*.src.rpm
+*/*rpm
diff --git a/php-oojs-oojs-ui.spec b/php-oojs-oojs-ui.spec
index 3a150ab..4bde898 100644
--- a/php-oojs-oojs-ui.spec
+++ b/php-oojs-oojs-ui.spec
@@ -8,22 +8,24 @@
%global git_tag_rev 847c492f2ae8228a4b9ae866dc21212c60813820
Name: php-oojs-oojs-ui
-Version: 0.11.6
+Version: 0.21.2
Release: 1%{?dist}
Summary: Object-Oriented JavaScript – User Interface
Group: Development/Libraries
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
+#Source0: http://git.wikimedia.org/zip/?r=oojs/ui.git&format=xz&h=%{git_tag_rev}#/%{name}-%{version}.tar.xz
+# Wikimedia changed server software and now doesn't support downloads
+# https://phabricator.wikimedia.org/T111887
+Source0: https://github.com/wikimedia/oojs-ui/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Buildarch: noarch
+BuildArch: noarch
BuildRequires: php-phpunit-PHPUnit
BuildRequires: php-theseer-autoload
-Requires: php(language) >= 5.3.3
+Requires: php(language) >= 5.4.0
Requires: php-json
Requires: php-pcre
Requires: php-spl
@@ -37,36 +39,31 @@ consistently across a multitude of browsers.
%prep
-%setup -qc %{name}-%{version}
+%setup -q -n oojs-ui-%{version}
%build
+# dirty hack since autoloader isn't working
+sed -i '5i require "/usr/share/php/OOUI/mixins/AccessKeyedElement.php";' php/widgets/InputWidget.php
phpab --output php/autoload.php php
%install
-rm -rf %{buildroot}
mkdir -pm 0755 %{buildroot}%{_datadir}/php/OOUI
cp -rp php/* %{buildroot}%{_datadir}/php/OOUI
-%check
-phpunit -v --bootstrap php/autoload.php
-
-
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE-MIT
-%doc AUTHORS.txt composer.json History.md README.md
+%doc AUTHORS.txt package.json History.md README.md
%{_datadir}/php/OOUI
%changelog
+* Mon Jul 17 2017 Michael Cronenworth <mike@cchtml.com> - 0.21.2-1
+- version update
+
* Fri Jun 26 2015 Remi Collet <remi@remirepo.net> - 0.11.6-1
- backport for remirepo