spec: replace hardcoded python3
Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret@qubes-os.org>
This commit is contained in:
parent
8ab30630c0
commit
eab1829f51
@ -9,7 +9,7 @@ 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: python3-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%global _description \
|
%global _description \
|
||||||
This is a Python module for watching filesystems changes. pyinotify \
|
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.
|
kernel space to user space.
|
||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
%package -n python3-inotify
|
%package -n python%{python3_pkgversion}-inotify
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-inotify}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-inotify}
|
||||||
%description -n python3-inotify %_description
|
%description -n python%{python3_pkgversion}-inotify %_description
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{oname}-%{version}
|
%setup -q -n %{oname}-%{version}
|
||||||
@ -34,7 +34,7 @@ sed -i '1c#! %{__python3}' python3/pyinotify.py
|
|||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%files -n python3-inotify
|
%files -n python%{python3_pkgversion}-inotify
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc ACKS README.md
|
%doc ACKS README.md
|
||||||
%{_bindir}/%{oname}
|
%{_bindir}/%{oname}
|
||||||
|
Loading…
Reference in New Issue
Block a user