summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-01-23 13:38:19 +0100
committerRemi Collet <fedora@famillecollet.com>2017-01-23 13:38:19 +0100
commit5ab9a73900e4d4371f76f94de43142730d47668a (patch)
treeba8dc276ecde5b66a5500da6ba8784c7d16dc09f
parent2999871644ffd6216333143291299e342922076a (diff)
php-phpmyadmin-sql-parser: 4.0.0, New package
-rw-r--r--php-udan11-sql-parser.spec19
1 files changed, 16 insertions, 3 deletions
diff --git a/php-udan11-sql-parser.spec b/php-udan11-sql-parser.spec
index 757f6b5..ceef65e 100644
--- a/php-udan11-sql-parser.spec
+++ b/php-udan11-sql-parser.spec
@@ -16,10 +16,15 @@
%global gh_project sql-parser
%global with_tests 0%{!?_without_tests:1}
%global psr0 SqlParser
+%if 0%{?fedora} >= 26
+%global with_cmd 0
+%else
+%global with_cmd 1
+%endif
Name: php-udan11-%{gh_project}
Version: 3.4.17
-Release: 1%{?gh_date?%{gh_date}git%{gh_short}}%{?dist}
+Release: 2%{?gh_date?%{gh_date}git%{gh_short}}%{?dist}
Summary: A validating SQL lexer and parser with a focus on MySQL dialect
Group: Development/Libraries
@@ -53,12 +58,13 @@ Requires: php-ctype
Requires: php-pcre
# For generated autoloader
Requires: php-composer(fedora/autoloader)
+%if %{with_cmd}
+Requires: php-cli
+%endif
# Rename
Obsoletes: php-dmitry-php-sql-parser < 0-0.2
Provides: php-dmitry-php-sql-parser = %{version}-%{release}
-# New packagist name
-Provides: php-phpmyadmin-sql-parser = %{version}-%{release}
# Composer
Provides: php-composer(udan11/%{gh_project}) = %{version}
@@ -97,9 +103,11 @@ rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/php
cp -pr src %{buildroot}%{_datadir}/php/%{psr0}
+%if %{with_cmd}
: Commands
install -Dpm 0755 bin/highlight-query %{buildroot}%{_bindir}/%{gh_project}-highlight-query
install -Dpm 0755 bin/lint-query %{buildroot}%{_bindir}/%{gh_project}-lint-query
+%endif
%check
@@ -145,11 +153,16 @@ rm -rf %{buildroot}
%doc composer.json
%doc README.md
%{_datadir}/php/%{psr0}
+%if %{with_cmd}
%{_bindir}/%{gh_project}-highlight-query
%{_bindir}/%{gh_project}-lint-query
+%endif
%changelog
+* Mon Jan 23 2017 Remi Collet <remi@fedoraproject.org> - 3.4.17-2
+- drop commands on F26
+
* Fri Jan 20 2017 Remi Collet <remi@fedoraproject.org> - 3.4.17-1
- update to 3.4.17
- sources from a git snapshot to retrieve test suite