diff --git a/.gitignore b/.gitignore index 702f0c7..04dfc49 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /tzlocal-1.1.2.zip /tzlocal-1.2.tar.gz /tzlocal-1.3.tar.gz +/python-tzlocal-1.5.1.tar.gz diff --git a/python-tzlocal.spec b/python-tzlocal.spec index 1f592bc..2610d55 100644 --- a/python-tzlocal.spec +++ b/python-tzlocal.spec @@ -9,22 +9,25 @@ %global sum A Python module that tries to figure out what your local timezone is Name: python-tzlocal -Version: 1.3 -Release: 4%{?dist} +Version: 1.5.1 +Release: 1%{?dist} Summary: %{sum} -License: CC0 +License: MIT URL: https://github.com/regebro/tzlocal -Source0: https://files.pythonhosted.org/packages/source/t/%{srcname}/%{srcname}-%{version}.tar.gz +# pypi/pythonhosted tarballs don't respect symlinks which are used in the test +Source0: https://github.com/regebro/tzlocal/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel +BuildRequires: python2-mock BuildRequires: python2-pytz BuildRequires: python2-setuptools %if %{with python3} BuildRequires: python3-devel +BuildRequires: python3-mock BuildRequires: python3-pytz BuildRequires: python3-setuptools %endif @@ -39,7 +42,7 @@ information, unless you know the zoneinfo name. %package -n python2-%{srcname} Summary: %{sum} -License: CC0 +License: MIT Requires: python2-pytz %{?python_provide:%python_provide python2-%{srcname}} @@ -53,7 +56,7 @@ information, unless you know the zoneinfo name. %if %{with python3} %package -n python3-%{srcname} Summary: %{sum} -License: CC0 +License: MIT Requires: python3-pytz %{?python_provide:%python_provide python3-%{srcname}} @@ -102,7 +105,7 @@ rm %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/tests.cpython* %files -n python2-%{srcname} -%doc PKG-INFO README.rst CHANGES.txt +%doc README.rst CHANGES.txt %license LICENSE.txt %{python2_sitelib}/%{srcname} %{python2_sitelib}/%{srcname}-%{version}-py2.?.egg-info @@ -110,7 +113,7 @@ rm %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/tests.cpython* %if %{with python3} %files -n python3-%{srcname} -%doc PKG-INFO README.rst CHANGES.txt +%doc README.rst CHANGES.txt %license LICENSE.txt %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-%{version}-py3.?.egg-info @@ -118,6 +121,9 @@ rm %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/tests.cpython* %changelog +* Tue Jan 09 2018 Piotr Popieluch - 1.5.1-1 +- Update to 1.5.1 + * Thu Jul 27 2017 Fedora Release Engineering - 1.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild diff --git a/sources b/sources index 7d61a7b..d191d87 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -3cb544b3975b59f91a793850a072d4a8 tzlocal-1.3.tar.gz +SHA512 (python-tzlocal-1.5.1.tar.gz) = 30dd1e3973c6fa0e0bde5a0365223506032177e96f997116edfe1fbdcff25cd735c90f205f0b95359a095749f1d1ac077903201533d460a72277891174cc1975