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.2.tar.gz
|
||||||
/pyinotify-0.9.3.tar.gz
|
/pyinotify-0.9.3.tar.gz
|
||||||
/pyinotify-0.9.4.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
|
||||||
%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 oname pyinotify
|
%global oname pyinotify
|
||||||
|
|
||||||
Summary: Monitor filesystem events with Python under Linux
|
Summary: Monitor filesystem events with Python under Linux
|
||||||
Name: python-inotify
|
Name: python-inotify
|
||||||
Version: 0.9.4
|
Version: 0.9.5
|
||||||
Release: 6%{?dist}
|
Release: 1%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries
|
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
|
||||||
Source1: %{oname}
|
Source1: %{oname}
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: gmp-devel
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a Python module for watching filesystems changes. pyinotify
|
This is a Python module for watching filesystems changes. pyinotify
|
||||||
@ -54,14 +49,13 @@ This is the Python 3 build of pyinotify
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{oname}-%{version}
|
%setup -q -n %{oname}-%{version}
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%{__rm} -rf %{py3dir}
|
%{__rm} -rf %{py3dir}
|
||||||
cp -a . %{py3dir}
|
cp -a . %{py3dir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
%{__python2} setup.py build
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
@ -70,51 +64,44 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
# Install python 3 first, so that python 2 gets precedence:
|
# Install python 3 first, so that python 2 gets precedence:
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
%{__install} -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/python3-%{oname}
|
install -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/python3-%{oname}
|
||||||
%{__sed} -i -e 's/^python /python3 /' %{buildroot}%{_bindir}/python3-%{oname}
|
sed -i -e 's/^python /python3 /' %{buildroot}%{_bindir}/python3-%{oname}
|
||||||
%{__chmod} 0755 %{buildroot}%{python3_sitelib}/%{oname}.py
|
chmod 0755 %{buildroot}%{python3_sitelib}/%{oname}.py
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
%{__install} -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/%{oname}
|
install -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/%{oname}
|
||||||
%{__chmod} 0755 %{buildroot}%{python_sitelib}/%{oname}.py
|
chmod 0755 %{buildroot}%{python_sitelib}/%{oname}.py
|
||||||
|
|
||||||
# examples
|
# examples
|
||||||
%{__install} -d -m 0755 %{buildroot}%{_datadir}/%{oname}
|
install -d -m 0755 %{buildroot}%{_datadir}/%{oname}
|
||||||
%{__cp} -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
|
cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root, -)
|
|
||||||
%doc ACKS COPYING README.md
|
%doc ACKS COPYING README.md
|
||||||
%{_bindir}/%{oname}
|
%{_bindir}/%{oname}
|
||||||
%{python_sitelib}/%{oname}*
|
%{python_sitelib}/%{oname}*
|
||||||
|
|
||||||
%files examples
|
%files examples
|
||||||
%defattr(-, root, root, -)
|
|
||||||
%{_datadir}/%{oname}
|
%{_datadir}/%{oname}
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%files -n python3-inotify
|
%files -n python3-inotify
|
||||||
%defattr(-, root, root, -)
|
|
||||||
%doc ACKS COPYING README.md
|
%doc ACKS COPYING README.md
|
||||||
%{_bindir}/python3-%{oname}
|
%{_bindir}/python3-%{oname}
|
||||||
%{python3_sitelib}/%{oname}*
|
%{python3_sitelib}/%{oname}*
|
||||||
%if 0%{?fedora} > 14
|
|
||||||
%{python3_sitelib}/__pycache__/%{oname}*
|
%{python3_sitelib}/__pycache__/%{oname}*
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- 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
|
* 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
|
- 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
|
- 0.8.1
|
||||||
|
|
||||||
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.8.0-4.r
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.8.0-4.r
|
||||||
|
Loading…
Reference in New Issue
Block a user