diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:50:33 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:50:33 +0000 |
commit | 0baae1ddc5d807b42a371450758125b9e50d44da (patch) | |
tree | b98c6049a88f606a2d6813f955f15eadbf7d8a17 | |
parent | d4e93bff969e39a755b8ae248b8c1fd46246228f (diff) |
automatic import of python-pyflakes
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyflakes.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyflakes-3.0.1.tar.gz diff --git a/python-pyflakes.spec b/python-pyflakes.spec new file mode 100644 index 0000000..1884bf6 --- /dev/null +++ b/python-pyflakes.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyflakes +Version: 3.0.1 +Release: 1 +Summary: passive checker of Python programs +License: MIT +URL: https://github.com/PyCQA/pyflakes +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f2/51/506ddcfab10d708e8460554cc1cf37c727a6a2cccbad8dfe57766cfce33c/pyflakes-3.0.1.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-pyflakes +Summary: passive checker of Python programs +Provides: python-pyflakes +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyflakes + + +%package help +Summary: Development documents and examples for pyflakes +Provides: python3-pyflakes-doc +%description help + + +%prep +%autosetup -n pyflakes-3.0.1 + +%build +%py3_build + +%install +%py3_install +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 . + +%files -n python3-pyflakes -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +e3aecdfd560b4d4a5441ee5b43cc0580 pyflakes-3.0.1.tar.gz |