summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 15:58:37 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 15:58:37 +0000
commitdc3c32cc94d0cda6354380a37531b4584dda5a29 (patch)
treefe3f0edb4107edbe697f2e5c97b6425a4bd0ee6c
parentcdc78b79c52c7e1dff3b1b1410ebbf07c80d302a (diff)
automatic import of python-fancycompleter
-rw-r--r--.gitignore1
-rw-r--r--python-fancycompleter.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0999a8c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fancycompleter-0.9.1.tar.gz
diff --git a/python-fancycompleter.spec b/python-fancycompleter.spec
new file mode 100644
index 0000000..22e335b
--- /dev/null
+++ b/python-fancycompleter.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-fancycompleter
+Version: 0.9.1
+Release: 1
+Summary: colorful TAB completion for Python prompt
+License: BSD
+URL: https://github.com/pdbpp/fancycompleter
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a9/95/649d135442d8ecf8af5c7e235550c628056423c96c4bc6787348bdae9248/fancycompleter-0.9.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-pyrepl
+Requires: python3-pyreadline
+
+%description
+
+
+%package -n python3-fancycompleter
+Summary: colorful TAB completion for Python prompt
+Provides: python-fancycompleter
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-fancycompleter
+
+
+%package help
+Summary: Development documents and examples for fancycompleter
+Provides: python3-fancycompleter-doc
+%description help
+
+
+%prep
+%autosetup -n fancycompleter-0.9.1
+
+%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-fancycompleter -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..c606f9f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+43a27912077813bd268809246b23fdc6 fancycompleter-0.9.1.tar.gz