d2dfca5
%global srcname flufl.lock
d2dfca5
%global pkgname flufl-lock
d2dfca5
%global summary NFS-safe file locking with timeouts for POSIX systems
d2dfca5
%global _description \
d2dfca5
The flufl.lock library provides an NFS-safe file-based locking algorithm \
d2dfca5
influenced by the GNU/Linux "open(2)" man page, under the description of \
d2dfca5
the "O_EXCL" option.
d2dfca5
d2dfca5
d2dfca5
Name:           python-%{pkgname}
e10ead3
Version:        3.2
97f10ac
Release:        10%{?dist}
d2dfca5
Summary:        %{summary}
d2dfca5
e10ead3
License:        ASL 2.0
d2dfca5
URL:            https://gitlab.com/warsaw/flufl.lock
d2dfca5
Source0:        https://files.pythonhosted.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz
e10ead3
Source1:        https://gitlab.com/warsaw/flufl.lock/raw/master/LICENSE
d2dfca5
BuildArch:      noarch
d2dfca5
66ce147
BuildRequires:  python-srpm-macros
d2dfca5
BuildRequires:  python%{python3_pkgversion}-devel
d2dfca5
BuildRequires:  python%{python3_pkgversion}-setuptools
e10ead3
BuildRequires:  python%{python3_pkgversion}-atpublic
d2dfca5
%if 0%{?with_python3_other}
d2dfca5
BuildRequires:  python%{python3_other_pkgversion}-devel
d2dfca5
BuildRequires:  python%{python3_other_pkgversion}-setuptools
e10ead3
BuildRequires:  python%{python3_other_pkgversion}-atpublic
d2dfca5
%endif
d2dfca5
d2dfca5
%description %{_description}
d2dfca5
d2dfca5
d2dfca5
%package -n python%{python3_pkgversion}-%{pkgname}
d2dfca5
Summary:        %{summary}
d2dfca5
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
d2dfca5
Requires:       python%{python3_pkgversion}-setuptools
e10ead3
Requires:       python%{python3_pkgversion}-atpublic
d2dfca5
d2dfca5
%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
d2dfca5
d2dfca5
d2dfca5
%if 0%{?with_python3_other}
d2dfca5
%package -n python%{python3_other_pkgversion}-%{pkgname}
d2dfca5
Summary:        %{summary}
d2dfca5
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pkgname}}
d2dfca5
Requires:       python%{python3_other_pkgversion}-setuptools
e10ead3
Requires:       python%{python3_other_pkgversion}-atpublic
d2dfca5
d2dfca5
%description -n python%{python3_other_pkgversion}-%{pkgname} %{_description}
d2dfca5
%endif
d2dfca5
d2dfca5
d2dfca5
%prep
d2dfca5
%autosetup -n %{srcname}-%{version}
e10ead3
cp -p %{SOURCE1} .
d2dfca5
d2dfca5
d2dfca5
%build
d2dfca5
%py3_build
d2dfca5
%if 0%{?with_python3_other}
d2dfca5
%py3_other_build
d2dfca5
%endif
d2dfca5
d2dfca5
d2dfca5
%install
d2dfca5
%py3_install
d2dfca5
%if 0%{?with_python3_other}
d2dfca5
%py3_other_install
d2dfca5
%endif
d2dfca5
d2dfca5
# This will go in %%doc
d2dfca5
rm -rf %{buildroot}%{_prefix}/lib/python*/site-packages/flufl/lock/{*.rst,docs,conf.py}
d2dfca5
d2dfca5
d2dfca5
%check
d2dfca5
%{__python3} setup.py test
d2dfca5
%if 0%{?with_python3_other}
d2dfca5
%{__python3_other} setup.py test
d2dfca5
%endif
d2dfca5
d2dfca5
d2dfca5
%files -n python%{python3_pkgversion}-%{pkgname}
e10ead3
%license LICENSE
e10ead3
%doc README.rst flufl/lock/NEWS.rst flufl/lock/docs/using.rst
d2dfca5
%{python3_sitelib}/flufl/
d2dfca5
%{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}.egg-info/
d2dfca5
%{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}-nspkg.pth
d2dfca5
d2dfca5
%if 0%{?with_python3_other}
d2dfca5
%files -n python%{python3_other_pkgversion}-%{pkgname}
e10ead3
%license LICENSE
e10ead3
%doc README.rst flufl/lock/NEWS.rst flufl/lock/docs/using.rst
d2dfca5
%{python3_other_sitelib}/flufl/
7bb51a8
%{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}.egg-info/
d2dfca5
%{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}-nspkg.pth
d2dfca5
%endif
d2dfca5
d2dfca5
d2dfca5
%changelog
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.