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