!8 drop python2 subpackage
From: @wangxiao65 Reviewed-by: @miao_kaibo Signed-off-by: @miao_kaibo
This commit is contained in:
commit
aa1810452f
@ -1,7 +1,7 @@
|
|||||||
%global with_tests 0%{?_with_tests:0}
|
%global with_tests 0%{?_with_tests:0}
|
||||||
Name: python-pocketlint
|
Name: python-pocketlint
|
||||||
Version: 0.17
|
Version: 0.17
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Addon pylint modules and configuration settings
|
Summary: Addon pylint modules and configuration settings
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Url: https://github.com/rhinstaller/pocketlint
|
Url: https://github.com/rhinstaller/pocketlint
|
||||||
@ -25,32 +25,17 @@ Requires: python3-polib python3-six
|
|||||||
Addon pylint modules and configuration settings for checking the validity of
|
Addon pylint modules and configuration settings for checking the validity of
|
||||||
Python-based source projects.
|
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
|
%prep
|
||||||
%autosetup -n pocketlint-%{version} -p1
|
%autosetup -n pocketlint-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build PYTHON=%{__python2}
|
|
||||||
%make_build PYTHON=%{__python3}
|
%make_build PYTHON=%{__python3}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install PYTHON=%{__python2}
|
|
||||||
%make_install PYTHON=%{__python3}
|
%make_install PYTHON=%{__python3}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with_tests}
|
%if %{with_tests}
|
||||||
make check PYTHON=%{__python2}
|
|
||||||
make check PYTHON=%{__python3}
|
make check PYTHON=%{__python3}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -59,11 +44,9 @@ make check PYTHON=%{__python3}
|
|||||||
%{python3_sitelib}/pocketlint*egg*
|
%{python3_sitelib}/pocketlint*egg*
|
||||||
%{python3_sitelib}/pocketlint/
|
%{python3_sitelib}/pocketlint/
|
||||||
|
|
||||||
%files -n python2-pocketlint
|
|
||||||
%license COPYING
|
|
||||||
%{python2_sitelib}/pocketlint*egg*
|
|
||||||
%{python2_sitelib}/pocketlint/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 0.17-3
|
||||||
|
- drop python2 subpackage
|
||||||
|
|
||||||
* Wed Jan 08 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.17-2
|
* Wed Jan 08 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.17-2
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user