From a42197c2dc2ad2512bae8e9d318fc051e1274f39 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 25 Aug 2015 08:07:59 +0200 Subject: php-composer-installers: backport --- Makefile | 4 ++++ php-composer-installers.spec | 12 ++++++++++++ 2 files changed, 16 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-composer-installers.spec b/php-composer-installers.spec index 246c613..9eb2bb4 100644 --- a/php-composer-installers.spec +++ b/php-composer-installers.spec @@ -1,3 +1,4 @@ +# remirepo spec file for php-composer-installers, from: # # Fedora spec file for php-composer-installers # @@ -37,6 +38,7 @@ Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{githu Patch0: %{name}-pr226.patch BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Tests %if %{with_tests} ## composer.json @@ -113,6 +115,8 @@ AUTOLOAD %install +rm -rf %{buildroot} + mkdir -p %{buildroot}%{phpdir} cp -rp src/Composer %{buildroot}%{phpdir}/ @@ -133,7 +137,12 @@ BOOTSTRAP %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc *.md @@ -142,5 +151,8 @@ BOOTSTRAP %changelog +* Tue Aug 25 2015 Remi Collet - 1.0.21-1 +- backport for #remirepo + * Thu Aug 20 2015 Shawn Iwinski - 1.0.21-1 - Initial package -- cgit