From b666e636e5214c5f9b799acf6b0a596045993a01 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 17 Jun 2015 08:36:44 +0200 Subject: php-jdorn-sql-formatter: add backport stuff for remirepo --- Makefile | 4 ++++ php-jdorn-sql-formatter.spec | 12 ++++++++++++ 2 files changed, 16 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-jdorn-sql-formatter.spec b/php-jdorn-sql-formatter.spec index d0ed2fa..e49707a 100644 --- a/php-jdorn-sql-formatter.spec +++ b/php-jdorn-sql-formatter.spec @@ -1,3 +1,4 @@ +# remirepo spec file for php-jdorn-sql-formatter, from Fedora: # # RPM spec file for php-jdorn-sql-formatter # @@ -37,6 +38,7 @@ URL: https://github.com/%{github_owner}/%{github_name} Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Tests %if %{with_tests} ## composer.json @@ -103,6 +105,8 @@ sed "s#require.*SqlFormatter.*#require_once '%{libdir}/autoload.php';#" \ %install +rm -rf %{buildroot} + mkdir -p %{buildroot}%{libdir} cp -pr lib/* %{buildroot}%{libdir}/ @@ -115,7 +119,12 @@ cp -pr lib/* %{buildroot}%{libdir}/ %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE.txt %doc *.md @@ -125,6 +134,9 @@ cp -pr lib/* %{buildroot}%{libdir}/ %changelog +* Wed Jun 17 2015 Remi Collet - 1.2.17-2 +- add backport stuff for remirepo + * Tue Jun 16 2015 Shawn Iwinski - 1.2.17-2 - Fixed examples -- cgit