2015-12-17 13:37:13 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-future
|
|
|
|
#
|
2017-04-06 16:24:43 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-12-17 13:37:13 +00:00
|
|
|
#
|
|
|
|
# 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/
|
2016-09-12 11:13:09 +00:00
|
|
|
#
|
2015-12-17 13:37:13 +00:00
|
|
|
|
|
|
|
|
2017-04-06 16:24:43 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-12-17 13:37:13 +00:00
|
|
|
Name: python-future
|
2016-11-25 10:10:48 +00:00
|
|
|
Version: 0.16.0
|
2015-12-17 13:37:13 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Clean single-source support for Python 3 and 2
|
2016-09-12 11:13:09 +00:00
|
|
|
License: MIT
|
2015-12-17 13:37:13 +00:00
|
|
|
Group: Development/Languages/Python
|
2016-09-12 11:13:09 +00:00
|
|
|
Url: https://python-future.org
|
2017-04-06 16:24:43 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/f/future/future-%{version}.tar.gz
|
2016-09-12 11:13:09 +00:00
|
|
|
BuildRequires: fdupes
|
2017-04-06 16:24:43 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2015-12-17 13:37:13 +00:00
|
|
|
Requires(post): update-alternatives
|
2017-04-06 16:24:43 +00:00
|
|
|
Requires(preun): update-alternatives
|
2015-12-17 13:37:13 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2017-04-06 16:24:43 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2015-12-17 13:37:13 +00:00
|
|
|
%description
|
2017-04-06 16:24:43 +00:00
|
|
|
Easy, safe support for Python 2/3 compatibility
|
2015-12-17 13:37:13 +00:00
|
|
|
|
2017-04-06 16:24:43 +00:00
|
|
|
future is the missing compatibility layer between Python 2 and Python
|
2015-12-17 13:37:13 +00:00
|
|
|
3. It allows you to use a single, clean Python 3.x-compatible codebase to
|
|
|
|
support both Python 2 and Python 3 with minimal overhead.
|
|
|
|
|
2017-04-06 16:24:43 +00:00
|
|
|
|
2015-12-17 13:37:13 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n future-%{version}
|
|
|
|
|
2017-04-06 16:24:43 +00:00
|
|
|
|
2015-12-17 13:37:13 +00:00
|
|
|
%build
|
2017-04-06 16:24:43 +00:00
|
|
|
%python_build
|
|
|
|
|
2015-12-17 13:37:13 +00:00
|
|
|
|
|
|
|
%install
|
2017-04-06 16:24:43 +00:00
|
|
|
%python_install
|
|
|
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/futurize
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pasteurize
|
2015-12-17 13:37:13 +00:00
|
|
|
|
2017-04-06 16:24:43 +00:00
|
|
|
%{python_expand %fdupes %{buildroot}%{$python_sitearch} }
|
2016-09-15 15:24:57 +00:00
|
|
|
|
2015-12-17 13:37:13 +00:00
|
|
|
|
|
|
|
%post
|
2017-04-06 16:24:43 +00:00
|
|
|
%{python_install_alternative futurize pasteurize}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%python_uninstall_alternative futurize
|
2015-12-17 13:37:13 +00:00
|
|
|
|
|
|
|
|
2017-04-06 16:24:43 +00:00
|
|
|
%files %{python_files}
|
2015-12-17 13:37:13 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE.txt README.rst
|
|
|
|
%{python_sitelib}/*
|
2017-04-06 16:24:43 +00:00
|
|
|
%python_alternative %{_bindir}/futurize
|
|
|
|
%python_alternative %{_bindir}/pasteurize
|
2015-12-17 13:37:13 +00:00
|
|
|
|
|
|
|
%changelog
|