Blob Blame History Raw
%global srcname whatever

Name:           python-%{srcname}
Version:        0.6
Release:        3%{?dist}
Summary:        Easy way to make anonymous functions by partial application of operators

License:        BSD
Source0:        %{pypi_source}
Source1:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz

BuildArch:      noarch

%global _description %{expand:
An easy way to make lambdas by partial application of python operators.

Inspired by Perl 6 one, see}

%description %{_description}

%package     -n python3-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(pytest)

%description -n python3-%{srcname} %{_description}

Python 3 version.

%autosetup -n %{srcname}-%{version}
rm -vr *.egg-info
tar -xvf %{S:1} --strip-components=1 --wildcards '%{srcname}-%{version}/test*' '%{srcname}-%{version}/CHANGELOG'



%python3 -m pytest -v

%files -n python3-%{srcname}
%license LICENSE

* Wed Jul 29 2020 Fedora Release Engineering <> - 0.6-3
- Rebuilt for

* Tue May 26 2020 Miro HronĨok <> - 0.6-2
- Rebuilt for Python 3.9

* Fri Jan 31 2020 Igor Raits <> - 1.14-1
- Initial package