summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-26 08:18:18 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-26 08:18:18 +0200
commit5342a852fe013ad9b8f38fb76275cb2450ab46d3 (patch)
tree10d1e39556ba0b9a29e38b23125ab376edae0fcd
parenta573178e7cc2f76d237dd2110e4d033b49d90017 (diff)
php-oojs-oojs-ui: add backport stuff
-rw-r--r--Makefile4
-rw-r--r--php-oojs-oojs-ui.spec19
2 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..91b0fd5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../../common/Makefile
+
diff --git a/php-oojs-oojs-ui.spec b/php-oojs-oojs-ui.spec
index a31b378..3a150ab 100644
--- a/php-oojs-oojs-ui.spec
+++ b/php-oojs-oojs-ui.spec
@@ -1,14 +1,23 @@
+# remirepo spec file for php-oojs-oojs-ui, from:
+#
+# Fedora spec file for php-oojs-oojs-ui
+#
+# License: MIT
+# http://opensource.org/licenses/MIT
+#
%global git_tag_rev 847c492f2ae8228a4b9ae866dc21212c60813820
Name: php-oojs-oojs-ui
Version: 0.11.6
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
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Buildarch: noarch
BuildRequires: php-phpunit-PHPUnit
@@ -36,6 +45,7 @@ phpab --output php/autoload.php php
%install
+rm -rf %{buildroot}
mkdir -pm 0755 %{buildroot}%{_datadir}/php/OOUI
cp -rp php/* %{buildroot}%{_datadir}/php/OOUI
@@ -44,13 +54,22 @@ cp -rp php/* %{buildroot}%{_datadir}/php/OOUI
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
%{_datadir}/php/OOUI
%changelog
+* Fri Jun 26 2015 Remi Collet <remi@remirepo.net> - 0.11.6-1
+- backport for remirepo
+
* Thu Jun 25 2015 Michael Cronenworth <mike@cchtml.com> - 0.11.6-1
- Initial package