15
0
forked from pool/python-first

Accepting request 682097 from home:jayvdb:coala:python3-bears

- Initial spec for v2.0.1

OBS-URL: https://build.opensuse.org/request/show/682097
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-first?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2019-03-06 12:46:45 +00:00
committed by Git OBS Bridge
commit ec49a057b5
6 changed files with 128 additions and 0 deletions

57
python-first.spec Normal file
View File

@@ -0,0 +1,57 @@
#
# spec file for package python-first
#
# 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-%{**}}
Name: python-first
Version: 2.0.1
Release: 0
Summary: Return the first true value of an iterable
License: MIT
Group: Development/Languages/Python
URL: http://github.com/hynek/first/
Source: https://files.pythonhosted.org/packages/source/f/first/first-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/hynek/first/master/test_first.py
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Return the first true value of an iterable.
%prep
%setup -q -n first-%{version}
cp %{SOURCE1} .
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=. $python test_first.py
%files %{python_files}
%doc AUTHORS.rst README.rst
%license LICENSE
%{python_sitelib}/*
%changelog