[packages/thefuck] test deps
glen
glen at pld-linux.org
Tue Mar 1 09:17:34 CET 2016
commit 15d8918cfb8e62b23695493594babfe0352c5a0f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Mar 1 10:17:22 2016 +0200
test deps
thefuck.spec | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/thefuck.spec b/thefuck.spec
index 0f9c3de..6a76454 100644
--- a/thefuck.spec
+++ b/thefuck.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with tests # do not perform "make test"
+
Summary: App that corrects your previous console command
Name: thefuck
Version: 3.2
@@ -7,18 +11,20 @@ Group: Applications/Shells
Source0: https://github.com/nvbn/thefuck/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: b2012c223a0ae15cecaa384aa8bbae32
URL: https://github.com/nvbn/thefuck
+BuildRequires: python3-devel >= 1:3.4
+BuildRequires: python3-pip
+BuildRequires: python3-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: sed >= 4.0
+%if %{with tests}
BuildRequires: python3-colorama
BuildRequires: python3-decorator
-BuildRequires: python3-devel
BuildRequires: python3-mock
-BuildRequires: python3-pip
BuildRequires: python3-psutil
BuildRequires: python3-pytest
-BuildRequires: python3-setuptools
BuildRequires: python3-six
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-BuildRequires: sed >= 4.0
+%endif
Requires: python3
Requires: python3-colorama
Requires: python3-psutil
@@ -37,7 +43,7 @@ See README.md how to setup for your shell.
sed -i -e '/^#!\//, 1d' *.py
%build
-%py3_build
+%py3_build %{?with_tests:test}
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/thefuck.git/commitdiff/15d8918cfb8e62b23695493594babfe0352c5a0f
More information about the pld-cvs-commit
mailing list