Blame SPECS/python-lockfile.spec

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