From a3775dd33dd4a638c1cfc15054a3bcb1fc448661 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 23 May 2015 08:42:13 +0200 Subject: php-pimple1: backport stuff --- Makefile | 4 ++++ php-pimple1.spec | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) 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-pimple1.spec b/php-pimple1.spec index 1676a71..ab2bb57 100644 --- a/php-pimple1.spec +++ b/php-pimple1.spec @@ -1,5 +1,6 @@ +# remirepo spec file for php-pimple1, from: # -# RPM spec file for php-pimple1 +# Fedora spec file for php-pimple1 # # Copyright (c) 2015 Shawn Iwinski # @@ -35,6 +36,7 @@ License: MIT URL: https://github.com/%{github_owner}/%{github_name}/tree/1.1 Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch # Autoload generation BuildRequires: %{_bindir}/phpab @@ -69,6 +71,7 @@ just one file and one class. %install +rm -rf %{buildroot} mkdir -p %{buildroot}%{phpdir}/Pimple1 cp -pr lib/* %{buildroot}%{phpdir}/Pimple1/ @@ -90,7 +93,12 @@ BOOTSTRAP %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc README.rst @@ -99,6 +107,9 @@ BOOTSTRAP %changelog +* Sat May 23 2015 Remi Collet - 1.1.1-4 +- add backport stuff for remi repo. + * Fri May 22 2015 Shawn Iwinski - 1.1.1-4 - Wrap tests' build requires in "%%if %%{with_tests}" -- cgit