import python-backports-1.0-15.module+el8.0.0+2961+596d0223
This commit is contained in:
commit
47219f9349
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
0
.python-backports.metadata
Normal file
0
.python-backports.metadata
Normal file
2
SOURCES/backports.py
Normal file
2
SOURCES/backports.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
from pkgutil import extend_path
|
||||||
|
__path__ = extend_path(__path__, __name__)
|
63
SPECS/python-backports.spec
Normal file
63
SPECS/python-backports.spec
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=998047
|
||||||
|
|
||||||
|
Name: python-backports
|
||||||
|
Version: 1.0
|
||||||
|
Release: 15%{?dist}
|
||||||
|
Summary: Namespace for backported Python features
|
||||||
|
|
||||||
|
# Only code is sourced from http://www.python.org/dev/peps/pep-0382/
|
||||||
|
License: Public Domain
|
||||||
|
URL: https://pypi.python.org/pypi/backports
|
||||||
|
Source0: backports.py
|
||||||
|
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
|
||||||
|
%global _description\
|
||||||
|
The backports namespace is a namespace reserved for features backported from\
|
||||||
|
the Python standard library to older versions of Python 2.\
|
||||||
|
\
|
||||||
|
Packages that exist in the backports namespace in Fedora should not provide\
|
||||||
|
their own backports/__init__.py, but instead require this package.\
|
||||||
|
\
|
||||||
|
Backports to earlier versions of Python 3, if they exist, do not need this\
|
||||||
|
package because of changes made in Python 3.3 in PEP 420\
|
||||||
|
(http://www.python.org/dev/peps/pep-0420/).\
|
||||||
|
|
||||||
|
|
||||||
|
%description %_description
|
||||||
|
|
||||||
|
%package -n python2-backports
|
||||||
|
Summary: %summary
|
||||||
|
%{?python_provide:%python_provide python2-backports}
|
||||||
|
|
||||||
|
%description -n python2-backports %_description
|
||||||
|
|
||||||
|
%prep
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -pm 755 %{buildroot}%{python_sitelib}/backports
|
||||||
|
install -pm 644 %{SOURCE0} %{buildroot}%{python_sitelib}/backports/__init__.py
|
||||||
|
%if "%{python_sitelib}" != "%{python_sitearch}"
|
||||||
|
mkdir -pm 755 %{buildroot}%{python_sitearch}/backports
|
||||||
|
install -pm 644 %{SOURCE0} %{buildroot}%{python_sitearch}/backports/__init__.py
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python2-backports
|
||||||
|
%{python_sitelib}/backports
|
||||||
|
%if "%{python_sitelib}" != "%{python_sitearch}"
|
||||||
|
%{python_sitearch}/backports
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Apr 03 2019 Tomas Orsava <torsava@redhat.com> - 1.0-15
|
||||||
|
- Bumping due to problems with modular RPM upgrade path (#1695587)
|
||||||
|
- Related: rhbz#1693974
|
||||||
|
|
||||||
|
* Mon Jul 16 2018 Lumír Balhar <lbalhar@redhat.com> - 1.0-14
|
||||||
|
- First version for python27 module
|
Loading…
Reference in New Issue
Block a user