diff --git a/python-pytz.changes b/python-pytz.changes index 3db1599..7ccf395 100644 --- a/python-pytz.changes +++ b/python-pytz.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 13 19:31:04 UTC 2017 - jmatejek@suse.com + +- singlespec tweaks + ------------------------------------------------------------------- Mon Mar 13 18:08:26 UTC 2017 - astieger@suse.com diff --git a/python-pytz.spec b/python-pytz.spec index 3d0f100..da8c3ce 100644 --- a/python-pytz.spec +++ b/python-pytz.spec @@ -16,7 +16,8 @@ # -%{?!python_module:%define python_module() python-%1 python3-%1} +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-pytz Version: 2016.10 Release: 0 @@ -39,14 +40,12 @@ BuildRequires: python-rpm-macros # Tests will use this package BuildRequires: timezone BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif -Provides: python-tz = 2014b -Obsoletes: python-tz < 2014b +%ifpython2 +Provides: %{oldpython}-tz = 2014b +Obsoletes: %{oldpython}-tz < 2014b +%endif %python_subpackages @@ -83,7 +82,7 @@ rm -fr %{buildroot}%{python_sitelib}/pytz/zoneinfo %{python_expand %fdupes %{buildroot}%{$python_sitelib}} %check -%{python_expand nosetests-%$python_bin_suffix} +%python_exec %{_bindir}/nosetests %files %{python_files} %defattr(-,root,root,-)