diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-eric-tools.spec | 220 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 222 insertions, 0 deletions
@@ -0,0 +1 @@ +/eric_tools-1.2.5.tar.gz diff --git a/python-eric-tools.spec b/python-eric-tools.spec new file mode 100644 index 0000000..3daad9b --- /dev/null +++ b/python-eric-tools.spec @@ -0,0 +1,220 @@ +%global _empty_manifest_terminate_build 0 +Name: python-eric-tools +Version: 1.2.5 +Release: 1 +Summary: Python Daily Development Tools +License: Apache License +URL: https://github.com/Eric-jxl/Tools +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5a/a7/2fd81430a52a8764c2a03772cdbe50fc57e6c61972a9596f77c2f664b439/eric_tools-1.2.5.tar.gz +BuildArch: noarch + +Requires: python3-psycopg2 +Requires: python3-requests +Requires: python3-paramiko +Requires: python3-Pillow + +%description +# Tools +[](https://opensource.org/licenses/Apache-2.0) + + + +[Redis](https://eric-jxl.github.io) + + +##### Project management of Python daily tools +```shell +pip install eric_tools +``` +``` +https://pypi.org/project/eric_tools/ +``` +``` +encryption_classmethod.py Python HMAC+MD5加密签名算法 + +exception_class.py 异常类 + +resize_image.py 图片压缩 + +ip.py ip地址定位API + +logger.py 日志模块类和高级日志装饰器 + +remove.py 删除文件 + +send_email.py 发送邮件 + +sftp.py ssh远程下载文件 + +pgsql.py 对postgresql 增删改查操作 + +readconfig 针对读取配置文件 + +jwt_encrypt 生成jwt Access Token 加密及解密 + +convert_json 支持json和object之间转换 + +Abstract.py 抽象类模型 + +decorator.py 惰性属性装饰器 + +BingDwenDwen.py 冰墩墩 +``` + + + + +%package -n python3-eric-tools +Summary: Python Daily Development Tools +Provides: python-eric-tools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-eric-tools +# Tools +[](https://opensource.org/licenses/Apache-2.0) + + + +[Redis](https://eric-jxl.github.io) + + +##### Project management of Python daily tools +```shell +pip install eric_tools +``` +``` +https://pypi.org/project/eric_tools/ +``` +``` +encryption_classmethod.py Python HMAC+MD5加密签名算法 + +exception_class.py 异常类 + +resize_image.py 图片压缩 + +ip.py ip地址定位API + +logger.py 日志模块类和高级日志装饰器 + +remove.py 删除文件 + +send_email.py 发送邮件 + +sftp.py ssh远程下载文件 + +pgsql.py 对postgresql 增删改查操作 + +readconfig 针对读取配置文件 + +jwt_encrypt 生成jwt Access Token 加密及解密 + +convert_json 支持json和object之间转换 + +Abstract.py 抽象类模型 + +decorator.py 惰性属性装饰器 + +BingDwenDwen.py 冰墩墩 +``` + + + + +%package help +Summary: Development documents and examples for eric-tools +Provides: python3-eric-tools-doc +%description help +# Tools +[](https://opensource.org/licenses/Apache-2.0) + + + +[Redis](https://eric-jxl.github.io) + + +##### Project management of Python daily tools +```shell +pip install eric_tools +``` +``` +https://pypi.org/project/eric_tools/ +``` +``` +encryption_classmethod.py Python HMAC+MD5加密签名算法 + +exception_class.py 异常类 + +resize_image.py 图片压缩 + +ip.py ip地址定位API + +logger.py 日志模块类和高级日志装饰器 + +remove.py 删除文件 + +send_email.py 发送邮件 + +sftp.py ssh远程下载文件 + +pgsql.py 对postgresql 增删改查操作 + +readconfig 针对读取配置文件 + +jwt_encrypt 生成jwt Access Token 加密及解密 + +convert_json 支持json和object之间转换 + +Abstract.py 抽象类模型 + +decorator.py 惰性属性装饰器 + +BingDwenDwen.py 冰墩墩 +``` + + + + +%prep +%autosetup -n eric-tools-1.2.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-eric-tools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.5-1 +- Package Spec generated @@ -0,0 +1 @@ +812f597f4abcbefb091e86aa16e9d0e4 eric_tools-1.2.5.tar.gz |
