Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37866827
en ru br
ALT Linux repositórios
S:0.18.3-alt2

Group :: Development/Python3
RPM: python3-module-future

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname future

%def_with check

Name: python3-module-%oname
Version: 0.18.3
Release: alt2
Summary: Clean single-source support for Python 3 and 2
License: MIT
Group: Development/Python3
Url: https://python-future.org/

# https://github.com/PythonCharmers/python-future.git

Source: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildArch: noarch

BuildRequires(pre): rpm-build-python3

%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(tox_console_scripts)
BuildRequires: python3(tox_no_deps)
BuildRequires: python3(tox)
%endif

# filter requires of self

%filter_from_requires /python3\(\.[[:digit:]]\)\?(future\..*)/d

%description
future is the missing compatibility layer between Python 3 and Python 2.
It allows you to use a single, clean Python 3.x-compatible codebase to
support both Python 3 and Python 2 with minimal overhead.

%prep
%setup
%autopatch -p1

%build
%python3_build

%install
%python3_install

# don't package tests

rm -r %buildroot%python3_sitelibdir/*/*/test
rm -r %buildroot%python3_sitelibdir/*/tests

rm -r %buildroot%_bindir/*

%check
%tox_create_default_config
%tox_check

%files
%doc *.txt *.rst
%python3_sitelibdir/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009