From 539101b2c6f1457d0e6645ed092a707d29ac7964 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 7 Oct 2015 18:27:49 +0200 Subject: php-wikimedia-ip-set: backport --- Makefile | 4 ++++ php-wikimedia-ip-set.spec | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..13af741 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../../common/Makefile + 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 - 0-0.1.20150917git +- add backport stuff for remirepo + * Thu Sep 17 2015 Michael Cronenworth - 0-0.1.20150917git - Initial package -- cgit