diff --git a/librepo.spec b/librepo.spec
index 7f4e2b3..32d039c 100644
--- a/librepo.spec
+++ b/librepo.spec
@@ -4,13 +4,16 @@
 %if 0%{?rhel} != 0 && 0%{?rhel} <= 7
 # Do not build bindings for python3 for RHEL <= 7
 %bcond_with python3
+# python-flask is not in RHEL7
+%bcond_with tests
 %else
 %bcond_without python3
+%bcond_without tests
 %endif
 
 Name:           librepo
 Version:        1.7.15
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Repodata downloading library
 
 Group:          System Environment/Libraries
@@ -56,8 +59,10 @@ Summary:        Python bindings for the librepo library
 Group:          Development/Languages
 BuildRequires:  pygpgme
 BuildRequires:  python2-devel
+%if %{with tests}
 BuildRequires:  python-flask
 BuildRequires:  python-nose
+%endif
 BuildRequires:  python-sphinx
 BuildRequires:  pyxattr
 Requires:       %{name}%{?_isa} = %{version}-%{release}
@@ -103,6 +108,7 @@ popd
 %endif
 
 %check
+%if %{with tests}
 make ARGS="-V" test
 
 %if %{with python3}
@@ -110,6 +116,7 @@ pushd py3
 make ARGS="-V" test
 popd
 %endif
+%endif
 
 %install
 make install DESTDIR=$RPM_BUILD_ROOT
@@ -141,6 +148,10 @@ popd
 %endif
 
 %changelog
+* Tue Jun 12 2015 Colin Walters <walters@redhat.com> - 1.7.15-2
+- Disable tests and drop python-flask build dependency on RHEL7, as
+  it is not in the core
+
 * Tue Apr   14 2015 Tomas Mlcoch <tmlcoch at redhat.com> - 1.7.15-1
 - Do not inlude header in the body output (RhBug: 1207685)
 - metalink: Proper error handling