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