diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:42:13 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:42:13 +0000 |
| commit | b8be8120743aec0ca0364021d17862701b4cf4ca (patch) | |
| tree | ffd8e8a3f36d8bc078e1da71f5603fe50f32b52d | |
| parent | 08d19b827cbc4895c9e830a9a962dfe858a81675 (diff) | |
automatic import of python-yelpapi
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-yelpapi.spec | 82 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 84 insertions, 0 deletions
@@ -0,0 +1 @@ +/yelpapi-2.5.0.tar.gz diff --git a/python-yelpapi.spec b/python-yelpapi.spec new file mode 100644 index 0000000..8d92a35 --- /dev/null +++ b/python-yelpapi.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: python-yelpapi +Version: 2.5.0 +Release: 1 +Summary: yelpapi is a pure Python implementation of the Yelp Fusion API. +License: BSD 3-Clause License +URL: https://github.com/lanl/yelpapi +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/33/24/1890fe93e50459677e40a40f54c35d00afc16235d04bc7b723cb1e315d6b/yelpapi-2.5.0.tar.gz +BuildArch: noarch + +Requires: python3-requests + +%description +yelpapi is a pure Python implementation of the `Yelp Fusion API <https://www.yelp.com/developers/documentation/v3/get_started>`_. It is simple, fast, and robust to any changes Yelp may make to the API in the future. + +For more information on yelpapi, visit the `GitHub project page <https://github.com/lanl/yelpapi>`_. + + +%package -n python3-yelpapi +Summary: yelpapi is a pure Python implementation of the Yelp Fusion API. +Provides: python-yelpapi +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-yelpapi +yelpapi is a pure Python implementation of the `Yelp Fusion API <https://www.yelp.com/developers/documentation/v3/get_started>`_. It is simple, fast, and robust to any changes Yelp may make to the API in the future. + +For more information on yelpapi, visit the `GitHub project page <https://github.com/lanl/yelpapi>`_. + + +%package help +Summary: Development documents and examples for yelpapi +Provides: python3-yelpapi-doc +%description help +yelpapi is a pure Python implementation of the `Yelp Fusion API <https://www.yelp.com/developers/documentation/v3/get_started>`_. It is simple, fast, and robust to any changes Yelp may make to the API in the future. + +For more information on yelpapi, visit the `GitHub project page <https://github.com/lanl/yelpapi>`_. + + +%prep +%autosetup -n yelpapi-2.5.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-yelpapi -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 2.5.0-1 +- Package Spec generated @@ -0,0 +1 @@ +3a865f16054a6782564bce554f111065 yelpapi-2.5.0.tar.gz |
