Hello community,

here is the log from the commit of package python-dogpile.cache for 
openSUSE:Factory checked in at 2017-04-28 09:12:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dogpile.cache (Old)
 and      /work/SRC/openSUSE:Factory/.python-dogpile.cache.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dogpile.cache"

Fri Apr 28 09:12:16 2017 rev:12 rq:484806 version:0.6.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-dogpile.cache/python-dogpile.cache.changes    
    2016-09-28 11:30:22.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-dogpile.cache.new/python-dogpile.cache.changes
   2017-04-28 09:12:26.185417164 +0200
@@ -1,0 +2,5 @@
+Wed Mar  1 14:02:39 UTC 2017 - [email protected]
+
+- Converted to single-spec
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-dogpile.cache.spec ++++++
--- /var/tmp/diff_new_pack.zUSlfE/_old  2017-04-28 09:12:27.009300986 +0200
+++ /var/tmp/diff_new_pack.zUSlfE/_new  2017-04-28 09:12:27.013300422 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-dogpile.cache
 #
-# Copyright (c) 2016 SUSE LINUX 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
@@ -16,6 +16,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-dogpile.cache
 Version:        0.6.2
 Release:        0
@@ -24,19 +25,21 @@
 Group:          Development/Languages/Python
 Url:            http://bitbucket.org/zzzeek/dogpile.cache
 Source:         
https://pypi.io/packages/source/d/dogpile.cache/dogpile.cache-%{version}.tar.gz
+BuildRequires:  %{python_module Mako}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module pytest-cov}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  python-rpm-macros
 # NOTE(toabctl): upstream merged dogpile.core into dogpile.cache
 # see https://gerrit.sqlalchemy.org/#/c/89/
 Provides:       python-dogpile.core = 0.4.1
 Obsoletes:      python-dogpile.core <= 0.4.1
 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
+%python_subpackages
 
 %description
 A caching API built around the concept of a "dogpile lock", which allows
@@ -47,15 +50,19 @@
 %setup -q -n dogpile.cache-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-%fdupes %{buildroot}/%{_prefix}
+%python_install
+%python_expand %fdupes -s %{buildroot}/%{_prefix}
 
-%files
+%check
+%python_exec setup.py test
+
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc LICENSE README.rst
-%{python_sitelib}/*
+%{python_sitelib}/dogpile
+%{python_sitelib}/dogpile.cache-%{version}-py%{python_version}.egg-info
 
 %changelog


Reply via email to