diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 15:15:10 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 15:15:10 +0000 |
| commit | 648d860854cd45500e71803e2cbb33b020aa546b (patch) | |
| tree | 02191c1b4d96f3ebf01d35ccf3da81ecb2aa1054 | |
| parent | 01fe8945bbb225eb5cd7c2839084ce7ce3454212 (diff) | |
automatic import of python-flake8-raiseopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-flake8-raise.spec | 74 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/flake8-raise-0.0.5.tar.gz diff --git a/python-flake8-raise.spec b/python-flake8-raise.spec new file mode 100644 index 0000000..579f5cc --- /dev/null +++ b/python-flake8-raise.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-flake8-raise +Version: 0.0.5 +Release: 1 +Summary: A flake8 plugin that finds that finds improvements for raise statements. +License: MIT +URL: https://github.com/jdufresne/flake8-raise +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/45/3d/0211d7fb77b3bc6c49495575de4dd07b2ca6fc90a6784bca6097ec980cb9/flake8-raise-0.0.5.tar.gz +BuildArch: noarch + +Requires: python3-flake8 +Requires: python3-importlib-metadata + +%description + + +%package -n python3-flake8-raise +Summary: A flake8 plugin that finds that finds improvements for raise statements. +Provides: python-flake8-raise +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-flake8-raise + + +%package help +Summary: Development documents and examples for flake8-raise +Provides: python3-flake8-raise-doc +%description help + + +%prep +%autosetup -n flake8-raise-0.0.5 + +%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-flake8-raise -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.5-1 +- Package Spec generated @@ -0,0 +1 @@ +9c00404811c1fde974e0f44903567f31 flake8-raise-0.0.5.tar.gz |
