summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 07:21:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 07:21:12 +0000
commit899ba43f931f903e27ade9763986ebacd98f435c (patch)
treed7ceee4fd5802dc58309aa2c048f955e5c98743f
parentf815ff4d66e32e511b8d52c52604f619cace2fb1 (diff)
automatic import of python-container-transformopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-container-transform.spec99
-rw-r--r--sources1
3 files changed, 101 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1512f3f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/container-transform-1.1.5.tar.gz
diff --git a/python-container-transform.spec b/python-container-transform.spec
new file mode 100644
index 0000000..eb59b22
--- /dev/null
+++ b/python-container-transform.spec
@@ -0,0 +1,99 @@
+%global _empty_manifest_terminate_build 0
+Name: python-container-transform
+Version: 1.1.5
+Release: 1
+Summary: A converter for various docker cluster formats
+License: MIT
+URL: https://github.com/micahhausler/container-transform
+Source0: https://mirrors.aliyun.com/pypi/web/packages/a0/0a/edd6722e3bd7e5f374e52944070051b7f0c1d283c9177c53c2c252cbce2d/container-transform-1.1.5.tar.gz
+BuildArch: noarch
+
+
+%description
+container-transform is a small utility to transform various docker container
+formats to one another.
+Currently, container-transform can parse and convert:
+* Kubernetes Pod specs
+* ECS task definitions
+* Docker-compose configuration files
+* Marathon Application Definitions or Groups of Applications
+* Chronos Task Definitions
+and it can output to:
+* Systemd unit files
+
+%package -n python3-container-transform
+Summary: A converter for various docker cluster formats
+Provides: python-container-transform
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-container-transform
+container-transform is a small utility to transform various docker container
+formats to one another.
+Currently, container-transform can parse and convert:
+* Kubernetes Pod specs
+* ECS task definitions
+* Docker-compose configuration files
+* Marathon Application Definitions or Groups of Applications
+* Chronos Task Definitions
+and it can output to:
+* Systemd unit files
+
+%package help
+Summary: Development documents and examples for container-transform
+Provides: python3-container-transform-doc
+%description help
+container-transform is a small utility to transform various docker container
+formats to one another.
+Currently, container-transform can parse and convert:
+* Kubernetes Pod specs
+* ECS task definitions
+* Docker-compose configuration files
+* Marathon Application Definitions or Groups of Applications
+* Chronos Task Definitions
+and it can output to:
+* Systemd unit files
+
+%prep
+%autosetup -n container-transform-1.1.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-container-transform -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5eab6da
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5d94b1d4fc603a7e783222b94393fcf3 container-transform-1.1.5.tar.gz