|
|
1c8e88 |
# https://bugzilla.redhat.com/show_bug.cgi?id=998047
|
|
|
1c8e88 |
|
|
|
1c8e88 |
Name: python-backports
|
|
|
1c8e88 |
Version: 1.0
|
|
|
4a046a |
Release: 15%{?dist}
|
|
|
1c8e88 |
Summary: Namespace for backported Python features
|
|
|
1c8e88 |
|
|
|
1c8e88 |
# Only code is sourced from http://www.python.org/dev/peps/pep-0382/
|
|
|
1c8e88 |
License: Public Domain
|
|
|
1c8e88 |
URL: https://pypi.python.org/pypi/backports
|
|
|
1c8e88 |
Source0: backports.py
|
|
|
1c8e88 |
|
|
|
1c8e88 |
BuildRequires: python2-devel
|
|
|
1c8e88 |
|
|
|
1c8e88 |
%global _description\
|
|
|
1c8e88 |
The backports namespace is a namespace reserved for features backported from\
|
|
|
1c8e88 |
the Python standard library to older versions of Python 2.\
|
|
|
1c8e88 |
\
|
|
|
1c8e88 |
Packages that exist in the backports namespace in Fedora should not provide\
|
|
|
1c8e88 |
their own backports/__init__.py, but instead require this package.\
|
|
|
1c8e88 |
\
|
|
|
1c8e88 |
Backports to earlier versions of Python 3, if they exist, do not need this\
|
|
|
1c8e88 |
package because of changes made in Python 3.3 in PEP 420\
|
|
|
1c8e88 |
(http://www.python.org/dev/peps/pep-0420/).\
|
|
|
1c8e88 |
|
|
|
1c8e88 |
|
|
|
1c8e88 |
%description %_description
|
|
|
1c8e88 |
|
|
|
1c8e88 |
%package -n python2-backports
|
|
|
1c8e88 |
Summary: %summary
|
|
|
1c8e88 |
%{?python_provide:%python_provide python2-backports}
|
|
|
1c8e88 |
|
|
|
1c8e88 |
%description -n python2-backports %_description
|
|
|
1c8e88 |
|
|
|
1c8e88 |
%prep
|
|
|
1c8e88 |
|
|
|
1c8e88 |
|
|
|
1c8e88 |
%build
|
|
|
1c8e88 |
|
|
|
1c8e88 |
|
|
|
1c8e88 |
%install
|
|
Pablo Greco |
cf94c3 |
mkdir -pm 755 %{buildroot}%{python2_sitelib}/backports
|
|
Pablo Greco |
cf94c3 |
install -pm 644 %{SOURCE0} %{buildroot}%{python2_sitelib}/backports/__init__.py
|
|
Pablo Greco |
cf94c3 |
%if "%{python2_sitelib}" != "%{python2_sitearch}"
|
|
Pablo Greco |
cf94c3 |
mkdir -pm 755 %{buildroot}%{python2_sitearch}/backports
|
|
Pablo Greco |
cf94c3 |
install -pm 644 %{SOURCE0} %{buildroot}%{python2_sitearch}/backports/__init__.py
|
|
|
1c8e88 |
%endif
|
|
|
1c8e88 |
|
|
|
1c8e88 |
|
|
|
1c8e88 |
%files -n python2-backports
|
|
Pablo Greco |
cf94c3 |
%{python2_sitelib}/backports
|
|
Pablo Greco |
cf94c3 |
%if "%{python2_sitelib}" != "%{python2_sitearch}"
|
|
Pablo Greco |
cf94c3 |
%{python2_sitearch}/backports
|
|
|
1c8e88 |
%endif
|
|
|
1c8e88 |
|
|
|
1c8e88 |
|
|
|
1c8e88 |
%changelog
|
|
|
b2cece |
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 1.0-15
|
|
|
b2cece |
- Bumping due to problems with modular RPM upgrade path
|
|
|
b2cece |
- Resolves: rhbz#1695587
|
|
|
4a046a |
|
|
|
1c8e88 |
* Mon Jul 16 2018 LumÃr Balhar <lbalhar@redhat.com> - 1.0-14
|
|
|
1c8e88 |
- First version for python27 module
|