From 5a8e7cc1a07c3c4d2a0274faca6d15663f905193 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 14:59:03 +0000 Subject: automatic import of python-imapclient --- .gitignore | 1 + python-imapclient.spec | 120 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 122 insertions(+) create mode 100644 python-imapclient.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..ad9790b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/IMAPClient-2.3.1.zip 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 - 2.3.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..d3338c8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +785bc3d7560d14b0d6c2a4dfa257e11b IMAPClient-2.3.1.zip -- cgit v1.2.3