Subpackages python2-inotify, python2-inotify-examples have been removed
This commit is contained in:
parent
089860fe95
commit
fd94a4cb14
@ -3,13 +3,12 @@
|
|||||||
Summary: Monitor filesystem events with Python under Linux
|
Summary: Monitor filesystem events with Python under Linux
|
||||||
Name: python-inotify
|
Name: python-inotify
|
||||||
Version: 0.9.6
|
Version: 0.9.6
|
||||||
Release: 18%{?dist}
|
Release: 19%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/seb-m/pyinotify
|
URL: https://github.com/seb-m/pyinotify
|
||||||
Source0: http://seb.dbzteam.org/pub/pyinotify/releases/pyinotify-%{version}.tar.gz
|
Source0: http://seb.dbzteam.org/pub/pyinotify/releases/pyinotify-%{version}.tar.gz
|
||||||
Patch01: pyinotify-0.9.6-epoint.patch
|
Patch01: pyinotify-0.9.6-epoint.patch
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%global _description \
|
%global _description \
|
||||||
@ -19,57 +18,21 @@ is an event-driven notifier, where notifications are exported from \
|
|||||||
kernel space to user space.
|
kernel space to user space.
|
||||||
%description %_description
|
%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
|
%package -n python3-inotify
|
||||||
Summary: Monitor filesystem events with Python under Linux
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-inotify}
|
%{?python_provide:%python_provide python3-inotify}
|
||||||
%description -n python3-inotify %_description
|
%description -n python3-inotify %_description
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{oname}-%{version}
|
%setup -q -n %{oname}-%{version}
|
||||||
%patch01 -p1
|
%patch01 -p1
|
||||||
sed -i '1c#! %{__python2}' python2/pyinotify.py python2/examples/autocompile.py
|
|
||||||
sed -i '1c#! %{__python3}' python3/pyinotify.py
|
sed -i '1c#! %{__python3}' python3/pyinotify.py
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
pushd %{py3dir}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
rm %{buildroot}%{_bindir}/%{oname}
|
|
||||||
%py3_install
|
%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
|
%files -n python3-inotify
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -79,6 +42,10 @@ cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
|
|||||||
%{python3_sitelib}/__pycache__/%{oname}*
|
%{python3_sitelib}/__pycache__/%{oname}*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 29 2019 Miro Hrončok <mhroncok@redhat.com> - 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 <mhroncok@redhat.com> - 0.9.6-18
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.6-18
|
||||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user