diff --git a/python-pytz.changes b/python-pytz.changes index b1c08d2..6f87075 100644 --- a/python-pytz.changes +++ b/python-pytz.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 20 19:55:27 UTC 2017 - dimstar@opensuse.org + +- Apply pytz-2016.10-fix-tests-with-2017a.patch for Tumbleweed + buildin. + ------------------------------------------------------------------- Thu Mar 16 02:58:11 UTC 2017 - toddrme2178@gmail.com diff --git a/python-pytz.spec b/python-pytz.spec index 1d81f64..d5918b4 100644 --- a/python-pytz.spec +++ b/python-pytz.spec @@ -32,9 +32,9 @@ Patch0: fix-tests.patch # PATCH-FEATURE-OPENSUSE -- Use system tz database (Olson database) Patch1: system_zoneinfo.patch Patch2: pytz-2016.10-fix-tests-with-2017a.patch +BuildRequires: %{python_module devel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} # Test requirements BuildRequires: %{python_module nose} BuildRequires: timezone @@ -62,8 +62,8 @@ Amost all of the Olson timezones are supported. %patch0 -p1 # Use system tz database %patch1 -p1 -# timezone 2017 a is currently only available in Leap 42.1 -%if 0%{?sle_version} == 120100 && 0%{?is_opensuse} +# timezone 2017 a is currently only available in Leap 42.1 and Tumbleweed +%if 0%{?sle_version} == 120100 && 0%{?is_opensuse} || 0%{?suse_version} > 1320 %patch2 -p2 %endif