diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:22:10 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:22:10 +0000 |
commit | a502f1e631e8429e26390bfaadd47f4561c4f91c (patch) | |
tree | 9a5d6b5e32c19c0cdd7e230a71afe9cb1448ac8b | |
parent | 9db452393c536ee5a3d7e7cc6c01c7ff7dcfde14 (diff) |
automatic import of python-duckduckpyopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-duckduckpy.spec | 81 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +/duckduckpy-0.2.tar.bz2 diff --git a/python-duckduckpy.spec b/python-duckduckpy.spec new file mode 100644 index 0000000..55af1e4 --- /dev/null +++ b/python-duckduckpy.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-duckduckpy +Version: 0.2 +Release: 1 +Summary: Library for querying the instant answer API of DuckDuckGo search engine. +License: MIT +URL: https://github.com/ivankliuk/duckduckpy/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e0/7a/b186c3e372217edf3573844cdf5d9c22f11d147ec8d46f04982b40b4f4f1/duckduckpy-0.2.tar.bz2 +BuildArch: noarch + + +%description +|package| |travis-ci| |coveralls| +`DuckDuckPy <https://github.com/ivankliuk/duckduckpy>`_ is a Python +library for querying `DuckDuckGo API <https://api.duckduckgo.com/api>`_ and +render results either to Python dictionary or namedtuple. + +%package -n python3-duckduckpy +Summary: Library for querying the instant answer API of DuckDuckGo search engine. +Provides: python-duckduckpy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-duckduckpy +|package| |travis-ci| |coveralls| +`DuckDuckPy <https://github.com/ivankliuk/duckduckpy>`_ is a Python +library for querying `DuckDuckGo API <https://api.duckduckgo.com/api>`_ and +render results either to Python dictionary or namedtuple. + +%package help +Summary: Development documents and examples for duckduckpy +Provides: python3-duckduckpy-doc +%description help +|package| |travis-ci| |coveralls| +`DuckDuckPy <https://github.com/ivankliuk/duckduckpy>`_ is a Python +library for querying `DuckDuckGo API <https://api.duckduckgo.com/api>`_ and +render results either to Python dictionary or namedtuple. + +%prep +%autosetup -n duckduckpy-0.2 + +%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-duckduckpy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2-1 +- Package Spec generated @@ -0,0 +1 @@ +09c5e41b1fb5550a4c336242683e4412 duckduckpy-0.2.tar.bz2 |