From a4e2ba710d78e41476c7b6c3efe8f3c11cc34b05 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 7 Oct 2015 18:22:58 +0200 Subject: php-wikimedia-ip-set: import from Fedora --- php-wikimedia-ip-set.spec | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 php-wikimedia-ip-set.spec diff --git a/php-wikimedia-ip-set.spec b/php-wikimedia-ip-set.spec new file mode 100644 index 0000000..141753d --- /dev/null +++ b/php-wikimedia-ip-set.spec @@ -0,0 +1,54 @@ +%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 + +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 + +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 +mkdir -pm 0755 %{buildroot}%{_datadir}/php/IPSet +cp -rp src/* %{buildroot}%{_datadir}/php/IPSet + + +%check +phpunit -v --bootstrap %{buildroot}%{_datadir}/php/IPSet/autoload.php + + +%files +%license COPYING +%doc composer.json README.md +%{_datadir}/php/IPSet + + +%changelog +* Thu Sep 17 2015 Michael Cronenworth - 0-0.1.20150917git +- Initial package + -- cgit