diff --git a/pyflakes-1.1.0-python3-man.patch b/pyflakes-1.1.0-python3-man.patch deleted file mode 100644 index 5fc1362..0000000 --- a/pyflakes-1.1.0-python3-man.patch +++ /dev/null @@ -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 diff --git a/pyflakes-2.1.0.tar.gz b/pyflakes-2.1.0.tar.gz deleted file mode 100644 index 9b6e7ca..0000000 Binary files a/pyflakes-2.1.0.tar.gz and /dev/null differ diff --git a/pyflakes-2.2.0.tar.gz b/pyflakes-2.2.0.tar.gz new file mode 100644 index 0000000..09908d1 Binary files /dev/null and b/pyflakes-2.2.0.tar.gz differ diff --git a/pyflakes.spec b/pyflakes.spec index c1f993b..a2c8baa 100644 --- a/pyflakes.spec +++ b/pyflakes.spec @@ -1,71 +1,82 @@ -Name: pyflakes -Version: 2.1.0 -Release: 2 -Summary: A simple program which checks Python source files for errors -License: MIT -URL: https://github.com/PyCQA/pyflakes -Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz -Source1: http://cdn.debian.net/debian/pool/main/p/pyflakes/pyflakes_2.0.0-1.debian.tar.xz -Patch0001: %{name}-1.1.0-python3-man.patch -BuildArch: noarch +%global _empty_manifest_terminate_build 0 +Name: python-pyflakes +Version: 2.2.0 +Release: 1 +Summary: passive checker of Python programs +License: MIT +URL: https://github.com/PyCQA/pyflakes +Source0: https://files.pythonhosted.org/packages/f1/e2/e02fc89959619590eec0c35f366902535ade2728479fc3082c8af8840013/pyflakes-2.2.0.tar.gz +BuildArch: noarch + %description -This is a safe program which analyze programs and detects various errors.\ -It works by parsing the source file and check for error.\ +This is a safe program which analyze programs and detects various errors. +It works by parsing the source file and check for error. it's also much faster. -%package -n python3-pyflakes -Summary: A simple program which checks Python source files for errors -BuildRequires: python3-devel python3-setuptools -Requires: python3-setuptools -%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}} - -%description -n python3-pyflakes -This is a safe program which analyze programs and detects various errors.\ -It works by parsing the source file and check for error.\ +%package -n python3-pyflakes +Summary: passive checker of Python programs +Provides: python-pyflakes +BuildRequires: python3-devel +BuildRequires: python3-setuptools +Recommends: %{name}-help = %{version}-%{release} +%description -n python3-pyflakes +This is a safe program which analyze programs and detects various errors. +It works by parsing the source file and check for error. it's also much faster. + %package help -Summary: help document and man info +Summary: Development documents and examples for pyflakes +Provides: python3-pyflakes-doc %description help -Help document and man info for pyflakes package +Development documents and examples for pyflakes + %prep -%autosetup -a 1 -p1 +%autosetup -n pyflakes-2.2.0 %build %py3_build %install - %py3_install -mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-%{python3_version} -ln -s pyflakes-%{python3_version} %{buildroot}%{_bindir}/pyflakes-3 -mkdir -p %{buildroot}%{_mandir}/man1 -cp debian/pyflakes3.1 %{buildroot}%{_mandir}/man1/pyflakes-%{python3_version}.1 -chmod 644 %{buildroot}%{_mandir}/man1/pyflakes-%{python3_version}.1 -touch %{buildroot}%{_mandir}/man1/pyflakes-%{python3_version}.1 -ln -s pyflakes-%{python3_version}.1 %{buildroot}%{_mandir}/man1/pyflakes-3.1 -ln -s pyflakes-3 %{buildroot}%{_bindir}/python3-pyflakes -ln -s pyflakes-3.1 %{buildroot}%{_mandir}/man1/python3-pyflakes.1 +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +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 -%{__python3} -Wall setup.py test - -%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 -n python3-pyflakes -f filelist.lst +%dir %{python3_sitelib}/* +%files help -f doclist.lst +%{_docdir}/* %changelog +* Mon Nov 24 2020 zhangjiapeng - 2.2.0-1 +- update to 2.2.0 + * Wed Oct 21 2020 wutao - 2.1.0-2 - delete python2 modules @@ -74,4 +85,3 @@ ln -s pyflakes-3.1 %{buildroot}%{_mandir}/man1/python3-pyflakes.1 * Fri Nov 15 2019 zhujunhao - 2.0.0-8 - package init - diff --git a/pyflakes.yaml b/pyflakes.yaml index 43dfa24..f7f301d 100644 --- a/pyflakes.yaml +++ b/pyflakes.yaml @@ -1,4 +1,4 @@ version_control: pypi src_repo: pyflakes tag_prefix: "^v" -seperator: "." +separator: "." diff --git a/pyflakes_2.0.0-1.debian.tar.xz b/pyflakes_2.0.0-1.debian.tar.xz deleted file mode 100644 index 0a50c25..0000000 Binary files a/pyflakes_2.0.0-1.debian.tar.xz and /dev/null differ