summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-patchwork-core.spec151
-rw-r--r--sources1
3 files changed, 153 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..def2949 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/patchwork-core-0.1.6.tar.gz
diff --git a/python-patchwork-core.spec b/python-patchwork-core.spec
new file mode 100644
index 0000000..bde79c5
--- /dev/null
+++ b/python-patchwork-core.spec
@@ -0,0 +1,151 @@
+%global _empty_manifest_terminate_build 0
+Name: python-patchwork-core
+Version: 0.1.6
+Release: 1
+Summary: Core of the Patchwork Framework - The distributed asynchronous microframework
+License: MIT License
+URL: https://pypi.org/project/patchwork-core/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b1/3b/0327a0a909ecbbaf9fc4b855acfe0865fe55ac257dc0b055f8d69a401e30/patchwork-core-0.1.6.tar.gz
+BuildArch: noarch
+
+Requires: python3-betterproto
+Requires: python3-google
+Requires: python3-pydantic
+Requires: python3-pytz
+
+%description
+# Patchwork Core
+
+Core package of Patchwork - an asynchronous distributed microframework.
+
+This library contains some core structures and utils to re-use over all Patchwork
+packages.
+
+
+## Requirements
+* Python 3.7
+
+## Contribution notes
+
+.. warning::
+ Remember to run `compile-protoc` script after every change in proto files from `protocol` directory.
+ Make sure that all these changes follow guidelines described in Google Protobuf v3 documentation.
+
+## Installation
+
+``pip install patchwork-core``
+
+## Documentation
+
+https://patchwork-framework.gitlab.io/core
+
+
+
+%package -n python3-patchwork-core
+Summary: Core of the Patchwork Framework - The distributed asynchronous microframework
+Provides: python-patchwork-core
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-patchwork-core
+# Patchwork Core
+
+Core package of Patchwork - an asynchronous distributed microframework.
+
+This library contains some core structures and utils to re-use over all Patchwork
+packages.
+
+
+## Requirements
+* Python 3.7
+
+## Contribution notes
+
+.. warning::
+ Remember to run `compile-protoc` script after every change in proto files from `protocol` directory.
+ Make sure that all these changes follow guidelines described in Google Protobuf v3 documentation.
+
+## Installation
+
+``pip install patchwork-core``
+
+## Documentation
+
+https://patchwork-framework.gitlab.io/core
+
+
+
+%package help
+Summary: Development documents and examples for patchwork-core
+Provides: python3-patchwork-core-doc
+%description help
+# Patchwork Core
+
+Core package of Patchwork - an asynchronous distributed microframework.
+
+This library contains some core structures and utils to re-use over all Patchwork
+packages.
+
+
+## Requirements
+* Python 3.7
+
+## Contribution notes
+
+.. warning::
+ Remember to run `compile-protoc` script after every change in proto files from `protocol` directory.
+ Make sure that all these changes follow guidelines described in Google Protobuf v3 documentation.
+
+## Installation
+
+``pip install patchwork-core``
+
+## Documentation
+
+https://patchwork-framework.gitlab.io/core
+
+
+
+%prep
+%autosetup -n patchwork-core-0.1.6
+
+%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-patchwork-core -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..586de6a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f8c2cab75deba4057d6c126f151897c0 patchwork-core-0.1.6.tar.gz