diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 67c7ad48d4d42bd3d0bf48f13c129c5c6a933979..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# python-ZEO - -#### Description -ZEO - Single-server client-server database server for ZODB - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index cc757ad2ce61a8025c9d0e2a8a76b29b5305de62..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# python-ZEO - -#### 介绍 -ZEO - Single-server client-server database server for ZODB - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/ZEO-5.2.2.tar.gz b/ZEO-5.2.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7b4c01bd02c144b2bb3b31e8c602a69f53109236 Binary files /dev/null and b/ZEO-5.2.2.tar.gz differ diff --git a/python-ZEO.spec b/python-ZEO.spec new file mode 100644 index 0000000000000000000000000000000000000000..3555d294e28336f0bd4fa092dd8ba442e536141a --- /dev/null +++ b/python-ZEO.spec @@ -0,0 +1,80 @@ +%global srcname ZEO + +Name: python-%{srcname} +Version: 5.2.2 +Release: 1 +Summary: Client-server storage implementation for ZODB + +License: ZPLv2.1 +URL: http://www.zodb.org/ +Source0: %pypi_source +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(docutils) + +%global common_desc \ +ZEO is a client-server system for sharing a single storage among many \ +clients. When you use ZEO, the storage is opened in the ZEO server \ +process. Client programs connect to this process using a ZEO \ +ClientStorage. ZEO provides a consistent view of the database to all \ +clients. The ZEO client and server communicate using a custom RPC \ +protocol layered on top of TCP. + +%description +%{common_desc} + +%package -n python3-%{srcname} +Summary: Client-server storage implementation for ZODB + +%description -n python3-%{srcname} +%{common_desc} + +%prep +%autosetup -n %{srcname}-%{version} + +# Remove a version number that leads to an attempted download from pypi +sed -i 's/msgpack < 1/msgpack/' setup.py + +# Use mock from unittests +sed -i 's/import mock/from unittest &/' src/ZEO/asyncio/tests.py \ + src/ZEO/tests/test{ssl,ZEO,ZEOServer}.py +sed -i "/'mock'/d" setup.py + +%build +%py3_build + +# Convert documentation to HTML +rst2html --no-datestamp CHANGES.rst CHANGES.html +rst2html --no-datestamp README.rst README.html +rst2html --no-datestamp src/ZEO/asyncio/README.rst README-asyncio.html +rst2html --no-datestamp src/ZEO/nagios.rst nagios.html + +%install +%py3_install + +# Fix scripts +for script in $(grep -Rl '^#!' %{buildroot}%{python3_sitelib}/%{srcname}); do + sed 's,%{_bindir}/env python.*,%{_bindir}/python3,' $script > $script.new + touch -r $script $script.new + mv -f $script.new $script + chmod 0755 $script +done + +# Remove documentation files +rm %{buildroot}%{python3_sitelib}/%{srcname}/asyncio/README.rst +rm %{buildroot}%{python3_sitelib}/%{srcname}/nagios.rst + + +%files -n python3-%{srcname} +%doc CHANGES.html nagios.html README.html README-asyncio.html +%license COPYRIGHT.txt LICENSE.txt +%{_bindir}/runzeo +%{_bindir}/zeo-nagios +%{_bindir}/zeoctl +%{_bindir}/zeopack +%{python3_sitelib}/%{srcname}* + +%changelog +* Fri Jul 23 2021 zhang-yixuan0822 - 5.2.2-1 +- Initial RPM