File project.diff of Package python-pyinotify

--- python-pyinotify.changes.orig
+++ python-pyinotify.changes
@@ -1,9 +1,4 @@
 -------------------------------------------------------------------
-Thu Aug 24 13:50:56 UTC 2017 - jmatejek@suse.com
-
-- singlespec auto-conversion
-
--------------------------------------------------------------------
 Mon Jan  4 14:35:03 UTC 2016 - dmueller@suse.com
 
 - update to 0.9.6:
@@ -65,4 +60,3 @@ Fri Sep 15 11:42:54 CEST 2006 - poeml@su
 
 - create package (version 0.6.2)
 
-
--- python-pyinotify.spec.orig
+++ python-pyinotify.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyinotify
 #
-# Copyright (c) 2017 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,8 +16,6 @@
 #
 
 
-%define skip_python3 1
-
 Name:           python-pyinotify
 Version:        0.9.6
 Release:        0
@@ -25,17 +23,15 @@ Summary:        Python module for watchi
 License:        MIT
 Group:          Development/Libraries/Python
 Url:            http://github.com/seb-m/pyinotify
-Source:         https://files.pythonhosted.org/packages/source/p/pyinotify/pyinotify-%{version}.tar.gz
+Source:         https://pypi.python.org/packages/source/p/pyinotify/pyinotify-%{version}.tar.gz
 Source1:        pyinotify
-# BuildRequires:  %{python_module devel}
-BuildRequires:    python
-# BuildRequires:  %{python_module setuptools}
-BuildRequires:  python-setuptools
-BuildRequires:  python-rpm-macros
+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
 BuildArch:      noarch
-# Requires(post):   update-alternatives
-# Requires(postun):  update-alternatives
-%python_subpackages
+%endif
 
 %description
 pyinotify is a Python module for watching filesystems changes. By its design
@@ -57,30 +53,18 @@ notifications.
 %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_build
+python setup.py build
 
 %install
-%python_install
+python ./setup.py install --prefix=%{_prefix} --root=%{buildroot}
 install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify
-%python_clone -a %{buildroot}%{_bindir}/pyinotify
-
-%post
-%python_install_alternative pyinotify
-
-%postun
-%python_uninstall_alternative pyinotify
 
-%files %{python_files}
+%files
 %defattr(-,root,root)
-%doc ACKS COPYING README.md
-%doc old/ChangeLog old/NEWS
-%python2_only %doc python2/examples
-%python3_only %doc python3/examples
-%python_alternative %{_bindir}/pyinotify
+%doc ACKS COPYING README.md python2/examples
+%{_bindir}/pyinotify
 %{python_sitelib}/*
 
 %changelog
openSUSE Build Service is sponsored by