From b35782e5dce59091901ccf7339196934a202f6ca Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Jan 23 2017 12:39:08 +0000 Subject: drop commands on F26 --- diff --git a/php-udan11-sql-parser.spec b/php-udan11-sql-parser.spec index 8929c4d..3736980 100644 --- a/php-udan11-sql-parser.spec +++ b/php-udan11-sql-parser.spec @@ -6,6 +6,9 @@ # # Please, preserve the changelog entries # + +##TODO next version will have tests back + %global gh_commit 2b59d9e19432a385d952bcc94b3ffe6b11f22cbf %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner phpmyadmin @@ -13,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 @@ -49,12 +57,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} @@ -92,9 +101,11 @@ AUTOLOAD 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 @@ -120,11 +131,16 @@ fi %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