File python-vyper.spec of Package python-vyper
#
# spec file for package python-vyper
#
# 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
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-vyper
Version: 0.4.0
Release: 0
License: Apache-2.0
Summary: Pythonic Smart Contract Language for the EVM
Group: Development/Languages/Python
Url: https://github.com/vyperlang/vyper
#!RemoteAsset: 9687145c6a0bf42de52e92202ce9a913648d3c657ac8e5cfb9b35a100dc47e34
Source: https://files.pythonhosted.org/packages/source/v/vyper/vyper-%{version}.tar.gz
BuildRequires: git
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
Pythonic Smart Contract Language for the EVM
%prep
%setup -q -n vyper-%{version}
rm -r vyper.egg-info
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/fang
%python_clone -a %{buildroot}%{_bindir}/vyper
%python_clone -a %{buildroot}%{_bindir}/vyper-json
rm %buildroot/usr/vyper_git_commithash.txt
%post
%python_install_alternative fang
%python_install_alternative vyper
%python_install_alternative vyper-json
%postun
%python_uninstall_alternative fang
%python_uninstall_alternative vyper
%python_uninstall_alternative vyper-json
%files %{python_files}
%license LICENSE
%doc examples docs README.md SECURITY.md
%python_alternative %{_bindir}/fang
%python_alternative %{_bindir}/vyper
%python_alternative %{_bindir}/vyper-json
%{python_sitelib}/*
%changelog