Hello community,

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

Package is "python-pyinotify"

Mon Sep  4 12:32:53 2017 rev:15 rq:519905 version:0.9.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyinotify/python-pyinotify.changes        
2016-01-05 09:41:57.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-pyinotify.new/python-pyinotify.changes   
2017-09-04 12:32:57.223933074 +0200
@@ -1,0 +2,5 @@
+Thu Aug 24 13:50:56 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -61,0 +67 @@
+

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

Other differences:
------------------
++++++ python-pyinotify.spec ++++++
--- /var/tmp/diff_new_pack.TE6klB/_old  2017-09-04 12:32:58.139804301 +0200
+++ /var/tmp/diff_new_pack.TE6klB/_new  2017-09-04 12:32:58.147803176 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyinotify
 #
-# 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-pyinotify
 Version:        0.9.6
 Release:        0
@@ -23,15 +24,15 @@
 License:        MIT
 Group:          Development/Libraries/Python
 Url:            http://github.com/seb-m/pyinotify
-Source:         
https://pypi.python.org/packages/source/p/pyinotify/pyinotify-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/p/pyinotify/pyinotify-%{version}.tar.gz
 Source1:        pyinotify
-BuildRequires:  python-devel
-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
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
-%endif
+Requires(post):   update-alternatives
+Requires(postun):  update-alternatives
+%python_subpackages
 
 %description
 pyinotify is a Python module for watching filesystems changes. By its design
@@ -53,18 +54,30 @@
 %setup -q -n pyinotify-%{version}
 # remove unwanted shebang
 sed -i '/^#!/ d' python2/pyinotify.py
+sed -i "s|#!/usr/bin/env python|#!%__python2|" python2/examples/*py
+sed -i "s|#!/usr/bin/env python|#!%__python3|" python3/examples/*py
 
 %build
-python setup.py build
+%python_build
 
 %install
-python ./setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
 install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify
+%python_clone -a %{buildroot}%{_bindir}/pyinotify
 
-%files
+%post
+%python_install_alternative pyinotify
+
+%postun
+%python_uninstall_alternative pyinotify
+
+%files %{python_files}
 %defattr(-,root,root)
-%doc ACKS COPYING README.md python2/examples
-%{_bindir}/pyinotify
+%doc ACKS COPYING README.md
+%doc old/ChangeLog old/NEWS
+%python2_only %doc python2/examples
+%python3_only %doc python3/examples
+%python_alternative %{_bindir}/pyinotify
 %{python_sitelib}/*
 
 %changelog


Reply via email to