diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-10-09 09:30:59 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-10-09 09:30:59 +0200 |
commit | 201d666a87d36e20fab6dc985a9eb98172b69ffa (patch) | |
tree | 33e55f99b432a177b41eb231d2aee45970baf109 | |
parent | 88f59cd4de848cf979f78fddb9d3694bb87d4962 (diff) |
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | php-wikimedia-assert.spec | 20 |
2 files changed, 24 insertions, 0 deletions
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-assert.spec b/php-wikimedia-assert.spec index c917238..a2ad007 100644 --- a/php-wikimedia-assert.spec +++ b/php-wikimedia-assert.spec @@ -1,12 +1,21 @@ +# remirepo spec file for php-wikimedia-utfnormal, from Fedora +# +# License: MIT +# http://opensource.org/licenses/MIT +# +# Please preserve changelog entries +# Name: php-wikimedia-assert Version: 0.2.2 Release: 1%{?dist} Summary: An alternative to PHP's assert +Group: Development/Libraries License: MIT URL: https://github.com/wmde/Assert Source0: https://github.com/wmde/Assert/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +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/Wikimedia/Assert cp -rp src/* %{buildroot}%{_datadir}/php/Wikimedia/Assert @@ -42,13 +53,22 @@ cp -rp src/* %{buildroot}%{_datadir}/php/Wikimedia/Assert phpunit -v --bootstrap %{buildroot}%{_datadir}/php/Wikimedia/Assert/autoload.php +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) +%{!?_licensedir:%global license %%doc} %license COPYING %doc composer.json README.md %{_datadir}/php/Wikimedia %changelog +* Fri Oct 9 2015 Remi Collet <remi@remirepo.net> - 0.2.2-1 +- add backport stuff for remirepo + * Mon Oct 05 2015 Michael Cronenworth <mike@cchtml.com> - 0.2.2-1 - Initial package |