From eab1829f5191a30f05028f9d7b52b0148da1a791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Wed, 12 Aug 2020 17:31:41 +0200 Subject: [PATCH] spec: replace hardcoded python3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric Pierret (fepitre) --- python-inotify.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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}