diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:04:01 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:04:01 +0000 |
commit | be2176b1e52c595325d68b24c7631415b9a57807 (patch) | |
tree | d8ee5a3b6fc68e6e788ee70221c0157963ffa14e | |
parent | 5b1f0498d2b80d224d086eca1d238caf591f469e (diff) |
automatic import of python-pyyaml
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyyaml.spec | 110 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 112 insertions, 0 deletions
@@ -0,0 +1 @@ +/PyYAML-6.0.tar.gz diff --git a/python-pyyaml.spec b/python-pyyaml.spec new file mode 100644 index 0000000..a23cd3a --- /dev/null +++ b/python-pyyaml.spec @@ -0,0 +1,110 @@ +%global _empty_manifest_terminate_build 0 +Name: python-PyYAML +Version: 6.0 +Release: 1 +Summary: YAML parser and emitter for Python +License: MIT +URL: https://pyyaml.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz + + +%description +YAML is a data serialization format designed for human readability +and interaction with scripting languages. PyYAML is a YAML parser +and emitter for Python. + +PyYAML features a complete YAML 1.1 parser, Unicode support, pickle +support, capable extension API, and sensible error messages. PyYAML +supports standard YAML tags and provides Python-specific tags that +allow to represent an arbitrary Python object. + +PyYAML is applicable for a broad range of tasks from complex +configuration files to object serialization and persistence. + + + +%package -n python3-PyYAML +Summary: YAML parser and emitter for Python +Provides: python-PyYAML +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-PyYAML +YAML is a data serialization format designed for human readability +and interaction with scripting languages. PyYAML is a YAML parser +and emitter for Python. + +PyYAML features a complete YAML 1.1 parser, Unicode support, pickle +support, capable extension API, and sensible error messages. PyYAML +supports standard YAML tags and provides Python-specific tags that +allow to represent an arbitrary Python object. + +PyYAML is applicable for a broad range of tasks from complex +configuration files to object serialization and persistence. + + + +%package help +Summary: Development documents and examples for PyYAML +Provides: python3-PyYAML-doc +%description help +YAML is a data serialization format designed for human readability +and interaction with scripting languages. PyYAML is a YAML parser +and emitter for Python. + +PyYAML features a complete YAML 1.1 parser, Unicode support, pickle +support, capable extension API, and sensible error messages. PyYAML +supports standard YAML tags and provides Python-specific tags that +allow to represent an arbitrary Python object. + +PyYAML is applicable for a broad range of tasks from complex +configuration files to object serialization and persistence. + + + +%prep +%autosetup -n PyYAML-6.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-PyYAML -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 6.0-1 +- Package Spec generated @@ -0,0 +1 @@ +1d19c798f25e58e3e582f0f8c977dbb8 PyYAML-6.0.tar.gz |