summaryrefslogtreecommitdiffstats
path: root/php-wikimedia-ip-set.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-10-07 18:27:49 +0200
committerRemi Collet <fedora@famillecollet.com>2015-10-07 18:27:49 +0200
commit539101b2c6f1457d0e6645ed092a707d29ac7964 (patch)
tree6b546381669449d20f8aa5092149f954db56dc04 /php-wikimedia-ip-set.spec
parenta4e2ba710d78e41476c7b6c3efe8f3c11cc34b05 (diff)
php-wikimedia-ip-set: backportHEADmaster
Diffstat (limited to 'php-wikimedia-ip-set.spec')
-rw-r--r--php-wikimedia-ip-set.spec20
1 files changed, 20 insertions, 0 deletions
diff --git a/php-wikimedia-ip-set.spec b/php-wikimedia-ip-set.spec
index 141753d..4847cb1 100644
--- a/php-wikimedia-ip-set.spec
+++ b/php-wikimedia-ip-set.spec
@@ -1,14 +1,23 @@
+# remirepo spec file for php-wikimedia-utfnormal, from Fedora
+#
+# License: MIT
+# http://opensource.org/licenses/MIT
+#
+# Please preserve changelog entries
+#
%global git_tag_rev 3c2dd6706546fe616e6ceba02044e64dce4fc9be
Name: php-wikimedia-ip-set
Version: 0
Release: 0.1.20150917git%{?dist}
Summary: Library to match IP addresses against CIDR specifications
+Group: Development/Libraries
License: GPLv2+
URL: http://www.mediawiki.org/wiki/IPSet
Source0: http://git.wikimedia.org/zip/?r=IPSet.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
@@ -34,6 +43,8 @@ phpab --output src/autoload.php src
%install
+rm -rf %{buildroot}
+
mkdir -pm 0755 %{buildroot}%{_datadir}/php/IPSet
cp -rp src/* %{buildroot}%{_datadir}/php/IPSet
@@ -42,13 +53,22 @@ cp -rp src/* %{buildroot}%{_datadir}/php/IPSet
phpunit -v --bootstrap %{buildroot}%{_datadir}/php/IPSet/autoload.php
+%clean
+rm -rf %{buildroot}
+
+
%files
+%defattr(-,root,root,-)
+%{!?_licensedir:%global license %%doc}
%license COPYING
%doc composer.json README.md
%{_datadir}/php/IPSet
%changelog
+* Wed Oct 7 2015 Remi Collet <remi@remirepo.net> - 0-0.1.20150917git
+- add backport stuff for remirepo
+
* Thu Sep 17 2015 Michael Cronenworth <mike@cchtml.com> - 0-0.1.20150917git
- Initial package