summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-08-11 14:07:43 +0200
committerRemi Collet <remi@remirepo.net>2020-08-11 14:07:43 +0200
commit92841564ab60928df5fce176396f05c8f06cf689 (patch)
tree11caf06d5a0f171f8ee8843bac8d352ba5d0a192
parentb249336f1ed9bddc99b4b5581b589db7f58a904c (diff)
minot
-rw-r--r--php-twig3.spec7
1 files changed, 4 insertions, 3 deletions
diff --git a/php-twig3.spec b/php-twig3.spec
index 8e8af52..8bcf75c 100644
--- a/php-twig3.spec
+++ b/php-twig3.spec
@@ -10,7 +10,8 @@
#
# Please preserve changelog entries
#
-%global with_tests 0%{!?_without_tests:1}
+%bcond_without tests
+
%global github_owner twigphp
%global github_name Twig
%global github_commit 9b76b1535483cdf4edf01bb787b0217b62bd68a5
@@ -38,7 +39,7 @@ Source1: makesrc.sh
BUildArch: noarch
## Autoloader
BuildRequires: php-fedora-autoloader-devel
-%if %{with_tests}
+%if %{with tests}
# For tests
BuildRequires: php(language) >= %{php_min_ver}
# remirepo:1
@@ -122,7 +123,7 @@ cp -rp src %{buildroot}%{phpdir}/Twig%{major}
%{_bindir}/php -r 'require_once "%{buildroot}%{phpdir}/Twig%{major}/autoload.php";
exit(version_compare("%{version}", Twig\Environment::VERSION, "=") ? 0 : 1);'
-%if %{with_tests}
+%if %{with tests}
mkdir vendor
phpab --output vendor/autoload.php tests