96f9b34
%global modname watchdog
96f9b34
c056541
Name:               python-%{modname}
9ff7259
Version:            2.1.9
d6170af
Release:            3%{?dist}
96f9b34
Summary:            File system events monitoring
96f9b34
96f9b34
License:            ASL 2.0 and BSD and MIT
5a7c45d
URL:                https://pypi.org/project/watchdog/
04b6182
Source0:            %pypi_source %{modname}
96f9b34
BuildArch:          noarch
96f9b34
c056541
%description
c056541
A Python API and shell utilities to monitor file system events.
c056541
c056541
%package -n python3-%{modname}
5a7c45d
Summary:            %{summary}
5a7c45d
c056541
BuildArch:          noarch
5a7c45d
96f9b34
BuildRequires:      python3-devel
f4f426c
BuildRequires:      python3-setuptools
96f9b34
BuildRequires:      python3-pytest
96f9b34
BuildRequires:      python3-pytest-cov
5a7c45d
BuildRequires:      python3-pytest-rerunfailures
d43b6d6
BuildRequires:      python3-pytest-timeout
96f9b34
BuildRequires:      python3-PyYAML >= 3.09
96f9b34
c056541
%description -n python3-%{modname}
96f9b34
A Python API and shell utilities to monitor file system events.
96f9b34
96f9b34
%prep
96f9b34
%setup -q -n %{modname}-%{version}
96f9b34
# Remove all shebangs
96f9b34
find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d'
96f9b34
# Remove +x of the README file
96f9b34
chmod -x README.rst
96f9b34
# Remove bundled egg-info in case it exists
96f9b34
rm -rf %{modname}.egg-info
c056541
96f9b34
%build
c056541
%py3_build
96f9b34
96f9b34
%install
c056541
%py3_install
c056541
96f9b34
%check
9ff7259
# test_unmount_watched_directory_filesystem,test_unmount_watched_directory_filesystem requires sudo and cannot work here.
9ff7259
%pytest -v -k 'not test_unmount_watched_directory_filesystem' -k 'not test_unmount_watched_directory_filesystem'
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
%changelog
d6170af
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.9-3
d6170af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
d6170af
c058103
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.9-2
c058103
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
c058103
9ff7259
* Wed Jun 29 2022 Julien Enselme <jujens@jujens.eu> - 2.1.9-1
9ff7259
- Update to 2.1.9
9ff7259
5e19233
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.1.6-3
5e19233
- Rebuilt for Python 3.11
5e19233
36560eb
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.6-2
36560eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
36560eb
7e315a8
* Mon Oct 04 2021 Charalampos Stratakis <cstratak@redhat.com> - 2.1.6-1
7e315a8
- Update to 2.1.6
7e315a8
- Remove redundant python-argh dependency
7e315a8
067aba0
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-2
067aba0
- Second attempt - Rebuilt for
067aba0
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
067aba0
206e4eb
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.10.2-5
206e4eb
- Rebuilt for Python 3.10
206e4eb
2937984
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-4
2937984
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2937984
7c0b285
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-3
7c0b285
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7c0b285
1aa2602
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.2-2
1aa2602
- Rebuilt for Python 3.9
1aa2602
04b6182
* Tue Feb 18 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.10.2-1
04b6182
- Update to the upstream release 0.10.2
04b6182
- Use the pypi_source macro for Source0
04b6182
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