From 9c3f9f4d14d9d13e099c6d1b3d67ec0a2da14003 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 9 Mar 2019 12:38:18 +0100 Subject: [PATCH] Use sed instead of patch Signed-off-by: Igor Gnatenko --- hypothesis-3.12.0-offline.patch | 10 ---------- python-hypothesis.spec | 16 ++++++++-------- 2 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 hypothesis-3.12.0-offline.patch diff --git a/hypothesis-3.12.0-offline.patch b/hypothesis-3.12.0-offline.patch deleted file mode 100644 index 3da7157..0000000 --- a/hypothesis-3.12.0-offline.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- hypothesis-python-3.12.0/docs/conf.py.orig 2017-07-06 23:59:48.000000000 -0700 -+++ hypothesis-python-3.12.0/docs/conf.py 2017-07-10 22:27:58.643985059 -0700 -@@ -40,7 +40,6 @@ - 'sphinx.ext.doctest', - 'sphinx.ext.extlinks', - 'sphinx.ext.viewcode', -- 'sphinx.ext.intersphinx', - ] - - templates_path = ['_templates'] diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 2129558..80ce1af 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -9,8 +9,6 @@ Summary: Library for property based testing License: MPLv2.0 URL: https://github.com/HypothesisWorks/hypothesis-python Source0: %{url}/archive/%{srcname}-python-%{version}/%{srcname}-%{version}.tar.gz -# disable Sphinx extensions that require Internet access -Patch0: %{srcname}-3.12.0-offline.patch # Manpage BuildRequires: %{_bindir}/sphinx-build @@ -31,12 +29,12 @@ Summary: %{summary} %{?python_provide:%python_provide python2-%{srcname}} BuildRequires: python2-devel BuildRequires: python2-setuptools -BuildRequires: python2dist(attrs) +BuildRequires: python2dist(attrs) >= 16.0.0 BuildRequires: python2dist(coverage) BuildRequires: python2dist(enum34) -Suggests: python%{python2_version}dist(pytz) +Suggests: python%{python2_version}dist(pytz) >= 2014.1 Suggests: python%{python2_version}dist(numpy) >= 1.9.0 -Suggests: python%{python2_version}dist(pytest) >= 2.8.0 +Suggests: python%{python2_version}dist(pytest) >= 3.0 %description -n python2-%{srcname} %{_description} @@ -48,11 +46,11 @@ Summary: %{summary} Obsoletes: platform-python-%{srcname} < %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3dist(attrs) +BuildRequires: python3dist(attrs) >= 16.0.0 BuildRequires: python3dist(coverage) -Suggests: python%{python3_version}dist(pytz) +Suggests: python%{python3_version}dist(pytz) >= 2014.1 Suggests: python%{python3_version}dist(numpy) >= 1.9.0 -Suggests: python%{python3_version}dist(pytest) >= 2.8.0 +Suggests: python%{python3_version}dist(pytest) >= 3.0 %description -n python3-%{srcname} %{_description} @@ -60,6 +58,8 @@ Python 3 version. %prep %autosetup -n %{srcname}-%{srcname}-python-%{version}/%{srcname}-python -p1 +# disable Sphinx extensions that require Internet access +sed -i -e '/sphinx.ext.intersphinx/d' docs/conf.py %build %py2_build