Blame SPECS/python-lockfile.spec

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