49 lines
1.2 KiB
RPMSpec
49 lines
1.2 KiB
RPMSpec
%global git_commit bff19ea204059290da652854cd634abef10f6c43
|
|
|
|
Summary: Pythonic Smart Contract Language for the EVM
|
|
Name: vyper
|
|
Version: 0.4.3
|
|
Release: %autorelease
|
|
BuildArch: noarch
|
|
License: Apache-2.0
|
|
URL: https://vyperlang.org
|
|
Source0: %{pypi_source %{name}}
|
|
# Fedora-specific
|
|
Patch: vyper-0001-Use-Cryptodomex.patch
|
|
# Reverts https://github.com/vyperlang/vyper/pull/3613
|
|
Patch: vyper-0002-Ease-version-requirements.patch
|
|
Patch: vyper-0003-Remove-unnecessary-shebang.patch
|
|
BuildRequires: git
|
|
BuildRequires: python3-cached_property
|
|
BuildRequires: python3-eth-abi
|
|
BuildRequires: python3-eth-keys
|
|
BuildRequires: python3-eth-stdlib
|
|
BuildRequires: python3-hypothesis
|
|
BuildRequires: python3-pytest
|
|
BuildRequires: python3-rlp
|
|
BuildSystem: pyproject
|
|
BuildOption(install): -l %{name}
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%prep -a
|
|
echo %{sub %git_commit 0 7} > ./vyper/vyper_git_commithash.txt
|
|
|
|
%install -a
|
|
rm -f %{buildroot}/usr/vyper_git_commithash.txt
|
|
|
|
%check -a
|
|
# FIXME requires https://github.com/ethereum/py-evm
|
|
# FIXME requires https://github.com/paradigmxyz/pyrevm
|
|
#%%pytest
|
|
|
|
%files -f %{pyproject_files}
|
|
%doc README.md SECURITY.md
|
|
%{_bindir}/fang
|
|
%{_bindir}/venom
|
|
%{_bindir}/vyper
|
|
%{_bindir}/vyper-json
|
|
|
|
%changelog
|
|
%autochangelog
|