summaryrefslogtreecommitdiff
path: root/python-container-transform.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-container-transform.spec')
-rw-r--r--python-container-transform.spec99
1 files changed, 99 insertions, 0 deletions
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