diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 19:21:41 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 19:21:41 +0000 |
| commit | 0f64a013e30bb95acf0beaec92f4eaa267ea5489 (patch) | |
| tree | d5141d433321ac131cc8dd2a05043357363aeaf4 /python-weberror.spec | |
| parent | 3f85ddbd3ff44bf0f3a043438ca5b2cf9b12555a (diff) | |
automatic import of python-weberror
Diffstat (limited to 'python-weberror.spec')
| -rw-r--r-- | python-weberror.spec | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/python-weberror.spec b/python-weberror.spec new file mode 100644 index 0000000..459c5e7 --- /dev/null +++ b/python-weberror.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-WebError +Version: 0.13.1 +Release: 1 +Summary: Web Error handling and exception catching +License: MIT +URL: https://bitbucket.org/bbangert/weberror +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/07/0a/09ca5eb0fab5c0d17b380026babe81c96ecebb13f2b06c3203432dd7be72/WebError-0.13.1.tar.gz +BuildArch: noarch + + +%description +This software is not actively maintained. Simple bugfixes and other patches +will be accepted, and released. + +%package -n python3-WebError +Summary: Web Error handling and exception catching +Provides: python-WebError +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-WebError +This software is not actively maintained. Simple bugfixes and other patches +will be accepted, and released. + +%package help +Summary: Development documents and examples for WebError +Provides: python3-WebError-doc +%description help +This software is not actively maintained. Simple bugfixes and other patches +will be accepted, and released. + +%prep +%autosetup -n WebError-0.13.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-WebError -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.13.1-1 +- Package Spec generated |
