diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-06-17 08:36:44 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-06-17 08:36:44 +0200 |
commit | b666e636e5214c5f9b799acf6b0a596045993a01 (patch) | |
tree | cfe5962bd8dc1ab6fc2ecb9515e0e97230c20154 | |
parent | 02baf14ee830af2016fee6c5dc4e4d174590189b (diff) |
php-jdorn-sql-formatter: add backport stuff for remirepo
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | php-jdorn-sql-formatter.spec | 12 |
2 files changed, 16 insertions, 0 deletions
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 <remi@remirepo.net> - 1.2.17-2 +- add backport stuff for remirepo + * Tue Jun 16 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.2.17-2 - Fixed examples |