Created
February 25, 2020 05:33
-
-
Save patsevanton/0a469c0de670f48f1fe851de96a84da7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Created by pyp2rpm-3.3.3 | |
| %global pypi_name six | |
| Name: python-%{pypi_name} | |
| Version: 1.10.0 | |
| Release: 1%{?dist} | |
| Summary: Python 2 and 3 compatibility utilities | |
| License: MIT | |
| URL: http://pypi.python.org/pypi/six/ | |
| Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz | |
| BuildArch: noarch | |
| BuildRequires: python2-devel | |
| BuildRequires: python2-setuptools | |
| BuildRequires: python2-sphinx | |
| %description | |
| Six is a Python 2 and 3 compatibility library. It provides utility functions | |
| for smoothing over the differences between the Python versions with the goal of | |
| writing Python code that is compatible on both Python versions. See the | |
| documentation for more information on what is provided.Six supports every | |
| Python version since 2.6. It is contained in only one Python file, so it can be | |
| easily copied... | |
| %package python-%{pypi_name}-doc | |
| Summary: six documentation | |
| %description python-%{pypi_name}-doc | |
| Documentation for six | |
| %prep | |
| %autosetup -n %{pypi_name}-%{version} | |
| # Remove bundled egg-info | |
| rm -rf %{pypi_name}.egg-info | |
| %build | |
| %{__python2} setup.py build | |
| # generate html docs | |
| PYTHONPATH=${PWD} sphinx-build documentation html | |
| # remove the sphinx-build leftovers | |
| rm -rf html/.{doctrees,buildinfo} | |
| %install | |
| %{__python2} setup.py install --skip-build --root %{buildroot} | |
| %check | |
| %{__python2} setup.py test | |
| %files | |
| %{python2_sitelib}/%{pypi_name}.py* | |
| #%{python2_sitelib}/%{pypi_name} | |
| %{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info | |
| %files python-%{pypi_name}-doc | |
| %doc html | |
| %license LICENSE | |
| %changelog | |
| * Tue Feb 25 2020 Cloud User - 1.10.0-1 | |
| - Initial package. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment