diff --git a/pocketlint-0.17.tar.gz b/pocketlint-0.17.tar.gz new file mode 100644 index 0000000..9dc49cd Binary files /dev/null and b/pocketlint-0.17.tar.gz differ diff --git a/python-pocketlint.spec b/python-pocketlint.spec new file mode 100644 index 0000000..9d49a90 --- /dev/null +++ b/python-pocketlint.spec @@ -0,0 +1,66 @@ +Name: python-pocketlint +Version: 0.17 +Release: 2 +Summary: Addon pylint modules and configuration settings +License: GPLv2+ +Url: https://github.com/rhinstaller/pocketlint +Source0: https://github.com/rhinstaller/pocketlint/archive/%{version}/pocketlint-%{version}.tar.gz + +BuildArch: noarch + +%description +Addon pylint modules and configuration settings for checking the validity of +Python-based source projects. + +%package -n python3-pocketlint +Summary: Addon pylint modules and configuration settings (Python 3) + +%python_provide python3-pocketlint + +BuildRequires: python3-devel python3-six +Requires: python3-polib python3-six + +%description -n python3-pocketlint +Addon pylint modules and configuration settings for checking the validity of +Python-based source projects. + +%package -n python2-pocketlint +Summary: Addon pylint modules and configuration settings (Python 2) + +%python_provide python2-pocketlint + +BuildRequires: python2-devel python2-six python2-futures +Requires: python2-polib python2-six python2-futures + +%description -n python2-pocketlint +Addon pylint modules and configuration settings for checking the validity of +Python-based source projects. + +%prep +%autosetup -n pocketlint-%{version} -p1 + +%build +%make_build PYTHON=%{__python2} +%make_build PYTHON=%{__python3} + +%install +%make_install PYTHON=%{__python2} +%make_install PYTHON=%{__python3} + +%check +make check PYTHON=%{__python2} +make check PYTHON=%{__python3} + +%files -n python3-pocketlint +%license COPYING +%{python3_sitelib}/pocketlint*egg* +%{python3_sitelib}/pocketlint/ + +%files -n python2-pocketlint +%license COPYING +%{python2_sitelib}/pocketlint*egg* +%{python2_sitelib}/pocketlint/ + +%changelog +* Wed Jan 08 2020 Jiangping Hu - 0.17-2 +- Package init