From fd94a4cb14903620402a28d7ebdbee1a1b30569f Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Nov 29 2019 10:41:53 +0000 Subject: Subpackages python2-inotify, python2-inotify-examples have been removed --- diff --git a/python-inotify.spec b/python-inotify.spec index 25f3e03..7ad045b 100644 --- a/python-inotify.spec +++ b/python-inotify.spec @@ -3,13 +3,12 @@ Summary: Monitor filesystem events with Python under Linux Name: python-inotify Version: 0.9.6 -Release: 18%{?dist} +Release: 19%{?dist} License: MIT URL: https://github.com/seb-m/pyinotify Source0: http://seb.dbzteam.org/pub/pyinotify/releases/pyinotify-%{version}.tar.gz Patch01: pyinotify-0.9.6-epoint.patch BuildRequires: gmp-devel -BuildRequires: python2-devel BuildRequires: python3-devel BuildArch: noarch %global _description \ @@ -19,57 +18,21 @@ is an event-driven notifier, where notifications are exported from \ kernel space to user space. %description %_description -%package -n python2-inotify -Summary: Monitor filesystem events with Python under Linux -%{?python_provide:%python_provide python2-inotify} -%description -n python2-inotify %_description - -%package -n python2-inotify-examples -Summary: Examples for Python inotify module -Requires: python2-inotify = %{version}-%{release} -%{?python_provide:%python_provide python2-inotify-examples} -%description -n python2-inotify-examples -This package includes some examples usage of the Python inotify module. - %package -n python3-inotify -Summary: Monitor filesystem events with Python under Linux +Summary: %{summary} %{?python_provide:%python_provide python3-inotify} %description -n python3-inotify %_description %prep %setup -q -n %{oname}-%{version} %patch01 -p1 -sed -i '1c#! %{__python2}' python2/pyinotify.py python2/examples/autocompile.py sed -i '1c#! %{__python3}' python3/pyinotify.py -rm -rf %{py3dir} -cp -a . %{py3dir} %build -%py2_build -pushd %{py3dir} %py3_build -popd %install -%py2_install - -pushd %{py3dir} -rm %{buildroot}%{_bindir}/%{oname} %py3_install -popd - -# examples -install -d -m 0755 %{buildroot}%{_datadir}/%{oname} -cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname} - -%files -n python2-inotify -%license COPYING -%doc ACKS README.md -%{python2_sitelib}/%{oname}* - -%files -n python2-inotify-examples -%license COPYING -%{_datadir}/%{oname} %files -n python3-inotify %license COPYING @@ -79,6 +42,10 @@ cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname} %{python3_sitelib}/__pycache__/%{oname}* %changelog +* Fri Nov 29 2019 Miro Hrončok - 0.9.6-19 +- Subpackages python2-inotify, python2-inotify-examples have been removed + See https://fedoraproject.org/wiki/Changes/RetirePython2 + * Thu Oct 03 2019 Miro Hrončok - 0.9.6-18 - Rebuilt for Python 3.8.0rc1 (#1748018)