summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 05:36:21 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 05:36:21 +0000
commitc0cb0c01390634265c2c434f83624f1b3f0b5125 (patch)
tree3f1e4254ebdbc71d06c8ce628a445083b1acb054
parent4ebb29a8e1d88d7cabe60ced0197fca25d9b26e4 (diff)
automatic import of python-travis2dockeropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-travis2docker.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..253d3f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/travis2docker-6.4.11.tar.gz
diff --git a/python-travis2docker.spec b/python-travis2docker.spec
new file mode 100644
index 0000000..f48b78a
--- /dev/null
+++ b/python-travis2docker.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+Name: python-travis2docker
+Version: 6.4.11
+Release: 1
+Summary: Script to generate Dockerfile from .travis.yml file
+License: BSD
+URL: https://github.com/vauxoo/travis2docker
+Source0: https://mirrors.aliyun.com/pypi/web/packages/10/d6/f8339434b75558e6ab3f7ab354e3ff8bd35141404e568b46660529ea680c/travis2docker-6.4.11.tar.gz
+BuildArch: noarch
+
+Requires: python3-PyYAML
+Requires: python3-Jinja2
+Requires: python3-PyYAML
+Requires: python3-Jinja2
+
+%description
+
+
+%package -n python3-travis2docker
+Summary: Script to generate Dockerfile from .travis.yml file
+Provides: python-travis2docker
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-travis2docker
+
+
+%package help
+Summary: Development documents and examples for travis2docker
+Provides: python3-travis2docker-doc
+%description help
+
+
+%prep
+%autosetup -n travis2docker-6.4.11
+
+%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-travis2docker -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 6.4.11-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f862416
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fd145049ad7ac30baa138c256de0c682 travis2docker-6.4.11.tar.gz