From 5ab9a73900e4d4371f76f94de43142730d47668a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 23 Jan 2017 13:38:19 +0100 Subject: php-phpmyadmin-sql-parser: 4.0.0, New package --- php-udan11-sql-parser.spec | 19 ++++++++++++++++--- 1 file 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 - 3.4.17-2 +- drop commands on F26 + * Fri Jan 20 2017 Remi Collet - 3.4.17-1 - update to 3.4.17 - sources from a git snapshot to retrieve test suite -- cgit