c4d95b2
# allow building without running the test suite
c4d95b2
%bcond_without tests
c4d95b2
1293a17
%global pypi_name lockfile
6fbfa97
1293a17
%global common_description %{expand:
1293a17
The lockfile module exports a FileLock class which provides a simple API for
1293a17
locking files. Unlike the Windows msvcrt.locking function, the Unix
1293a17
fcntl.flock, fcntl.lockf and the deprecated posixfile module, the API is
1293a17
identical across both Unix (including Linux and Mac) and Windows platforms. The
1293a17
lock mechanism relies on the atomic nature of the link (on Unix) and mkdir (on
1293a17
Windows) system calls.}
6fbfa97
1293a17
Name:           python-%{pypi_name}
1293a17
Summary:        Platform-independent file locking module
Silas Sewell ff8056c
Epoch:          1
5d41cb8
Version:        0.12.2
7708eb2
Release:        13%{?dist}
6fbfa97
License:        MIT
1293a17
750f91a
URL:            https://github.com/openstack/pylockfile
1293a17
Source0:        %{pypi_source}
6fbfa97
d5f9b97
# Remove __init__ method from Test classes to be able to use pytest
d5f9b97
# Update all metadata from nose to pytest
d5f9b97
# Upstream is dead so this is downstream only
d5f9b97
Patch:          pytest.patch
d5f9b97
6fbfa97
BuildArch:      noarch
c7eb710
c7eb710
BuildRequires:  python3-devel
6fbfa97
1293a17
BuildRequires:  python3dist(pbr) >= 1.8
1293a17
BuildRequires:  python3dist(setuptools)
1293a17
BuildRequires:  python3dist(sphinx)
6fbfa97
c4d95b2
%if %{with tests}
d5f9b97
BuildRequires:  python3dist(pytest)
c4d95b2
%endif
c4d95b2
1293a17
%description %{common_description}
8badc03
8badc03
1293a17
%package -n     python3-%{pypi_name}
1293a17
Summary:        %{summary}
1293a17
%{?python_provide:%python_provide python3-%{pypi_name}}
8badc03
1293a17
%description -n python3-%{pypi_name} %{common_description}
1293a17
1293a17
1293a17
%package -n     python-%{pypi_name}-doc
1293a17
Summary:        lockfile documentation
1293a17
%description -n python-%{pypi_name}-doc
1293a17
Documentation for lockfile
c7eb710
c7eb710
6fbfa97
%prep
d5f9b97
%autosetup -p1 -n %{pypi_name}-%{version}
6fbfa97
1293a17
# Remove bundled egg-info
1293a17
rm -rf %{pypi_name}.egg-info
1293a17
6fbfa97
%build
1293a17
%py3_build
1293a17
1293a17
# generate html docs
1293a17
PYTHONPATH=${PWD} sphinx-build-3 doc/source html
1293a17
1293a17
# remove the sphinx-build leftovers
1293a17
rm -rf html/.{doctrees,buildinfo}
6fbfa97
c7eb710
6fbfa97
%install
1293a17
%py3_install
6fbfa97
c7eb710
c7eb710
%check
c4d95b2
%if %{with tests}
d5f9b97
%pytest
c4d95b2
%endif
1293a17
1293a17
1293a17
%files -n python3-%{pypi_name}
1293a17
%license LICENSE
1293a17
%doc ACKS AUTHORS ChangeLog README.rst RELEASE-NOTES
1293a17
1293a17
%{python3_sitelib}/%{pypi_name}/
1293a17
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
1293a17
1293a17
%files -n python-%{pypi_name}-doc
1293a17
%doc html
1293a17
%license LICENSE
1293a17
c7eb710
6fbfa97
%changelog
7708eb2
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.12.2-13
7708eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
7708eb2
4fa43ec
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.12.2-12
4fa43ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
4fa43ec
1b2d70f
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.12.2-11
1b2d70f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
1b2d70f
518553b
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1:0.12.2-10
518553b
- Rebuilt for Python 3.12
518553b
ecb07de
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.12.2-9
ecb07de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
ecb07de
6644b54
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.12.2-8
6644b54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6644b54
d5f9b97
* Thu Jun 23 2022 Miro Hrončok <mhroncok@redhat.com> - 1:0.12.2-7
d5f9b97
- Switch the test runner in %%check from nose to pytest
d5f9b97
a3e4027
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1:0.12.2-6
a3e4027
- Rebuilt for Python 3.11
a3e4027
0ad906c
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.12.2-5
0ad906c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
0ad906c
5091709
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.12.2-4
5091709
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5091709
3814952
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1:0.12.2-3
3814952
- Rebuilt for Python 3.10
3814952
0c07d7a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.12.2-2
0c07d7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0c07d7a
5d41cb8
* Thu Sep 10 2020 Yatin Karel <ykarel@redhat.com> - 0.12.2-1
5d41cb8
- Update to 0.12.2
5d41cb8
c4d95b2
* Mon Aug 10 2020 Fabio Valentini <decathorpe@gmail.com> - 1:0.11.0-20
c4d95b2
- Allow building without running the test suite.
c4d95b2
e2da644
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.0-19
e2da644
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e2da644
0040148
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1:0.11.0-18
0040148
- Rebuilt for Python 3.9
0040148
7b5d2aa
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.0-17
7b5d2aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7b5d2aa
1293a17
* Tue Sep 03 2019 Fabio Valentini <decathorpe@gmail.com> - 1:0.11.0-16
1293a17
- Drop python2 sub-package. See:
1293a17
  https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal
1293a17
- Refresh packaging for 2019, move docs to a sub-package.
1293a17
02c32d6
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1:0.11.0-15
02c32d6
- Rebuilt for Python 3.8
02c32d6
ff786f2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.0-14
ff786f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ff786f2
f447c4c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.0-13
f447c4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f447c4c
169400a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.0-12
169400a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
169400a
c941acd
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 1:0.11.0-11
c941acd
- Rebuilt for Python 3.7
c941acd
911525a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.0-10
911525a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
911525a
278743c
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1:0.11.0-9
278743c
- Update Python 2 dependency declarations to new packaging standards
278743c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
278743c
8badc03
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:0.11.0-8
8badc03
- Python 2 binary package renamed to python2-lockfile
8badc03
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
8badc03
d7b5ba7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.0-7
d7b5ba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d7b5ba7
fa8cc5a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.0-6
fa8cc5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fa8cc5a
27b31b8
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1:0.11.0-5
27b31b8
- Rebuild for Python 3.6
27b31b8
2299128
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.11.0-4
2299128
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2299128
8657f1e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.0-3
8657f1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8657f1e
e3c6edd
* Wed Nov 18 2015 Slavek Kabrda <bkabrda@redhat.com> - 1:0.11.0-2
e3c6edd
- Remove runtime dependency on pbr
e3c6edd
Resolves: rhbz#1282571
e3c6edd
110f388
* Fri Nov 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1:0.11.0-1
110f388
- Update to 0.11.0
110f388
9c54be2
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.2-3
9c54be2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
9c54be2
67d3827
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.2-2
67d3827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
67d3827
750f91a
* Tue Dec 09 2014 Slavek Kabrda <bkabrda@redhat.com> - 1:0.10.2-1
750f91a
- Update to 0.10.2
750f91a
- Drop patches merged upstream
750f91a
- Update URL and Source to point to new upstream
750f91a
ea0eedc
* Fri Jun 20 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1:0.9.1-8
ea0eedc
- Properly list files for python3-lockfile subpackage.
ea0eedc
c7eb710
* Fri Jun 20 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1:0.9.1-7
c7eb710
- Added python3-lockfile subpackage.
c7eb710
345ee31
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.1-6
345ee31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
345ee31
4c3d0b5
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.1-5
4c3d0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4c3d0b5
c6e0cf0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.1-4
c6e0cf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c6e0cf0
115497a
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.1-3
115497a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
115497a
869514f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.1-2
869514f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
869514f
Silas Sewell 5948a0f
* Sun Jul 24 2011 Silas Sewell <silas@sewell.org> - 1:0.9.1-1
Silas Sewell 5948a0f
- Update to 0.9.1
Silas Sewell 5948a0f
b7e9af2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.8-2
b7e9af2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b7e9af2
Silas Sewell ff8056c
* Tue Aug 03 2010 Silas Sewell <silas@sewell.ch> - 1:0.8-1
Silas Sewell ff8056c
- Update to 0.8, increase epoch
Silas Sewell ff8056c
03916ff
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.9-2
03916ff
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
03916ff
bd1528c
* Tue Jul 06 2010 Silas Sewell <silas@sewell.ch> - 0.9-1
bd1528c
- Update to 0.9
bd1528c
bd1528c
* Tue Jul 06 2010 Silas Sewell <silas@sewell.ch> - 0.8-2
bd1528c
- Bump for EL6 build
bd1528c
6fbfa97
* Thu Jul 23 2009 Silas Sewell <silas@sewell.ch> - 0.8-1
bd1528c
- Initial build