diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..271c664 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/wheel-0.24.0.tar.gz diff --git a/.python27-python-wheel.metadata b/.python27-python-wheel.metadata new file mode 100644 index 0000000..9feba34 --- /dev/null +++ b/.python27-python-wheel.metadata @@ -0,0 +1 @@ +c02262299489646af253067e8136c060a93572e3 SOURCES/wheel-0.24.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/python-wheel.spec b/SPECS/python-wheel.spec new file mode 100644 index 0000000..ce553d5 --- /dev/null +++ b/SPECS/python-wheel.spec @@ -0,0 +1,89 @@ +# Created by pyp2rpm-1.0.1 +%{?scl:%scl_package python-setuptools} +%{!?scl:%global pkg_name %{name}} + +%global pypi_name wheel + +Name: %{?scl_prefix}python-%{pypi_name} +Version: 0.24.0 +Release: 2%{?dist} +Summary: A built-package format for Python + +License: MIT +URL: http://bitbucket.org/dholth/wheel/ +Source0: https://pypi.python.org/packages/source/w/%{pypi_name}/%{pypi_name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: %{?scl_prefix}python-devel +BuildRequires: %{?scl_prefix}python-setuptools + + +%description +A built-package format for Python. + +A wheel is a ZIP-format archive with a specially formatted filename and the +.whl extension. It is designed to contain all the files for a PEP 376 +compatible install in a way that is very close to the on-disk format. + +%prep +%setup -q -n %{pypi_name}-%{version} + +# remove unneeded shebangs +sed -ie '1d' %{pypi_name}/{egg2wheel,wininst2wheel}.py + + +%build +%{?scl:scl enable %{scl} - << \EOF} +%{__python2} setup.py build +%{?scl:EOF} + + +%install +# Must do the subpackages' install first because the scripts in /usr/bin are +# overwritten with every setup.py install (and we want the python2 version +# to be the default for now). +%{?scl:scl enable %{scl} - << \EOF} +%{__python2} setup.py install --skip-build --root %{buildroot} +%{?scl:EOF} + + +%check +# remove setup.cfg that makes pytest require pytest-cov (unnecessary dep) +#rm setup.cfg +#py.test --ignore build +# no test for Python 3, no python3-jsonschema yet +#%if 0 +#pushd %{py3dir} +#rm setup.cfg +#py.test-%{python3_version} --ignore build +#popd +#%endif # with_python3 + + +%files +%doc LICENSE.txt CHANGES.txt README.txt +%{_bindir}/wheel +%{python2_sitelib}/%{pypi_name}* +%exclude %{python2_sitelib}/%{pypi_name}/test + + +%changelog +* Mon Jan 19 2015 Slavek Kabrda - 0.24.0-2 +- Rebuilt for python27 SCL. +Resolves: rhbz#1167902 + +* Mon Jan 19 2015 Matej Stuchlik - 0.24.0-1 +- Update to 0.24.0 + +* Sun Jun 08 2014 Fedora Release Engineering - 0.22.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Apr 25 2014 Matej Stuchlik - 0.22.0-3 +- Another rebuild with python 3.4 + +* Fri Apr 18 2014 Matej Stuchlik - 0.22.0-2 +- Rebuild with python 3.4 + +* Thu Nov 28 2013 Bohuslav Kabrda - 0.22.0-1 +- Initial package.