Use sed instead of patch

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent d7fb54087b
commit 9c3f9f4d14
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -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']

@ -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

Loading…
Cancel
Save