diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 03:44:38 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 03:44:38 +0000 |
commit | 2baffb3179fff75faa9b6d2a1b80e63ab6c10b54 (patch) | |
tree | f97107779edc0cb9e86c966498d3feb755dad2d0 | |
parent | cf23d19b0394d7ccf1be43c7ff17e7f45c913050 (diff) |
automatic import of python-yaml-utilitiesopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-yaml-utilities.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/yaml_utilities-0.1.tar.gz diff --git a/python-yaml-utilities.spec b/python-yaml-utilities.spec new file mode 100644 index 0000000..08fa10a --- /dev/null +++ b/python-yaml-utilities.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-yaml-utilities +Version: 0.1 +Release: 1 +Summary: YAML utilities +License: MIT +URL: http://github.com/emayssat/yaml_utilities +Source0: https://mirrors.aliyun.com/pypi/web/packages/a5/c8/958dda5b88b68772c5992c82c873ab1e56a20132894e1d32d19ff6b51325/yaml_utilities-0.1.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-yaml-utilities +Summary: YAML utilities +Provides: python-yaml-utilities +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-yaml-utilities + + +%package help +Summary: Development documents and examples for yaml-utilities +Provides: python3-yaml-utilities-doc +%description help + + +%prep +%autosetup -n yaml_utilities-0.1 + +%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-yaml-utilities -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +40a88617756ed3e76de8da7c7a9666a0 yaml_utilities-0.1.tar.gz |