From ebff15582c5ee84f831f77ba5d4bb48600e82458 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 21 Feb 2014 18:34:14 +0100 Subject: php-gitter: backport stuff --- Makefile | 4 ++++ php-gitter.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-gitter.spec b/php-gitter.spec index e8f96a8..88ca5c2 100644 --- a/php-gitter.spec +++ b/php-gitter.spec @@ -23,6 +23,7 @@ License: BSD 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: git @@ -62,6 +63,7 @@ thing. %install +rm -rf %{buildroot} mkdir -p %{buildroot}/%{_datadir}/php cp -rp lib/%{lib_name} %{buildroot}/%{_datadir}/php/ @@ -83,12 +85,20 @@ sed 's/colors="true"/colors="false"/' phpunit.xml.dist > phpunit.xml %{_bindir}/phpunit --include-path="./lib:./tests" -d date.timezone="UTC" +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %doc LICENSE README.md composer.json %{_datadir}/php/%{lib_name} %changelog +* Fri Feb 21 2014 Remi Collet 0.2.0-2.20131206git786e86a +- backport for remi repo + * Thu Feb 20 2014 Shawn Iwinski 0.2.0-2.20131206git786e86a - Conditional release dist -- cgit