summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 04:44:27 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 04:44:27 +0000
commite33b9a1becd4582feb018de09bd910db576321f9 (patch)
tree54a9c5c3571323be903bfb39b3c20a4a0893a7e6
parent059b9fa67a18ec4acc8cb066f0be1062f88bba1c (diff)
automatic import of python-birdy
-rw-r--r--.gitignore1
-rw-r--r--python-birdy.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9015cb0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/birdy-0.3.2.tar.gz
diff --git a/python-birdy.spec b/python-birdy.spec
new file mode 100644
index 0000000..0ccc766
--- /dev/null
+++ b/python-birdy.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-birdy
+Version: 0.3.2
+Release: 1
+Summary: birdy is a super awesome Twitter API client for Python.
+License: MIT
+URL: https://github.com/inueni/birdy/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cc/30/3f825b8d4248ebd9de9d218ba4b931c93be664e077c328c4b6dd19eb9d8a/birdy-0.3.2.tar.gz
+BuildArch: noarch
+
+
+%description
+``birdy`` is a super awesome Twitter API client for Python in just a
+little under 400 LOC.
+
+%package -n python3-birdy
+Summary: birdy is a super awesome Twitter API client for Python.
+Provides: python-birdy
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-birdy
+``birdy`` is a super awesome Twitter API client for Python in just a
+little under 400 LOC.
+
+%package help
+Summary: Development documents and examples for birdy
+Provides: python3-birdy-doc
+%description help
+``birdy`` is a super awesome Twitter API client for Python in just a
+little under 400 LOC.
+
+%prep
+%autosetup -n birdy-0.3.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-birdy -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..1b73f1d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8634e3153b06f173695901fc5249480b birdy-0.3.2.tar.gz