siwinski pushed to php-pimple1 (f21). "Wrap tests' build requires in "%if %{with_tests}""

notifications at fedoraproject.org notifications at fedoraproject.org
Fri May 22 15:10:13 UTC 2015


From 490f35063ac5c1047bd94c7dd96bb4ea3197a211 Mon Sep 17 00:00:00 2001
From: Shawn Iwinski <siwinski at redhat.com>
Date: Fri, 22 May 2015 10:16:21 -0400
Subject: Wrap tests' build requires in "%if %{with_tests}"


diff --git a/php-pimple1.spec b/php-pimple1.spec
index d458262..1676a71 100644
--- a/php-pimple1.spec
+++ b/php-pimple1.spec
@@ -27,7 +27,7 @@
 
 Name:          php-%{composer_project}1
 Version:       %{github_version}
-Release:       3%{?dist}
+Release:       4%{?dist}
 Summary:       A simple dependency injection container for PHP
 
 Group:         Development/Libraries
@@ -36,14 +36,16 @@ URL:           https://github.com/%{github_owner}/%{github_name}/tree/1.1
 Source0:       https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
 
 BuildArch:     noarch
-# For autoload generation
+# Autoload generation
 BuildRequires: %{_bindir}/phpab
-# For tests
+# Tests
+%if %{with_tests}
 BuildRequires: %{_bindir}/phpunit
 ## composer.json
 BuildRequires: php(language) >= %{php_min_ver}
 ## phpcompatinfo (computed from version 1.1.1)
 BuildRequires: php-spl
+%endif
 
 Requires:      php(language) >= %{php_min_ver}
 # phpcompatinfo (computed from version 1.1.1)
@@ -97,6 +99,9 @@ BOOTSTRAP
 
 
 %changelog
+* Fri May 22 2015 Shawn Iwinski <shawn.iwinski at gmail.com> - 1.1.1-4
+- Wrap tests' build requires in "%%if %%{with_tests}"
+
 * Wed May 20 2015 Shawn Iwinski <shawn.iwinski at gmail.com> - 1.1.1-3
 - No rename and no conflict because the lib directory was changed from
   "%%{phpdir}/Pimple" to "%%{phpdir}/Pimple1".  This is possible because
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/php-pimple1.git/commit/?h=f21&id=490f35063ac5c1047bd94c7dd96bb4ea3197a211


More information about the scm-commits mailing list