Blame SPECS/python-backports.spec

c85cb3
# https://bugzilla.redhat.com/show_bug.cgi?id=998047
c85cb3
c85cb3
Name:           python-backports
c85cb3
Version:        1.0
8c02d4
Release:        8%{?dist}
c85cb3
Summary:        Namespace for backported Python features
c85cb3
c85cb3
# Only code is sourced from http://www.python.org/dev/peps/pep-0382/
c85cb3
License:        Public Domain
c85cb3
URL:            https://pypi.python.org/pypi/backports
c85cb3
Source0:        backports.py
c85cb3
c85cb3
BuildRequires:  python2-devel
8c02d4
Conflicts:      python-backports-lzma < 0.0.2-8
c85cb3
c85cb3
%description
c85cb3
The backports namespace is a namespace reserved for features backported from
c85cb3
the Python standard library to older versions of Python 2.
c85cb3
c85cb3
Packages that exist in the backports namespace in Fedora should not provide
c85cb3
their own backports/__init__.py, but instead require this package.
c85cb3
c85cb3
Backports to earlier versions of Python 3, if they exist, do not need this
c85cb3
package because of changes made in Python 3.3 in PEP 420
c85cb3
(http://www.python.org/dev/peps/pep-0420/).
c85cb3
c85cb3
c85cb3
%prep
c85cb3
c85cb3
c85cb3
%build
c85cb3
c85cb3
c85cb3
%install
c85cb3
mkdir -pm 755 %{buildroot}%{python_sitelib}/backports
c85cb3
install -pm 644 %{SOURCE0} %{buildroot}%{python_sitelib}/backports/__init__.py
8c02d4
%if "%{python_sitelib}" != "%{python_sitearch}"
8c02d4
mkdir -pm 755 %{buildroot}%{python_sitearch}/backports
8c02d4
install -pm 644 %{SOURCE0} %{buildroot}%{python_sitearch}/backports/__init__.py
8c02d4
%endif
c85cb3
c85cb3
 
c85cb3
%files
c85cb3
%{python_sitelib}/backports
8c02d4
%if "%{python_sitelib}" != "%{python_sitearch}"
8c02d4
%{python_sitearch}/backports
8c02d4
%endif
c85cb3
c85cb3
c85cb3
%changelog
8c02d4
* Tue Jan 13 2015 Endi S. Dewata <edewata@redhat.com> - 1.0-8
8c02d4
- Added conflict with older python-backports-lzma.
8c02d4
8c02d4
* Fri Jul 4 2014 Endi S. Dewata <edewata@redhat.com> - 1.0-7
8c02d4
- Reverted "Fixed build arch"
8c02d4
c85cb3
* Fri Feb 14 2014 Endi S. Dewata <edewata@redhat.com> - 1.0-6
c85cb3
- Fixed build arch
c85cb3
c85cb3
* Tue Jan 28 2014 Daniel Mach <dmach@redhat.com> - 1.0-5
c85cb3
- Mass rebuild 2014-01-24
c85cb3
c85cb3
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0-4
c85cb3
- Mass rebuild 2013-12-27
c85cb3
c85cb3
* Mon Aug 19 2013 Ian Weller <iweller@redhat.com> - 1.0-3
c85cb3
- Install to both python_sitelib and python_sitearch
c85cb3
c85cb3
* Mon Aug 19 2013 Ian Weller <iweller@redhat.com> - 1.0-2
c85cb3
- Install to the correct location
c85cb3
c85cb3
* Fri Aug 16 2013 Ian Weller <iweller@redhat.com> - 1.0-1
c85cb3
- Initial package build