From 8caacdbddcbce2eb507b999b7336d6d4d65dd9295849c4c33923413b6c6b0c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 15 Mar 2019 12:06:47 +0000 Subject: [PATCH] - Add patch ipaddress.patch to fix its runtime detection OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Faker?expand=0&rev=21 --- ipaddress.patch | 13 +++++++++++++ python-Faker.changes | 5 +++++ python-Faker.spec | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 ipaddress.patch diff --git a/ipaddress.patch b/ipaddress.patch new file mode 100644 index 0000000..51858fd --- /dev/null +++ b/ipaddress.patch @@ -0,0 +1,13 @@ +Index: Faker-1.0.4/setup.py +=================================================================== +--- Faker-1.0.4.orig/setup.py ++++ Faker-1.0.4/setup.py +@@ -78,7 +78,7 @@ setup( + "freezegun==0.3.11", + ], + extras_require={ +- ':python_version=="2.7"': [ ++ ':python_version<"3.3"': [ + 'ipaddress', + ], + }, diff --git a/python-Faker.changes b/python-Faker.changes index a07ebb7..78ee0c5 100644 --- a/python-Faker.changes +++ b/python-Faker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 15 12:02:12 UTC 2019 - Tomáš Chvátal + +- Add patch ipaddress.patch to fix its runtime detection + ------------------------------------------------------------------- Thu Mar 14 14:26:07 UTC 2019 - Tomáš Chvátal diff --git a/python-Faker.spec b/python-Faker.spec index 11fb002..c60cf18 100644 --- a/python-Faker.spec +++ b/python-Faker.spec @@ -26,6 +26,7 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/joke2k/faker Source: https://files.pythonhosted.org/packages/source/F/Faker/Faker-%{version}.tar.gz +Patch0: ipaddress.patch BuildRequires: %{python_module UkPostcodeParser >= 1.1.1} BuildRequires: %{python_module email_validator >= 1.0.2} BuildRequires: %{python_module freezegun >= 0.3.11} @@ -65,6 +66,7 @@ testing, and data anonymization from production services. %prep %setup -q -n Faker-%{version} +%patch0 -p1 # Remove pre-existing bytecode files in the sdist find . -name '*.py[co]' -delete # do not hardcode versions