Hello community, here is the log from the commit of package python-cached-property for openSUSE:Factory checked in at 2017-08-28 15:12:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cached-property (Old) and /work/SRC/openSUSE:Factory/.python-cached-property.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-cached-property" Mon Aug 28 15:12:22 2017 rev:3 rq:518030 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cached-property/python-cached-property.changes 2016-05-02 10:44:41.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-cached-property.new/python-cached-property.changes 2017-08-28 15:13:58.555613473 +0200 @@ -1,0 +2,5 @@ +Sat Aug 19 08:27:48 UTC 2017 - sebix+novell.com@sebix.at + +- singlespec version + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cached-property.spec ++++++ --- /var/tmp/diff_new_pack.42NOO5/_old 2017-08-28 15:14:01.127252159 +0200 +++ /var/tmp/diff_new_pack.42NOO5/_new 2017-08-28 15:14:01.147249350 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-cached-property # -# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -13,43 +13,51 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-cached-property Version: 1.3.0 Release: 0 -License: BSD-3-Clause Summary: A decorator for caching properties in classes -Url: https://github.com/pydanny/cached-property +License: BSD-3-Clause Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/c/cached-property/cached-property-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -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 +Url: https://github.com/pydanny/cached-property +Source: https://files.pythonhosted.org/packages/source/c/cached-property/cached-property-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module freezegun} %endif +BuildArch: noarch + +%python_subpackages %description A decorator for caching properties in classes.It makes caching of time or computational expensive properties quick and easy and it works in Python 2 and 3. -more at https://github.com/pydanny/cached-property/blob/master/README.rst - %prep %setup -q -n cached-property-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with test} +%check +%python_exec setup.py test +%endif -%files -%defattr(-,root,root,-) +%files %{python_files} %doc AUTHORS.rst LICENSE README.rst %{python_sitelib}/*