update to 2.2.0
This commit is contained in:
parent
323958811f
commit
74cb1644cc
@ -1,23 +0,0 @@
|
|||||||
diff -up pyflakes-1.1.0/debian/pyflakes3.1.orig pyflakes-1.1.0/debian/pyflakes3.1
|
|
||||||
--- pyflakes-1.1.0/debian/pyflakes3.1.orig 2015-11-06 18:24:51.000000000 +0200
|
|
||||||
+++ pyflakes-1.1.0/debian/pyflakes3.1 2016-03-01 23:05:17.179563833 +0200
|
|
||||||
@@ -1,15 +1,15 @@
|
|
||||||
-.TH "PYFLAKES3" "1" "10/01/2007" "" ""
|
|
||||||
+.TH "PYTHON3-PYFLAKES" "1" "10/01/2007" "" ""
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.SH "NAME"
|
|
||||||
-pyflakes3 - simple Python 3 source checker
|
|
||||||
+python3-pyflakes - simple Python 3 source checker
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.PP
|
|
||||||
-\fBpyflakes\fR [\fIfile-or-directory\fR ...]
|
|
||||||
+\fBpython3-pyflakes\fR [\fIfile-or-directory\fR ...]
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
-pyflakes3 is a simple program which checks Python source files for errors.
|
|
||||||
+python3-pyflakes is a simple program which checks Python source files for errors.
|
|
||||||
It is similar to PyChecker in scope, but differs in that it does not
|
|
||||||
execute the modules to check them. This is both safer and faster, although
|
|
||||||
it does not perform as many checks. Unlike PyLint, Pyflakes checks only
|
|
||||||
Binary file not shown.
BIN
pyflakes-2.2.0.tar.gz
Normal file
BIN
pyflakes-2.2.0.tar.gz
Normal file
Binary file not shown.
108
pyflakes.spec
108
pyflakes.spec
@ -1,71 +1,82 @@
|
|||||||
Name: pyflakes
|
%global _empty_manifest_terminate_build 0
|
||||||
Version: 2.1.0
|
Name: python-pyflakes
|
||||||
Release: 2
|
Version: 2.2.0
|
||||||
Summary: A simple program which checks Python source files for errors
|
Release: 1
|
||||||
License: MIT
|
Summary: passive checker of Python programs
|
||||||
URL: https://github.com/PyCQA/pyflakes
|
License: MIT
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
URL: https://github.com/PyCQA/pyflakes
|
||||||
Source1: http://cdn.debian.net/debian/pool/main/p/pyflakes/pyflakes_2.0.0-1.debian.tar.xz
|
Source0: https://files.pythonhosted.org/packages/f1/e2/e02fc89959619590eec0c35f366902535ade2728479fc3082c8af8840013/pyflakes-2.2.0.tar.gz
|
||||||
Patch0001: %{name}-1.1.0-python3-man.patch
|
BuildArch: noarch
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a safe program which analyze programs and detects various errors.\
|
This is a safe program which analyze programs and detects various errors.
|
||||||
It works by parsing the source file and check for error.\
|
It works by parsing the source file and check for error.
|
||||||
it's also much faster.
|
it's also much faster.
|
||||||
|
|
||||||
%package -n python3-pyflakes
|
%package -n python3-pyflakes
|
||||||
Summary: A simple program which checks Python source files for errors
|
Summary: passive checker of Python programs
|
||||||
BuildRequires: python3-devel python3-setuptools
|
Provides: python-pyflakes
|
||||||
Requires: python3-setuptools
|
BuildRequires: python3-devel
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
|
BuildRequires: python3-setuptools
|
||||||
|
Recommends: %{name}-help = %{version}-%{release}
|
||||||
%description -n python3-pyflakes
|
%description -n python3-pyflakes
|
||||||
This is a safe program which analyze programs and detects various errors.\
|
This is a safe program which analyze programs and detects various errors.
|
||||||
It works by parsing the source file and check for error.\
|
It works by parsing the source file and check for error.
|
||||||
it's also much faster.
|
it's also much faster.
|
||||||
|
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: help document and man info
|
Summary: Development documents and examples for pyflakes
|
||||||
|
Provides: python3-pyflakes-doc
|
||||||
%description help
|
%description help
|
||||||
Help document and man info for pyflakes package
|
Development documents and examples for pyflakes
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -a 1 -p1
|
%autosetup -n pyflakes-2.2.0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
%py3_install
|
%py3_install
|
||||||
mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-%{python3_version}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
ln -s pyflakes-%{python3_version} %{buildroot}%{_bindir}/pyflakes-3
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
mkdir -p %{buildroot}%{_mandir}/man1
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
cp debian/pyflakes3.1 %{buildroot}%{_mandir}/man1/pyflakes-%{python3_version}.1
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
chmod 644 %{buildroot}%{_mandir}/man1/pyflakes-%{python3_version}.1
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
touch %{buildroot}%{_mandir}/man1/pyflakes-%{python3_version}.1
|
pushd %{buildroot}
|
||||||
ln -s pyflakes-%{python3_version}.1 %{buildroot}%{_mandir}/man1/pyflakes-3.1
|
if [ -d usr/lib ]; then
|
||||||
ln -s pyflakes-3 %{buildroot}%{_bindir}/python3-pyflakes
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
ln -s pyflakes-3.1 %{buildroot}%{_mandir}/man1/python3-pyflakes.1
|
fi
|
||||||
|
if [ -d usr/lib64 ]; then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/bin ]; then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ]; then
|
||||||
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
touch doclist.lst
|
||||||
|
if [ -d usr/share/man ]; then
|
||||||
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
%check
|
%files -n python3-pyflakes -f filelist.lst
|
||||||
%{__python3} -Wall setup.py test
|
%dir %{python3_sitelib}/*
|
||||||
|
|
||||||
%files -n python3-pyflakes
|
|
||||||
%license LICENSE
|
|
||||||
%{_bindir}/pyflakes-3*
|
|
||||||
%{_bindir}/python3-pyflakes
|
|
||||||
%{python3_sitelib}/pyflakes*
|
|
||||||
%exclude %{python3_sitelib}/pyflakes/test/
|
|
||||||
#%{_bindir}/pyflakes
|
|
||||||
|
|
||||||
%files help
|
|
||||||
%doc AUTHORS README.rst NEWS.rst
|
|
||||||
%{_mandir}/man1/*
|
|
||||||
|
|
||||||
|
%files help -f doclist.lst
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 24 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 2.2.0-1
|
||||||
|
- update to 2.2.0
|
||||||
|
|
||||||
* Wed Oct 21 2020 wutao <wutao61@huawei.com> - 2.1.0-2
|
* Wed Oct 21 2020 wutao <wutao61@huawei.com> - 2.1.0-2
|
||||||
- delete python2 modules
|
- delete python2 modules
|
||||||
|
|
||||||
@ -74,4 +85,3 @@ ln -s pyflakes-3.1 %{buildroot}%{_mandir}/man1/python3-pyflakes.1
|
|||||||
|
|
||||||
* Fri Nov 15 2019 zhujunhao <zhujunhao5@huawei.com> - 2.0.0-8
|
* Fri Nov 15 2019 zhujunhao <zhujunhao5@huawei.com> - 2.0.0-8
|
||||||
- package init
|
- package init
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version_control: pypi
|
version_control: pypi
|
||||||
src_repo: pyflakes
|
src_repo: pyflakes
|
||||||
tag_prefix: "^v"
|
tag_prefix: "^v"
|
||||||
seperator: "."
|
separator: "."
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user