diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 19:43:23 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 19:43:23 +0000 |
| commit | df11e33f142e9ce58bcda66b712aa75e4e5c40a3 (patch) | |
| tree | b9a351ca1968c169719c45ddafee3488a7c6501a | |
| parent | e3d6d8eaee6c57af6255f58258bb0bf7b7426fff (diff) | |
automatic import of python-cdk8s-redis
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-cdk8s-redis.spec | 191 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 193 insertions, 0 deletions
@@ -0,0 +1 @@ +/cdk8s-redis-0.1.580.tar.gz diff --git a/python-cdk8s-redis.spec b/python-cdk8s-redis.spec new file mode 100644 index 0000000..a406f5c --- /dev/null +++ b/python-cdk8s-redis.spec @@ -0,0 +1,191 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cdk8s-redis +Version: 0.1.580 +Release: 1 +Summary: Basic implementation of a Redis construct for cdk8s. +License: Apache-2.0 +URL: https://github.com/cdk8s-team/cdk8s-redis.git +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a8/12/aa2a98d5f13cc1d9c2b4150ffb5906b5fd065b04e52f7bab8a1fe5641426/cdk8s-redis-0.1.580.tar.gz +BuildArch: noarch + +Requires: python3-cdk8s +Requires: python3-constructs +Requires: python3-jsii +Requires: python3-publication +Requires: python3-typeguard + +%description +# cdk8s-redis + +> Redis constructs for cdk8s + +Basic implementation of a Redis construct for cdk8s. Contributions are welcome! + +## Usage + +The following will define a Redis cluster with a primary and 2 replicas: + +```python +import { Redis } from 'cdk8s-redis'; + +// inside your chart: +const redis = new Redis(this, 'my-redis'); +``` + +DNS names can be obtained from `redis.primaryHost` and `redis.replicaHost`. + +You can specify how many replicas to define: + +```python +new Redis(this, 'my-redis', { + replicas: 4 +}); +``` + +Or, you can specify no replicas: + +```python +new Redis(this, 'my-redis', { + replicas: 0 +}); +``` + +## License + +Distributed under the [Apache 2.0](./LICENSE) license. + + +%package -n python3-cdk8s-redis +Summary: Basic implementation of a Redis construct for cdk8s. +Provides: python-cdk8s-redis +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cdk8s-redis +# cdk8s-redis + +> Redis constructs for cdk8s + +Basic implementation of a Redis construct for cdk8s. Contributions are welcome! + +## Usage + +The following will define a Redis cluster with a primary and 2 replicas: + +```python +import { Redis } from 'cdk8s-redis'; + +// inside your chart: +const redis = new Redis(this, 'my-redis'); +``` + +DNS names can be obtained from `redis.primaryHost` and `redis.replicaHost`. + +You can specify how many replicas to define: + +```python +new Redis(this, 'my-redis', { + replicas: 4 +}); +``` + +Or, you can specify no replicas: + +```python +new Redis(this, 'my-redis', { + replicas: 0 +}); +``` + +## License + +Distributed under the [Apache 2.0](./LICENSE) license. + + +%package help +Summary: Development documents and examples for cdk8s-redis +Provides: python3-cdk8s-redis-doc +%description help +# cdk8s-redis + +> Redis constructs for cdk8s + +Basic implementation of a Redis construct for cdk8s. Contributions are welcome! + +## Usage + +The following will define a Redis cluster with a primary and 2 replicas: + +```python +import { Redis } from 'cdk8s-redis'; + +// inside your chart: +const redis = new Redis(this, 'my-redis'); +``` + +DNS names can be obtained from `redis.primaryHost` and `redis.replicaHost`. + +You can specify how many replicas to define: + +```python +new Redis(this, 'my-redis', { + replicas: 4 +}); +``` + +Or, you can specify no replicas: + +```python +new Redis(this, 'my-redis', { + replicas: 0 +}); +``` + +## License + +Distributed under the [Apache 2.0](./LICENSE) license. + + +%prep +%autosetup -n cdk8s-redis-0.1.580 + +%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-cdk8s-redis -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.580-1 +- Package Spec generated @@ -0,0 +1 @@ +d4e4faeed06b827eca354f8c59367b76 cdk8s-redis-0.1.580.tar.gz |
