summaryrefslogtreecommitdiff
path: root/python-tosca-parser.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 17:35:07 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 17:35:07 +0000
commit45c31d5247d090cf5822fd7902f2910697b50558 (patch)
treeb786a1c5a752db5637cc3a6c16b3826b84c72885 /python-tosca-parser.spec
parent33403a4ce3a3120432461f6aa2474e1d618875f5 (diff)
automatic import of python-tosca-parser
Diffstat (limited to 'python-tosca-parser.spec')
-rw-r--r--python-tosca-parser.spec78
1 files changed, 78 insertions, 0 deletions
diff --git a/python-tosca-parser.spec b/python-tosca-parser.spec
new file mode 100644
index 0000000..c218b6d
--- /dev/null
+++ b/python-tosca-parser.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-tosca-parser
+Version: 2.8.0
+Release: 1
+Summary: Parser for TOSCA Simple Profile in YAML.
+License: Apache Software License
+URL: https://docs.openstack.org/tosca-parser/latest/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e0/b1/49e25577902932b780f01875e226baadf7fa6bfab4f1b4eb8524df9d6864/tosca-parser-2.8.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-PyYAML
+Requires: python3-cliff
+Requires: python3-pbr
+Requires: python3-dateutil
+Requires: python3-requests
+Requires: python3-stevedore
+
+%description
+
+
+%package -n python3-tosca-parser
+Summary: Parser for TOSCA Simple Profile in YAML.
+Provides: python-tosca-parser
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-tosca-parser
+
+
+%package help
+Summary: Development documents and examples for tosca-parser
+Provides: python3-tosca-parser-doc
+%description help
+
+
+%prep
+%autosetup -n tosca-parser-2.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-tosca-parser -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 2.8.0-1
+- Package Spec generated