forked from pool/python-flufl.lock
SLE-7686 OBS-URL: https://build.opensuse.org/request/show/752886 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flufl.lock?expand=0&rev=1
64 lines
1.9 KiB
RPMSpec
64 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-flufl.lock
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-flufl.lock
|
|
Version: 3.2
|
|
Release: 0
|
|
Summary: NFS-safe file locking with timeouts for POSIX systems
|
|
License: Apache-2.0
|
|
URL: https://flufllock.readthedocs.io
|
|
Source0: https://files.pythonhosted.org/packages/source/f/flufl.lock/flufl.lock-%{version}.tar.gz
|
|
# https://gitlab.com/warsaw/flufl.lock/merge_requests/11
|
|
Source1: https://gitlab.com/warsaw/flufl.lock/raw/master/LICENSE
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-atpublic
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module atpublic}
|
|
BuildRequires: %{python_module pytest}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
NFS-safe file locking with timeouts for POSIX systems.
|
|
|
|
%prep
|
|
%setup -q -n flufl.lock-%{version}
|
|
|
|
%build
|
|
cp %{SOURCE1} .
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|