Blame SPECS/python-backports.spec

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