|
|
732ff2 |
# Created by pyp2rpm-1.0.1
|
|
|
732ff2 |
%{?scl:%scl_package python-setuptools}
|
|
|
732ff2 |
%{!?scl:%global pkg_name %{name}}
|
|
|
732ff2 |
|
|
|
732ff2 |
%global pypi_name wheel
|
|
|
732ff2 |
|
|
|
732ff2 |
Name: %{?scl_prefix}python-%{pypi_name}
|
|
|
732ff2 |
Version: 0.24.0
|
|
|
b49104 |
Release: 3%{?dist}
|
|
|
732ff2 |
Summary: A built-package format for Python
|
|
|
732ff2 |
|
|
|
732ff2 |
License: MIT
|
|
|
732ff2 |
URL: http://bitbucket.org/dholth/wheel/
|
|
|
732ff2 |
Source0: https://pypi.python.org/packages/source/w/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
732ff2 |
|
|
|
732ff2 |
BuildArch: noarch
|
|
|
732ff2 |
|
|
|
732ff2 |
BuildRequires: %{?scl_prefix}python-devel
|
|
|
732ff2 |
BuildRequires: %{?scl_prefix}python-setuptools
|
|
|
732ff2 |
|
|
|
732ff2 |
|
|
|
732ff2 |
%description
|
|
|
732ff2 |
A built-package format for Python.
|
|
|
732ff2 |
|
|
|
732ff2 |
A wheel is a ZIP-format archive with a specially formatted filename and the
|
|
|
732ff2 |
.whl extension. It is designed to contain all the files for a PEP 376
|
|
|
732ff2 |
compatible install in a way that is very close to the on-disk format.
|
|
|
732ff2 |
|
|
|
732ff2 |
%prep
|
|
|
732ff2 |
%setup -q -n %{pypi_name}-%{version}
|
|
|
732ff2 |
|
|
|
732ff2 |
# remove unneeded shebangs
|
|
|
732ff2 |
sed -ie '1d' %{pypi_name}/{egg2wheel,wininst2wheel}.py
|
|
|
732ff2 |
|
|
|
732ff2 |
|
|
|
732ff2 |
%build
|
|
|
732ff2 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
732ff2 |
%{__python2} setup.py build
|
|
|
732ff2 |
%{?scl:EOF}
|
|
|
732ff2 |
|
|
|
732ff2 |
|
|
|
732ff2 |
%install
|
|
|
732ff2 |
# Must do the subpackages' install first because the scripts in /usr/bin are
|
|
|
732ff2 |
# overwritten with every setup.py install (and we want the python2 version
|
|
|
732ff2 |
# to be the default for now).
|
|
|
732ff2 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
732ff2 |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
732ff2 |
%{?scl:EOF}
|
|
|
732ff2 |
|
|
|
732ff2 |
|
|
|
732ff2 |
%check
|
|
|
732ff2 |
# remove setup.cfg that makes pytest require pytest-cov (unnecessary dep)
|
|
|
732ff2 |
#rm setup.cfg
|
|
|
732ff2 |
#py.test --ignore build
|
|
|
732ff2 |
# no test for Python 3, no python3-jsonschema yet
|
|
|
732ff2 |
#%if 0
|
|
|
732ff2 |
#pushd %{py3dir}
|
|
|
732ff2 |
#rm setup.cfg
|
|
|
732ff2 |
#py.test-%{python3_version} --ignore build
|
|
|
732ff2 |
#popd
|
|
|
732ff2 |
#%endif # with_python3
|
|
|
732ff2 |
|
|
|
732ff2 |
|
|
|
732ff2 |
%files
|
|
|
732ff2 |
%doc LICENSE.txt CHANGES.txt README.txt
|
|
|
732ff2 |
%{_bindir}/wheel
|
|
|
732ff2 |
%{python2_sitelib}/%{pypi_name}*
|
|
|
732ff2 |
%exclude %{python2_sitelib}/%{pypi_name}/test
|
|
|
732ff2 |
|
|
|
732ff2 |
|
|
|
732ff2 |
%changelog
|
|
|
b49104 |
* Thu May 24 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.24.0-3
|
|
|
b49104 |
- Rebuild for multi-arch bootstrap
|
|
|
b49104 |
|
|
|
732ff2 |
* Mon Jan 19 2015 Slavek Kabrda <bkabrda@redhat.com> - 0.24.0-2
|
|
|
732ff2 |
- Rebuilt for python27 SCL.
|
|
|
732ff2 |
Resolves: rhbz#1167902
|
|
|
732ff2 |
|
|
|
732ff2 |
* Mon Jan 19 2015 Matej Stuchlik <mstuchli@redhat.com> - 0.24.0-1
|
|
|
732ff2 |
- Update to 0.24.0
|
|
|
732ff2 |
|
|
|
732ff2 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22.0-4
|
|
|
732ff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
732ff2 |
|
|
|
732ff2 |
* Fri Apr 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.22.0-3
|
|
|
732ff2 |
- Another rebuild with python 3.4
|
|
|
732ff2 |
|
|
|
732ff2 |
* Fri Apr 18 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.22.0-2
|
|
|
732ff2 |
- Rebuild with python 3.4
|
|
|
732ff2 |
|
|
|
732ff2 |
* Thu Nov 28 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.22.0-1
|
|
|
732ff2 |
- Initial package.
|