summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-08-25 08:07:59 +0200
committerRemi Collet <fedora@famillecollet.com>2015-08-25 08:07:59 +0200
commita42197c2dc2ad2512bae8e9d318fc051e1274f39 (patch)
tree2923d50df8f1212c09c2041e515e322eb67f0ff5
parenta6cec515221457b8ff64c1d6de66d8ccfa419745 (diff)
php-composer-installers: backport
-rw-r--r--Makefile4
-rw-r--r--php-composer-installers.spec12
2 files changed, 16 insertions, 0 deletions
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 <remi@remirepo.net> - 1.0.21-1
+- backport for #remirepo
+
* Thu Aug 20 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.0.21-1
- Initial package