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