python-six-vl.spec 3.2 KB

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