96f9b34
%global modname watchdog
96f9b34
c056541
Name:               python-%{modname}
c056541
Version:            0.8.3
1969776
Release:            15%{?dist}
96f9b34
Summary:            File system events monitoring
96f9b34
96f9b34
License:            ASL 2.0 and BSD and MIT
c056541
URL:                http://pypi.python.org/pypi/%{modname}
96f9b34
Source0:            http://pypi.python.org/packages/source/w/%{modname}/%{modname}-%{version}.tar.gz
96f9b34
BuildArch:          noarch
96f9b34
c056541
%description
c056541
A Python API and shell utilities to monitor file system events.
c056541
c056541
%package -n python3-%{modname}
c056541
BuildArch:          noarch
96f9b34
BuildRequires:      python3-devel
96f9b34
BuildRequires:      python3-pytest
96f9b34
BuildRequires:      python3-pytest-cov
d43b6d6
BuildRequires:      python3-pytest-timeout
96f9b34
BuildRequires:      python3-PyYAML >= 3.09
96f9b34
BuildRequires:      python3-argh >= 0.8.1
96f9b34
BuildRequires:      python3-pathtools >= 0.1.1
c056541
Summary:            %{summary}
85a562d
Obsoletes:          python2-%{modname} < 0.8.3-12
c056541
%{?python_provide:%python_provide python3-%{modname}}
96f9b34
c056541
%description -n python3-%{modname}
96f9b34
A Python API and shell utilities to monitor file system events.
96f9b34
96f9b34
96f9b34
%prep
96f9b34
%setup -q -n %{modname}-%{version}
96f9b34
96f9b34
# Remove all shebangs
96f9b34
find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d'
96f9b34
96f9b34
# Remove +x of the README file
96f9b34
chmod -x README.rst
96f9b34
96f9b34
# Remove bundled egg-info in case it exists
96f9b34
rm -rf %{modname}.egg-info
c056541
96f9b34
96f9b34
%build
c056541
%py3_build
96f9b34
96f9b34
96f9b34
%install
c056541
%py3_install
c056541
96f9b34
96f9b34
%check
d43b6d6
%{__python3} setup.py test
c056541
c056541
c056541
%files -n python3-%{modname}
c056541
%doc README.rst
c056541
%license LICENSE
96f9b34
%{python3_sitelib}/%{modname}/
85a562d
%{python3_sitelib}/%{modname}-%{version}-*/
85a562d
%{_bindir}/watchmedo*
96f9b34
96f9b34
96f9b34
%changelog
1969776
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-15
1969776
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1969776
2e049e4
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-14
2e049e4
- Rebuilt for Python 3.8.0rc1 (#1748018)
2e049e4
ac7e383
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-13
ac7e383
- Rebuilt for Python 3.8
ac7e383
85a562d
* Wed Jul 24 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-12
85a562d
- Remove python2-watchdog
85a562d
5494c1d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-11
5494c1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5494c1d
1f51745
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-10
1f51745
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1f51745
47c3ab3
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-9
47c3ab3
- Rebuilt for Python 3.7
47c3ab3
88b738c
* Mon Mar 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.8.3-8
88b738c
- Update Python 2 dependency declarations to new packaging standards
88b738c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
88b738c
6eea7bc
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-7
6eea7bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6eea7bc
8a8fe79
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-6
8a8fe79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8a8fe79
670fa9a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-5
670fa9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
670fa9a
d553112
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-4
d553112
- Rebuild for Python 3.6
d553112
d43b6d6
* Mon Aug 15 2016 Julien Enselme <jujens@jujens.eu> - 0.8.3-3
d43b6d6
- Add python-pytest-timeout to BR to launch tests
d43b6d6
7dcab31
* Thu Aug 12 2016 Julien Enselme <jujens@jujens.eu> - 0.8.3-2
7dcab31
- Add python2-pathtools to BR (was two times in Requires)
7dcab31
c056541
* Thu Aug 11 2016 Julien Enselme <jujens@jujens.eu> - 0.8.3-1
c056541
- Update to 0.8.3
c056541
- Correct requires
c056541
- Update to follow new Python packaging guidelines
c056541
- Always build with Python 3
c056541
ac614b6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-5
ac614b6
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ac614b6
7315223
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-4
7315223
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7315223
c457332
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-3
c457332
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
c457332
34a5b73
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
34a5b73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
34a5b73
84276a3
* Sat Nov 22 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.8.2-1
84276a3
- Update to 0.8.2
84276a3
96f9b34
* Fri Apr 25 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.7.1-4
96f9b34
- Adjust the license tag to ASL2.0 and BSD and MIT
96f9b34
96f9b34
* Fri Apr 18 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.7.1-3
96f9b34
- Adjust the check for Fedora/RHEL release number for the py3 package
96f9b34
96f9b34
* Fri Apr 18 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.7.1-2
96f9b34
- Remove all shebang of the python files
96f9b34
96f9b34
* Fri Apr 18 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.7.1-1
96f9b34
- initial package for Fedora