From eab1829f5191a30f05028f9d7b52b0148da1a791 Mon Sep 17 00:00:00 2001 From: Frédéric Pierret (fepitre) Date: Aug 12 2020 15:31:41 +0000 Subject: spec: replace hardcoded python3 Signed-off-by: Frédéric Pierret (fepitre) --- diff --git a/python-inotify.spec b/python-inotify.spec index d231908..df70c00 100644 --- a/python-inotify.spec +++ b/python-inotify.spec @@ -9,7 +9,7 @@ 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: python3-devel +BuildRequires: python%{python3_pkgversion}-devel BuildArch: noarch %global _description \ This is a Python module for watching filesystems changes. pyinotify \ @@ -18,10 +18,10 @@ is an event-driven notifier, where notifications are exported from \ kernel space to user space. %description %_description -%package -n python3-inotify +%package -n python%{python3_pkgversion}-inotify Summary: %{summary} -%{?python_provide:%python_provide python3-inotify} -%description -n python3-inotify %_description +%{?python_provide:%python_provide python%{python3_pkgversion}-inotify} +%description -n python%{python3_pkgversion}-inotify %_description %prep %setup -q -n %{oname}-%{version} @@ -34,7 +34,7 @@ sed -i '1c#! %{__python3}' python3/pyinotify.py %install %py3_install -%files -n python3-inotify +%files -n python%{python3_pkgversion}-inotify %license COPYING %doc ACKS README.md %{_bindir}/%{oname}