From 98b3de94e1d50a2149b9032784b59bc24bd69c9a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 28 Dec 2014 08:38:10 +0100 Subject: php-bantu-ini-get-wrapper: backport stuff --- Makefile | 4 ++++ php-bantu-ini-get-wrapper.spec | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/php-bantu-ini-get-wrapper.spec b/php-bantu-ini-get-wrapper.spec index 26ab87c..dfdb75b 100644 --- a/php-bantu-ini-get-wrapper.spec +++ b/php-bantu-ini-get-wrapper.spec @@ -22,6 +22,7 @@ URL: https://github.com/%{github_owner}/%{github_name} # https://fedoraproject.org/wiki/Packaging:SourceURL#Github Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{github_name}-%{github_commit}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch # For tests BuildRequires: php(language) >= %{php_min_ver} @@ -45,6 +46,7 @@ Convenience wrapper around ini_get(). %install +rm -rf %{buildroot} # use PSR-0 layout relative to _datadir/php mkdir -p %{buildroot}%{_datadir}/php/%{psr4_prefix} cp -pr src/* %{buildroot}%{_datadir}/php/%{psr4_prefix} @@ -58,7 +60,12 @@ cp -pr src/* %{buildroot}%{_datadir}/php/%{psr4_prefix} %{_bindir}/phpunit --bootstrap bootstrap.php +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc *.md composer.json @@ -66,5 +73,8 @@ cp -pr src/* %{buildroot}%{_datadir}/php/%{psr4_prefix} %changelog +* Sun Dec 28 2014 Remi Collet - 1.0.1-1 +- add backport stuff for remi repo + * Fri Dec 12 2014 Adam Williamson - 1.0.1-1 - initial package -- cgit