summaryrefslogtreecommitdiffstats
path: root/php-jdorn-sql-formatter.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-17 08:36:44 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-17 08:36:44 +0200
commitb666e636e5214c5f9b799acf6b0a596045993a01 (patch)
treecfe5962bd8dc1ab6fc2ecb9515e0e97230c20154 /php-jdorn-sql-formatter.spec
parent02baf14ee830af2016fee6c5dc4e4d174590189b (diff)
php-jdorn-sql-formatter: add backport stuff for remirepo
Diffstat (limited to 'php-jdorn-sql-formatter.spec')
-rw-r--r--php-jdorn-sql-formatter.spec12
1 files changed, 12 insertions, 0 deletions
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