d2dfca5
%global pkgname flufl-lock
d2dfca5
d2dfca5
Name:           python-%{pkgname}
e01cdb3
Version:        8.0.2
e01cdb3
Release:        1%{?dist}
Jonathan 72eae27
Summary:        NFS-safe file locking with timeouts for POSIX systems
d2dfca5
Jonathan 72eae27
License:        Apache-2.0
d2dfca5
URL:            https://gitlab.com/warsaw/flufl.lock
e01cdb3
Source0:        https://files.pythonhosted.org/packages/source/f/flufl.lock/flufl_lock-%{version}.tar.gz
d2dfca5
Jonathan 72eae27
BuildArch:      noarch
d2dfca5
Jonathan 72eae27
BuildRequires:  python3-devel
Jonathan 72eae27
# for tests
Jonathan 6043a3f
# we don't actually test code cov.
Jonathan 6043a3f
# upstream default pytest flags have --cov
Jonathan 6043a3f
# so this is easier than a patch.  we add
Jonathan 6043a3f
# the --no-cov flag below to avoid running coverage
Jonathan 6043a3f
BuildRequires:  python3-pytest-cov
Jonathan 6043a3f
BuildRequires:  python3-sybil
d2dfca5
Jonathan 72eae27
%global _description %{expand:
Jonathan 72eae27
The flufl.lock library provides an NFS-safe file-based locking algorithm
Jonathan 72eae27
influenced by the GNU/Linux "open(2)" man page, under the description of
Jonathan 72eae27
the "O_EXCL" option.}
d2dfca5
Jonathan 72eae27
%description %{_description}
d2dfca5
d2dfca5
Jonathan 72eae27
%package -n python3-%{pkgname}
d2dfca5
Summary:        %{summary}
d2dfca5
Jonathan 72eae27
%description -n python3-%{pkgname} %{_description}
d2dfca5
d2dfca5
d2dfca5
%prep
e01cdb3
%autosetup -n flufl_lock-%{version}
Jonathan 72eae27
Jonathan 72eae27
%generate_buildrequires
Jonathan 72eae27
%pyproject_buildrequires
d2dfca5
d2dfca5
d2dfca5
%build
Jonathan 72eae27
%pyproject_wheel
d2dfca5
d2dfca5
d2dfca5
%install
Jonathan 72eae27
%pyproject_install
Jonathan 72eae27
%pyproject_save_files flufl
d2dfca5
d2dfca5
d2dfca5
%check
Jonathan 72eae27
# this file causes pytest to do weird things
Jonathan 72eae27
# so let's get it out of the way
Jonathan 72eae27
rm -f conftest.py
Jonathan 72eae27
%pytest --no-cov
d2dfca5
d2dfca5
Jonathan 72eae27
%files -n python3-%{pkgname} -f %{pyproject_files}
e10ead3
%license LICENSE
Jonathan 72eae27
%doc README.rst docs/
d2dfca5
d2dfca5
d2dfca5
%changelog
e01cdb3
* Fri Feb 02 2024 jonathanspw <jonathan@almalinux.org> - 8.0.2-1
e01cdb3
- Update to 8.0.2 rhbz#2216613
e01cdb3
4cbb16b
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.1-6
4cbb16b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
4cbb16b
941cddc
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.1-5
941cddc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
941cddc
6d2dcbc
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.1-4
6d2dcbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
6d2dcbc
a9b0397
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 7.1.1-3
a9b0397
- Rebuilt for Python 3.12
a9b0397
ac05ea1
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.1-2
ac05ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
ac05ea1
Jonathan 9436b62
* Sat Nov 26 2022 Jonathan Wright <jonathan@almalinux.org> - 7.1.1-1
Jonathan 9436b62
- Update to 7.1.1
Jonathan 9436b62
- rhbz#1852603
Jonathan 9436b62
Jonathan 9436b62
* Thu Aug 25 2022 Jonathan Wright <jonathan@almalinux.org> - 7.1-1
Jonathan 9436b62
- Update to 7.1
Jonathan 9436b62
- rhbz#1852603
Jonathan 9436b62
Jonathan 72eae27
* Thu Aug 25 2022 Jonathan Wright <jonathan@almalinux.org> - 6.0-1
Jonathan 72eae27
- Updated to 6.0-1
Jonathan 72eae27
- Spec file modernization
Jonathan 72eae27
dbf1f36
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-16
dbf1f36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
dbf1f36
82a20fd
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.2-15
82a20fd
- Rebuilt for Python 3.11
82a20fd
0fd7d69
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-14
0fd7d69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
0fd7d69
1212fcb
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-13
1212fcb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1212fcb
85fb564
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.2-12
85fb564
- Rebuilt for Python 3.10
85fb564
b9f8807
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-11
b9f8807
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b9f8807
97f10ac
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-10
97f10ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
97f10ac
e05f737
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.2-9
e05f737
- Rebuilt for Python 3.9
e05f737
cdf14e5
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-8
cdf14e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cdf14e5
1182ee0
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.2-7
1182ee0
- Rebuilt for Python 3.8.0rc1 (#1748018)
1182ee0
1e25092
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.2-6
1e25092
- Rebuilt for Python 3.8
1e25092
48293a3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-5
48293a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
48293a3
d7b3153
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-4
d7b3153
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d7b3153
1a3a121
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-3
1a3a121
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1a3a121
2e6e56a
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.2-2
2e6e56a
- Rebuilt for Python 3.7
2e6e56a
e10ead3
* Thu Feb 15 2018 Aurelien Bompard <abompard@fedoraproject.org> - 3.2-1
e10ead3
- Version 3.2
e10ead3
8b175b4
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-6
8b175b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8b175b4
66ce147
* Wed Aug 02 2017 Aurelien Bompard <abompard@fedoraproject.org> - 2.4.1-5
66ce147
- Fix BuildRequires name
66ce147
94cee2f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-4
94cee2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
94cee2f
14009da
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-3
14009da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
14009da
22be82e
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.4.1-2
22be82e
- Rebuild for Python 3.6
22be82e
d2dfca5
* Wed Sep 14 2016 Aurelien Bompard <abompard@fedoraproject.org> - 2.4.1-1
d2dfca5
- Initial package.