summaryrefslogtreecommitdiffstats
path: root/php-wikimedia-ip-set.spec
blob: 4847cb151015219f1d50f2cee52c202819eb267e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# 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
BuildRequires:	php-theseer-autoload

Requires:	php(language) >= 5.3.0
Requires:	php-ctype
Requires:	php-spl

Provides:	php-composer(wikimedia/ip-set) = %{version}


%description
IPSet is a PHP library to match IPs against CIDR specs.


%prep
%setup -qc %{name}-%{version}


%build
phpab --output src/autoload.php src


%install
rm -rf %{buildroot}

mkdir -pm 0755 %{buildroot}%{_datadir}/php/IPSet
cp -rp src/* %{buildroot}%{_datadir}/php/IPSet


%check
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