diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 14:59:03 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 14:59:03 +0000 |
| commit | 5a8e7cc1a07c3c4d2a0274faca6d15663f905193 (patch) | |
| tree | 540c1ad4511fd58b490a4438dd15fcf0a9dd396a /python-imapclient.spec | |
| parent | a874e7d73d7ce6b868df9003c47b8474984902b9 (diff) | |
automatic import of python-imapclient
Diffstat (limited to 'python-imapclient.spec')
| -rw-r--r-- | python-imapclient.spec | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/python-imapclient.spec b/python-imapclient.spec new file mode 100644 index 0000000..4c08058 --- /dev/null +++ b/python-imapclient.spec @@ -0,0 +1,120 @@ +%global _empty_manifest_terminate_build 0 +Name: python-IMAPClient +Version: 2.3.1 +Release: 1 +Summary: Easy-to-use, Pythonic and complete IMAP client library +License: http://en.wikipedia.org/wiki/BSD_licenses +URL: https://github.com/mjs/imapclient/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/19/d8/a4a0337d5e39a0569d89793d5053d7535eefd9b8756df4e10dc114caf3c2/IMAPClient-2.3.1.zip +BuildArch: noarch + +Requires: python3-six +Requires: python3-sphinx +Requires: python3-mock + +%description +IMAPClient is an easy-to-use, Pythonic and complete IMAP client library. + +Features: + * Arguments and return values are natural Python types. + * IMAP server responses are fully parsed and readily usable. + * IMAP unique message IDs (UIDs) are handled transparently. + * Internationalised mailbox names are transparently handled. + * Time zones are correctly handled. + * Convenience methods are provided for commonly used functionality. + * Exceptions are raised when errors occur. + +Python versions 2.7 and 3.4 through 3.9 are officially supported. + +IMAPClient includes comprehensive units tests and automated +functional tests that can be run against a live IMAP server. + + +%package -n python3-IMAPClient +Summary: Easy-to-use, Pythonic and complete IMAP client library +Provides: python-IMAPClient +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-IMAPClient +IMAPClient is an easy-to-use, Pythonic and complete IMAP client library. + +Features: + * Arguments and return values are natural Python types. + * IMAP server responses are fully parsed and readily usable. + * IMAP unique message IDs (UIDs) are handled transparently. + * Internationalised mailbox names are transparently handled. + * Time zones are correctly handled. + * Convenience methods are provided for commonly used functionality. + * Exceptions are raised when errors occur. + +Python versions 2.7 and 3.4 through 3.9 are officially supported. + +IMAPClient includes comprehensive units tests and automated +functional tests that can be run against a live IMAP server. + + +%package help +Summary: Development documents and examples for IMAPClient +Provides: python3-IMAPClient-doc +%description help +IMAPClient is an easy-to-use, Pythonic and complete IMAP client library. + +Features: + * Arguments and return values are natural Python types. + * IMAP server responses are fully parsed and readily usable. + * IMAP unique message IDs (UIDs) are handled transparently. + * Internationalised mailbox names are transparently handled. + * Time zones are correctly handled. + * Convenience methods are provided for commonly used functionality. + * Exceptions are raised when errors occur. + +Python versions 2.7 and 3.4 through 3.9 are officially supported. + +IMAPClient includes comprehensive units tests and automated +functional tests that can be run against a live IMAP server. + + +%prep +%autosetup -n IMAPClient-2.3.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-IMAPClient -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.1-1 +- Package Spec generated |
