Use correct python macros
This commit is contained in:
parent
521e177a3f
commit
1f1148d63d
@ -9,54 +9,39 @@ Group: Development/Libraries
|
||||
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: python2-devel
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
This is a Python module for watching filesystems changes. pyinotify
|
||||
can be used for various kind of fs monitoring. pyinotify relies on a
|
||||
recent Linux Kernel feature (merged in kernel 2.6.13) called
|
||||
inotify. inotify is an event-driven notifier, its notifications are
|
||||
exported from kernel space to user space.
|
||||
%global _description \
|
||||
This is a Python module for watching filesystems changes. pyinotify \
|
||||
can be used for various kind of fs monitoring. Based on inotify which \
|
||||
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
|
||||
Group: Development/Languages
|
||||
%{?python_provide:%python_provide python2-inotify}
|
||||
|
||||
%description -n python2-inotify
|
||||
This is a Python 2 module for watching filesystems changes. pyinotify
|
||||
can be used for various kind of fs monitoring. pyinotify relies on a
|
||||
recent Linux Kernel feature (merged in kernel 2.6.13) called
|
||||
inotify. inotify is an event-driven notifier, its notifications are
|
||||
exported from kernel space to user space.
|
||||
%description -n python2-inotify %_description
|
||||
|
||||
%package -n python2-inotify-examples
|
||||
Summary: Examples for Python inotify module
|
||||
Group: Development/Libraries
|
||||
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
|
||||
Group: Development/Languages
|
||||
%{?python_provide:%python_provide python3-inotify}
|
||||
|
||||
%description -n python3-inotify
|
||||
This is a Python 3 module for watching filesystems changes. pyinotify
|
||||
can be used for various kind of fs monitoring. pyinotify relies on a
|
||||
recent Linux Kernel feature (merged in kernel 2.6.13) called
|
||||
inotify. inotify is an event-driven notifier, its notifications are
|
||||
exported from kernel space to user space.
|
||||
%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}
|
||||
|
||||
@ -81,7 +66,7 @@ cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
|
||||
%license COPYING
|
||||
%doc ACKS README.md
|
||||
%{_bindir}/%{oname}
|
||||
%{python_sitelib}/%{oname}*
|
||||
%{python2_sitelib}/%{oname}*
|
||||
|
||||
%files -n python2-inotify-examples
|
||||
%license COPYING
|
||||
@ -95,6 +80,9 @@ cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
|
||||
%{python3_sitelib}/__pycache__/%{oname}*
|
||||
|
||||
%changelog
|
||||
* Sun Jul 15 2018 Terje Rosten <terje.rosten@ntnu.no> - 0.9.4-14
|
||||
- Use correct python macros
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user