summaryrefslogtreecommitdiff
path: root/python-duckduckpy.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-duckduckpy.spec')
-rw-r--r--python-duckduckpy.spec81
1 files changed, 81 insertions, 0 deletions
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