From 7b13d8319bc338d43369b0c8210625feb569eb35 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 21 Feb 2014 18:40:40 +0100 Subject: php-goutte: backport stuff --- Makefile | 4 ++++ php-goutte.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-goutte.spec b/php-goutte.spec index ae3df76..ed40bd4 100644 --- a/php-goutte.spec +++ b/php-goutte.spec @@ -22,6 +22,7 @@ License: MIT URL: https://github.com/%{github_owner}/%{github_name} Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch # For tests BuildRequires: php(language) >= %{php_min_ver} @@ -73,6 +74,7 @@ from the HTML/XML responses. %install +rm -rf %{buildroot} mkdir -pm 0755 %{buildroot}/%{_datadir}/php/%{github_name} cp -p %{github_name}/Client.php %{buildroot}/%{_datadir}/php/%{github_name}/ @@ -94,12 +96,20 @@ sed 's/colors="true"/colors="false"/' phpunit.xml.dist > phpunit.xml %{_bindir}/phpunit -d date.timezone="UTC" +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %doc LICENSE README.rst composer.json %{_datadir}/php/%{github_name} %changelog +* Fri Feb 21 2014 Remi Collet 1.0.5-1 +- backport for remi repo + * Wed Feb 19 2014 Shawn Iwinski 1.0.5-1 - Updated to 1.0.5 - Conditional release dist -- cgit