15
0

Accepting request 493457 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/493457
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fasteners?expand=0&rev=4
This commit is contained in:
2017-05-09 16:03:46 +00:00
committed by Git OBS Bridge
2 changed files with 34 additions and 11 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 3 15:34:35 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version.
- Fix source URL.
-------------------------------------------------------------------
Thu Dec 17 13:42:09 UTC 2015 - tbechtold@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-fasteners
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@@ -15,7 +15,9 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-fasteners
Version: 0.14.1
Release: 0
@@ -23,17 +25,22 @@ Summary: A python package that provides useful locks
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/harlowja/fasteners
Source: https://pypi.python.org/packages/source/f/fasteners/fasteners-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
Source: https://files.pythonhosted.org/packages/source/f/fasteners/fasteners-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
%if %{with tests}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module testtools}
BuildRequires: %{python_module monotonic >= 0.1}
BuildRequires: python-futures
%endif
Requires: python-monotonic >= 0.1
Requires: python-six
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
A python package that provides useful locks
@@ -47,12 +54,22 @@ It includes the following.
%setup -q -n fasteners-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%if %{with tests}
%check
pushd fasteners/tests
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_bin_suffix} ./
}
popd
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc ChangeLog LICENSE README.rst
%{python_sitelib}/*