Hello community,

here is the log from the commit of package python-vcs for openSUSE:Factory 
checked in at 2018-06-08 23:17:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-vcs (Old)
 and      /work/SRC/openSUSE:Factory/.python-vcs.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-vcs"

Fri Jun  8 23:17:08 2018 rev:8 rq:614602 version:0.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-vcs/python-vcs.changes    2015-08-01 
11:35:10.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-vcs.new/python-vcs.changes       
2018-06-08 23:17:20.999980152 +0200
@@ -1,0 +2,10 @@
+Wed Jun  6 15:51:56 UTC 2018 - [email protected]
+
+- Clean SPEC file
+
+-------------------------------------------------------------------
+Thu Aug 24 13:56:52 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -44,0 +55 @@
+

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

Other differences:
------------------
++++++ python-vcs.spec ++++++
--- /var/tmp/diff_new_pack.ogVA6O/_old  2018-06-08 23:17:21.775952123 +0200
+++ /var/tmp/diff_new_pack.ogVA6O/_new  2018-06-08 23:17:21.779951979 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-vcs
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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,19 +16,23 @@
 #
 
 
+#
+%define skip_python3 1
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-vcs
 Version:        0.4.0
 Release:        0
-Url:            https://github.com/codeinn/vcs
 Summary:        Various Version Control System management abstraction layer 
for Python
 License:        MIT
 Group:          Development/Languages/Python
-Source:         
http://pypi.python.org/packages/source/v/vcs/vcs-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-Requires:       python-dulwich
-BuildRequires:  python-Sphinx
-BuildRequires:  python-setuptools
+URL:            https://github.com/codeinn/vcs
+Source:         
https://files.pythonhosted.org/packages/source/v/vcs/vcs-%{version}.tar.gz
+BuildRequires:  %{python_module Sphinx}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 # Test requirements:
 #BuildRequires:  python-mock
 #BuildRequires:  python-Pygments
@@ -39,11 +43,9 @@
 #BuildRequires:  git-core
 Requires:       git-core
 Requires:       mercurial
-%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
+Requires:       python-dulwich
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 Vcs is an abstraction layer over various version control systems. It is
@@ -53,19 +55,19 @@
 %setup -q -n vcs-%{version}
 
 %build
-python setup.py build
+%python_build
 cd docs && make html && rm build/html/.buildinfo
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-rm -rf %{buildroot}%{python_sitelib}/vcs/.ropeproject
+%python_install
+%python_expand rm -rf %{buildroot}%{$python_sitelib}/vcs/.ropeproject
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 # Tests require network access, thus disabled:
 #%%check
 #nosetests
 
-%files
-%defattr(-,root,root,-)
+%files %{python_files}
 %doc README.rst docs/build/html
 %{_bindir}/vcs
 %{python_sitelib}/*


Reply via email to