Blame SPECS/python-backports.spec

1c8e88
# https://bugzilla.redhat.com/show_bug.cgi?id=998047
1c8e88
1c8e88
Name:           python-backports
1c8e88
Version:        1.0
1c8e88
Release:        14%{?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
1c8e88
mkdir -pm 755 %{buildroot}%{python_sitelib}/backports
1c8e88
install -pm 644 %{SOURCE0} %{buildroot}%{python_sitelib}/backports/__init__.py
1c8e88
%if "%{python_sitelib}" != "%{python_sitearch}"
1c8e88
mkdir -pm 755 %{buildroot}%{python_sitearch}/backports
1c8e88
install -pm 644 %{SOURCE0} %{buildroot}%{python_sitearch}/backports/__init__.py
1c8e88
%endif
1c8e88
1c8e88
 
1c8e88
%files -n python2-backports
1c8e88
%{python_sitelib}/backports
1c8e88
%if "%{python_sitelib}" != "%{python_sitearch}"
1c8e88
%{python_sitearch}/backports
1c8e88
%endif
1c8e88
1c8e88
1c8e88
%changelog
1c8e88
* Mon Jul 16 2018 Lumír Balhar <lbalhar@redhat.com> - 1.0-14
1c8e88
- First version for python27 module