From 11aa3d4ea138ba34da655f8c85aa5ee4843d2c8d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 31 May 2015 07:50:20 +0200 Subject: php-masterminds-html5: backport stuff --- Makefile | 4 ++++ php-masterminds-html5.spec | 11 +++++++++++ 2 files changed, 15 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-masterminds-html5.spec b/php-masterminds-html5.spec index e05f727..1cea582 100644 --- a/php-masterminds-html5.spec +++ b/php-masterminds-html5.spec @@ -1,3 +1,4 @@ +# remirepo spec file for php-masterminds-html5, from Fedora: # # RPM spec file for php-masterminds-html5 # @@ -36,6 +37,7 @@ URL: http://masterminds.github.io/html5-php Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root # Autoload generation BuildRequires: %{_bindir}/phpab # Tests @@ -100,6 +102,7 @@ mv src/HTML5/Serializer/*.md docs/Serializer/ %install +rm -rf %{buildroot} mkdir -p %{buildroot}%{phpdir}/Masterminds cp -pr src/* %{buildroot}%{phpdir}/Masterminds/ # Project-level autoloader for consistency with other pkgs @@ -127,7 +130,12 @@ AUTOLOAD %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE.txt %doc docs/* @@ -135,5 +143,8 @@ AUTOLOAD %changelog +* Sun May 31 2015 Remi Collet - 2.1.1-1 +- backport in remi repository + * Fri May 22 2015 Shawn Iwinski - 2.1.1-1 - Initial package -- cgit