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
|
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: python2-devel
|
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%global _description \
|
||||||
%description
|
This is a Python module for watching filesystems changes. pyinotify \
|
||||||
This is a Python module for watching filesystems changes. pyinotify
|
can be used for various kind of fs monitoring. Based on inotify which \
|
||||||
can be used for various kind of fs monitoring. pyinotify relies on a
|
is an event-driven notifier, where notifications are exported from \
|
||||||
recent Linux Kernel feature (merged in kernel 2.6.13) called
|
kernel space to user space.
|
||||||
inotify. inotify is an event-driven notifier, its notifications are
|
%description %_description
|
||||||
exported from kernel space to user space.
|
|
||||||
|
|
||||||
%package -n python2-inotify
|
%package -n python2-inotify
|
||||||
Summary: Monitor filesystem events with Python under Linux
|
Summary: Monitor filesystem events with Python under Linux
|
||||||
Group: Development/Languages
|
|
||||||
%{?python_provide:%python_provide python2-inotify}
|
%{?python_provide:%python_provide python2-inotify}
|
||||||
|
%description -n python2-inotify %_description
|
||||||
%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.
|
|
||||||
|
|
||||||
%package -n python2-inotify-examples
|
%package -n python2-inotify-examples
|
||||||
Summary: Examples for Python inotify module
|
Summary: Examples for Python inotify module
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: python2-inotify = %{version}-%{release}
|
Requires: python2-inotify = %{version}-%{release}
|
||||||
%{?python_provide:%python_provide python2-inotify-examples}
|
%{?python_provide:%python_provide python2-inotify-examples}
|
||||||
|
|
||||||
%description -n python2-inotify-examples
|
%description -n python2-inotify-examples
|
||||||
This package includes some examples usage of the Python inotify module.
|
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: Monitor filesystem events with Python under Linux
|
||||||
Group: Development/Languages
|
|
||||||
%{?python_provide:%python_provide python3-inotify}
|
%{?python_provide:%python_provide python3-inotify}
|
||||||
|
%description -n python3-inotify %_description
|
||||||
%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.
|
|
||||||
|
|
||||||
%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
|
||||||
rm -rf %{py3dir}
|
rm -rf %{py3dir}
|
||||||
cp -a . %{py3dir}
|
cp -a . %{py3dir}
|
||||||
|
|
||||||
@ -81,7 +66,7 @@ cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%doc ACKS README.md
|
%doc ACKS README.md
|
||||||
%{_bindir}/%{oname}
|
%{_bindir}/%{oname}
|
||||||
%{python_sitelib}/%{oname}*
|
%{python2_sitelib}/%{oname}*
|
||||||
|
|
||||||
%files -n python2-inotify-examples
|
%files -n python2-inotify-examples
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -95,6 +80,9 @@ cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
|
|||||||
%{python3_sitelib}/__pycache__/%{oname}*
|
%{python3_sitelib}/__pycache__/%{oname}*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-13
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user