Group :: Development/Python3
RPM: python3-module-random2
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define oname random2
Name: python3-module-%oname
Version: 1.0.2
Release: alt4
Summary: Python 3 compatible Python 2 `random` Module
License: PSFL
Group: Development/Python3
Url: https://pypi.python.org/pypi/random2/
# https://github.com/strichter/random2.git
BuildArch: noarch
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
%description
Python 3 compatible Python 2 `random` Module.
%prep
%setup
%build
%python3_build
%install
%python3_install
# Remove a test that is invalid as of python 3.9
sed -i '/self\.gen\.getrandbits, 0/d' src/tests.py
%check
%__python3 setup.py test
%files
%doc *.txt
%python3_sitelibdir/*
%changelog
…
Todas as alterações você pod ver aqui
Name: python3-module-%oname
Version: 1.0.2
Release: alt4
Summary: Python 3 compatible Python 2 `random` Module
License: PSFL
Group: Development/Python3
Url: https://pypi.python.org/pypi/random2/
# https://github.com/strichter/random2.git
BuildArch: noarch
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
%description
Python 3 compatible Python 2 `random` Module.
%prep
%setup
%build
%python3_build
%install
%python3_install
# Remove a test that is invalid as of python 3.9
sed -i '/self\.gen\.getrandbits, 0/d' src/tests.py
%check
%__python3 setup.py test
%files
%doc *.txt
%python3_sitelibdir/*
%changelog
…
Todas as alterações você pod ver aqui