0.9.5
This commit is contained in:
parent
3667c3c9b0
commit
eb84f20e8e
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ pyinotify-0.9.0.tar.gz
|
||||
/pyinotify-0.9.2.tar.gz
|
||||
/pyinotify-0.9.3.tar.gz
|
||||
/pyinotify-0.9.4.tar.gz
|
||||
/pyinotify-0.9.5.tar.gz
|
||||
|
@ -1,26 +1,21 @@
|
||||
%if 0%{?fedora}
|
||||
%global with_python3 1
|
||||
%endif
|
||||
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")}
|
||||
|
||||
%global with_python3 1
|
||||
%global oname pyinotify
|
||||
|
||||
Summary: Monitor filesystem events with Python under Linux
|
||||
Name: python-inotify
|
||||
Version: 0.9.4
|
||||
Release: 6%{?dist}
|
||||
Version: 0.9.5
|
||||
Release: 1%{?dist}
|
||||
License: MIT
|
||||
Group: Development/Libraries
|
||||
URL: https://github.com/seb-m/pyinotify
|
||||
Source0: http://seb.dbzteam.org/pub/pyinotify/releases/pyinotify-%{version}.tar.gz
|
||||
Source1: %{oname}
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: gmp-devel
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python3-devel
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%description
|
||||
This is a Python module for watching filesystems changes. pyinotify
|
||||
@ -54,14 +49,13 @@ This is the Python 3 build of pyinotify
|
||||
|
||||
%prep
|
||||
%setup -q -n %{oname}-%{version}
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%{__rm} -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
%endif
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
%{__python2} setup.py build
|
||||
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
@ -70,51 +64,44 @@ popd
|
||||
%endif
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
# Install python 3 first, so that python 2 gets precedence:
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
%{__install} -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/python3-%{oname}
|
||||
%{__sed} -i -e 's/^python /python3 /' %{buildroot}%{_bindir}/python3-%{oname}
|
||||
%{__chmod} 0755 %{buildroot}%{python3_sitelib}/%{oname}.py
|
||||
install -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/python3-%{oname}
|
||||
sed -i -e 's/^python /python3 /' %{buildroot}%{_bindir}/python3-%{oname}
|
||||
chmod 0755 %{buildroot}%{python3_sitelib}/%{oname}.py
|
||||
popd
|
||||
%endif
|
||||
|
||||
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
%{__install} -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/%{oname}
|
||||
%{__chmod} 0755 %{buildroot}%{python_sitelib}/%{oname}.py
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
install -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/%{oname}
|
||||
chmod 0755 %{buildroot}%{python_sitelib}/%{oname}.py
|
||||
|
||||
# examples
|
||||
%{__install} -d -m 0755 %{buildroot}%{_datadir}/%{oname}
|
||||
%{__cp} -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
install -d -m 0755 %{buildroot}%{_datadir}/%{oname}
|
||||
cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root, -)
|
||||
%doc ACKS COPYING README.md
|
||||
%{_bindir}/%{oname}
|
||||
%{python_sitelib}/%{oname}*
|
||||
|
||||
%files examples
|
||||
%defattr(-, root, root, -)
|
||||
%{_datadir}/%{oname}
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python3-inotify
|
||||
%defattr(-, root, root, -)
|
||||
%doc ACKS COPYING README.md
|
||||
%{_bindir}/python3-%{oname}
|
||||
%{python3_sitelib}/%{oname}*
|
||||
%if 0%{?fedora} > 14
|
||||
%{python3_sitelib}/__pycache__/%{oname}*
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Apr 13 2015 Terje Rosten <terje.rosten@ntnu.no> - 0.9.5-1
|
||||
- 0.9.5
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
@ -178,7 +165,7 @@ popd
|
||||
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2.git20090208
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Sat Feb 8 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-1.git20090208
|
||||
* Sun Feb 8 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-1.git20090208
|
||||
- 0.8.1
|
||||
|
||||
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.8.0-4.r
|
||||
|
Loading…
Reference in New Issue
Block a user