From a502f1e631e8429e26390bfaadd47f4561c4f91c Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 12:22:10 +0000 Subject: automatic import of python-duckduckpy --- .gitignore | 1 + python-duckduckpy.spec | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 83 insertions(+) create mode 100644 python-duckduckpy.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..fa749e3 100644 --- a/.gitignore +++ b/.gitignore @@ -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 `_ is a Python +library for querying `DuckDuckGo 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 `_ is a Python +library for querying `DuckDuckGo 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 `_ is a Python +library for querying `DuckDuckGo 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 - 0.2-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..69bdb95 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +09c5e41b1fb5550a4c336242683e4412 duckduckpy-0.2.tar.bz2 -- cgit v1.2.3