Ver código fonte

python-six-1.11.0-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11459 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 anos atrás
pai
commit
dd76b90886
1 arquivos alterados com 46 adições e 7 exclusões
  1. 46 7
      p/python-six/python-six-vl.spec

+ 46 - 7
p/python-six/python-six-vl.spec

@@ -2,7 +2,7 @@
 
 # Basic Information
 Name:		python-six
-Version:	1.10.0
+Version:	1.11.0
 Release:	1%{?_dist_release}
 License:	MIT
 # /usr/share/doc/rpm-4.11.2/GROUPS_for_vine.txt を参照して Group を修正してください。
@@ -18,10 +18,15 @@ Packager:	yasumichi
 Summary:	Python 2 and 3 compatibility utilities
 Summary(ja):	Python 2 および 3 の互換ユーテリティ
 
+BuildArch:	noarch
 # Dependency
 Requires:	python
-BuildRequires:	python-devel
-BuildArch:	noarch
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
+BuildRequires:  python-rpm-macros
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+BuildRequires:  python3-rpm-macros
 
 %description
 for smoothing over the differences between the Python versions with the goal of
@@ -40,19 +45,42 @@ found there.
 For questions about six or porting in general, email the python-porting mailing
 list: http://mail.python.org/mailman/listinfo/python-porting
 
+%package -n python3-six
+Summary:		Python 2 and 3 compatibility utilities
+Summary(ja):	Python 2 および 3 の互換ユーテリティ
+Requires:		python3
+
+%description -n python3-six
+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.5.  It is contained in only one Python
+file, so it can be easily copied into your project. (The copyright and license
+notice must be retained.)
+
+Online documentation is at http://pythonhosted.org/six/.
+
+Bugs can be reported to http://bitbucket.org/gutworth/six.  The code can also be
+found there.
+
+For questions about six or porting in general, email the python-porting mailing
+list: http://mail.python.org/mailman/listinfo/python-porting
 
-#%%description -l ja
-#ここに日本語で詳細を記述してください。
 
 %prep
 %setup -q -n six-%{version}
 
 %build
+%py_build
+%py3_build
+
 %{__python} setup.py build
 
 %install
 %{__rm} -rf ${RPM_BUILD_ROOT}
-%{__python} setup.py install --root=${RPM_BUILD_ROOT}
+%py_install
+%py3_install
 
 
 %clean
@@ -61,11 +89,22 @@ list: http://mail.python.org/mailman/listinfo/python-porting
 
 %files
 %defattr(-,root,root)
-%doc LICENSE README
+%doc LICENSE README*
 %{python_sitelib}/six-%{version}-py*.egg-info
 %{python_sitelib}/six.py*
 
+%files -n python3-six
+%defattr(-,root,root)
+%doc LICENSE README*
+%{python3_sitelib}/six-%{version}-py*.egg-info
+%{python3_sitelib}/six.py*
+%{python3_sitelib}/__pycache__/six.*
+
 %changelog
+* Wed Jan 31 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.11.0-1
+- new upstream release.
+- added a subpackage for python3.
+
 * Sun Nov 15 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.10.0-1
 - new upstream release.