| 1 | %define pkgname six |
|---|
| 2 | |
|---|
| 3 | # Basic Information |
|---|
| 4 | Name: python-six |
|---|
| 5 | Version: 1.11.0 |
|---|
| 6 | Release: 1%{?_dist_release} |
|---|
| 7 | License: MIT |
|---|
| 8 | # /usr/share/doc/rpm-4.11.2/GROUPS_for_vine.txt を参照して Group を修正してください。 |
|---|
| 9 | Group: Development/Libraries |
|---|
| 10 | URL: http://pypi.python.org/pypi/six/ |
|---|
| 11 | Source0: https://pypi.python.org/packages/source/s/%{pkgname}/%{pkgname}-%{version}.tar.gz |
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 13 | |
|---|
| 14 | Vendor: Project Vine |
|---|
| 15 | Distribution: Vine Linux |
|---|
| 16 | Packager: yasumichi |
|---|
| 17 | |
|---|
| 18 | Summary: Python 2 and 3 compatibility utilities |
|---|
| 19 | Summary(ja): Python 2 および 3 の互換ユーテリティ |
|---|
| 20 | |
|---|
| 21 | BuildArch: noarch |
|---|
| 22 | # Dependency |
|---|
| 23 | Requires: python |
|---|
| 24 | BuildRequires: python-devel |
|---|
| 25 | BuildRequires: python-setuptools |
|---|
| 26 | BuildRequires: python-rpm-macros |
|---|
| 27 | BuildRequires: python3-devel |
|---|
| 28 | BuildRequires: python3-setuptools |
|---|
| 29 | BuildRequires: python3-rpm-macros |
|---|
| 30 | |
|---|
| 31 | %description |
|---|
| 32 | for smoothing over the differences between the Python versions with the goal of |
|---|
| 33 | writing Python code that is compatible on both Python versions. See the |
|---|
| 34 | documentation for more information on what is provided. |
|---|
| 35 | |
|---|
| 36 | Six supports every Python version since 2.5. It is contained in only one Python |
|---|
| 37 | file, so it can be easily copied into your project. (The copyright and license |
|---|
| 38 | notice must be retained.) |
|---|
| 39 | |
|---|
| 40 | Online documentation is at http://pythonhosted.org/six/. |
|---|
| 41 | |
|---|
| 42 | Bugs can be reported to http://bitbucket.org/gutworth/six. The code can also be |
|---|
| 43 | found there. |
|---|
| 44 | |
|---|
| 45 | For questions about six or porting in general, email the python-porting mailing |
|---|
| 46 | list: http://mail.python.org/mailman/listinfo/python-porting |
|---|
| 47 | |
|---|
| 48 | %package -n python3-six |
|---|
| 49 | Summary: Python 2 and 3 compatibility utilities |
|---|
| 50 | Summary(ja): Python 2 および 3 の互換ユーテリティ |
|---|
| 51 | Requires: python3 |
|---|
| 52 | |
|---|
| 53 | %description -n python3-six |
|---|
| 54 | for smoothing over the differences between the Python versions with the goal of |
|---|
| 55 | writing Python code that is compatible on both Python versions. See the |
|---|
| 56 | documentation for more information on what is provided. |
|---|
| 57 | |
|---|
| 58 | Six supports every Python version since 2.5. It is contained in only one Python |
|---|
| 59 | file, so it can be easily copied into your project. (The copyright and license |
|---|
| 60 | notice must be retained.) |
|---|
| 61 | |
|---|
| 62 | Online documentation is at http://pythonhosted.org/six/. |
|---|
| 63 | |
|---|
| 64 | Bugs can be reported to http://bitbucket.org/gutworth/six. The code can also be |
|---|
| 65 | found there. |
|---|
| 66 | |
|---|
| 67 | For questions about six or porting in general, email the python-porting mailing |
|---|
| 68 | list: http://mail.python.org/mailman/listinfo/python-porting |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | %prep |
|---|
| 72 | %setup -q -n six-%{version} |
|---|
| 73 | |
|---|
| 74 | %build |
|---|
| 75 | %py_build |
|---|
| 76 | %py3_build |
|---|
| 77 | |
|---|
| 78 | %{__python} setup.py build |
|---|
| 79 | |
|---|
| 80 | %install |
|---|
| 81 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 82 | %py_install |
|---|
| 83 | %py3_install |
|---|
| 84 | |
|---|
| 85 | |
|---|
| 86 | %clean |
|---|
| 87 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 88 | |
|---|
| 89 | |
|---|
| 90 | %files |
|---|
| 91 | %defattr(-,root,root) |
|---|
| 92 | %doc LICENSE README* |
|---|
| 93 | %{python_sitelib}/six-%{version}-py*.egg-info |
|---|
| 94 | %{python_sitelib}/six.py* |
|---|
| 95 | |
|---|
| 96 | %files -n python3-six |
|---|
| 97 | %defattr(-,root,root) |
|---|
| 98 | %doc LICENSE README* |
|---|
| 99 | %{python3_sitelib}/six-%{version}-py*.egg-info |
|---|
| 100 | %{python3_sitelib}/six.py* |
|---|
| 101 | %{python3_sitelib}/__pycache__/six.* |
|---|
| 102 | |
|---|
| 103 | %changelog |
|---|
| 104 | * Wed Jan 31 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.11.0-1 |
|---|
| 105 | - new upstream release. |
|---|
| 106 | - added a subpackage for python3. |
|---|
| 107 | |
|---|
| 108 | * Sun Nov 15 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.10.0-1 |
|---|
| 109 | - new upstream release. |
|---|
| 110 | |
|---|
| 111 | * Sat Sep 20 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.8.0-1 |
|---|
| 112 | - initial build for Vine Linux |
|---|