summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-09 04:47:43 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-09 04:47:43 +0000
commit3d1dcad8ffe517dbb3d8106cad96f5ce12884527 (patch)
tree9eb1b9e6d8eec8e28912fcf66e2ab19cd1dec0ca
parentdef410830461bbc93aff654cd45652e0136304d4 (diff)
automatic import of python-contentstackopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-contentstack.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..279a185 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Contentstack-1.8.0.tar.gz
diff --git a/python-contentstack.spec b/python-contentstack.spec
new file mode 100644
index 0000000..03f2bf0
--- /dev/null
+++ b/python-contentstack.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Contentstack
+Version: 1.8.0
+Release: 1
+Summary: Contentstack is a headless CMS with an API-first approach.
+License: MIT
+URL: https://github.com/contentstack/contentstack-python
+Source0: https://mirrors.aliyun.com/pypi/web/packages/56/30/eb034aca06df3a5b4d2f55154e4f6c78a9c89acfd43079142040a64c7fc6/Contentstack-1.8.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-dateutil
+
+%description
+
+
+%package -n python3-Contentstack
+Summary: Contentstack is a headless CMS with an API-first approach.
+Provides: python-Contentstack
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Contentstack
+
+
+%package help
+Summary: Development documents and examples for Contentstack
+Provides: python3-Contentstack-doc
+%description help
+
+
+%prep
+%autosetup -n Contentstack-1.8.0
+
+%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-Contentstack -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.8.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5f0397d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+caeb3121513126f488f0b118a5dba865 Contentstack-1.8.0.tar.gz