commit 65f80294fe222ff8a5c2211cbd90ded7f77b0303 Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:53:52 2019 +0800 Package init diff --git a/funcsigs-1.0.2.tar.gz b/funcsigs-1.0.2.tar.gz new file mode 100644 index 0000000..c53bf6a Binary files /dev/null and b/funcsigs-1.0.2.tar.gz differ diff --git a/python-funcsigs.spec b/python-funcsigs.spec new file mode 100644 index 0000000..8fa1862 --- /dev/null +++ b/python-funcsigs.spec @@ -0,0 +1,77 @@ +%define _description__ \ +This package is a backport of the PEP 362 function signature features from \ +Python 3.3's inspect module. The backport is compatible with Python 2.6, 2.7 \ +as well as 3.2 and up. \ + +Name: python-funcsigs +Version: 1.0.2 +Release: 12 +Summary: Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+ +License: ASL 2.0 +URL: http://pypi.python.org/pypi/funcsigs +Source0: https://pypi.io/packages/source/f/funcsigs/funcsigs-%{version}.tar.gz +BuildArch: noarch + +%description +%{_description__} + +%package -n python2-funcsigs +Summary: Python2 bindings for funcsigs +%{?python_provide:%python_provide python2-funcsigs} + +BuildRequires: python2-devel python2-setuptools python2-sphinx python2-unittest2 + +%description -n python2-funcsigs +This package is a python2 subpackage for funcsigs. +%{_description__} + +%package -n python3-funcsigs +Summary: Python3 bindings for funcsigs +%{?python_provide:%python_provide python3-funcsigs} + +BuildRequires: python3-devel python3-setuptools python3-unittest2 + +%description -n python3-funcsigs +This package is a python3 subpackage for funcsigs. +%{_description__} + +%package help +Summary: Help package for funcsigs +Provides: %{name}-doc = %{version}-%{release} +Obsoletes: %{name}-doc < %{version}-%{release} + +%description help +This package contains some documentation for funcsigs. + +%prep +%autosetup -n funcsigs-%{version} -p1 +rm -rf funcsigs.egg-info + +%build +%py2_build +%py3_build +sphinx-build docs html +rm -rf html/.{doctrees,buildinfo} + +%install +%py2_install +%py3_install + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-funcsigs +%license LICENSE +%{python2_sitelib}/{funcsigs,funcsigs-%{version}-py?.?.egg-info} + +%files -n python3-funcsigs +%license LICENSE +%{python3_sitelib}/{funcsigs,funcsigs-%{version}-py?.?.egg-info} + +%files help +%doc html README.rst + +%changelog +* Tue Oct 15 2019 huzhiyu - 1.0.2-12 +- Package init