diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 04:37:32 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 04:37:32 +0000 |
commit | 4481264ce930247d49d4e2b991dc98a518020e1c (patch) | |
tree | 4eee8a776682e3098011c18700e025c6512044ab | |
parent | 7e065759105d657147f63b4300b59aef46d249f9 (diff) |
automatic import of python-Loli-wrapperopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-loli-wrapper.spec | 84 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 86 insertions, 0 deletions
@@ -0,0 +1 @@ +/Loli-wrapper-1.0.4.tar.gz diff --git a/python-loli-wrapper.spec b/python-loli-wrapper.spec new file mode 100644 index 0000000..cb72e1f --- /dev/null +++ b/python-loli-wrapper.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Loli-wrapper +Version: 1.0.4 +Release: 1 +Summary: Simple wrapper for loli api. +License: MIT License +URL: https://loli-api.ml +Source0: https://mirrors.aliyun.com/pypi/web/packages/58/77/f868e9a8a9fc834ab3874081df24edc0d6362e24c01bc81bdab341e617f6/Loli-wrapper-1.0.4.tar.gz +BuildArch: noarch + + +%description +```Python +from loli import LoliSync +loli = LoliSync() +print(loli.get_point('sfw', 'hug')) +``` + +%package -n python3-Loli-wrapper +Summary: Simple wrapper for loli api. +Provides: python-Loli-wrapper +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Loli-wrapper +```Python +from loli import LoliSync +loli = LoliSync() +print(loli.get_point('sfw', 'hug')) +``` + +%package help +Summary: Development documents and examples for Loli-wrapper +Provides: python3-Loli-wrapper-doc +%description help +```Python +from loli import LoliSync +loli = LoliSync() +print(loli.get_point('sfw', 'hug')) +``` + +%prep +%autosetup -n Loli-wrapper-1.0.4 + +%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-Loli-wrapper -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.4-1 +- Package Spec generated @@ -0,0 +1 @@ +01138f28b42fb699f7b332df95928d94 Loli-wrapper-1.0.4.tar.gz |