From 2833305f951c2c051c07cf13b87997c25d399758 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 08:55:10 +0000 Subject: automatic import of python-urban-async --- .gitignore | 1 + python-urban-async.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 83 insertions(+) create mode 100644 python-urban-async.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..8e0f693 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/urban-async-0.1.7.tar.gz diff --git a/python-urban-async.spec b/python-urban-async.spec new file mode 100644 index 0000000..5d846f0 --- /dev/null +++ b/python-urban-async.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-urban-async +Version: 0.1.7 +Release: 1 +Summary: An async Python API wrapper for Urban Dictionary +License: MIT +URL: https://github.com/kwugfighter/urbanasync +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b1/e5/66720171ccde272d5ce1ec01785938c9f0e2a33fcacc11d5390965c1b272/urban-async-0.1.7.tar.gz +BuildArch: noarch + + +%description +An async Python API wrapper for Urban Dictionary + + + + +%package -n python3-urban-async +Summary: An async Python API wrapper for Urban Dictionary +Provides: python-urban-async +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-urban-async +An async Python API wrapper for Urban Dictionary + + + + +%package help +Summary: Development documents and examples for urban-async +Provides: python3-urban-async-doc +%description help +An async Python API wrapper for Urban Dictionary + + + + +%prep +%autosetup -n urban-async-0.1.7 + +%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-urban-async -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 0.1.7-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..d45b0f3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +31212c756f7d9cec6fa98613234bc59d urban-async-0.1.7.tar.gz -- cgit v1.2.3