summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 00:39:48 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 00:39:48 +0000
commit874d20aa4be7e3b3b3278817d3b34ed9623c069e (patch)
tree10ec2995493c41bb3eba436bd59171c104426493
parentbbd5c94bc46844acb6745940ea976044fbce88e2 (diff)
automatic import of python-baseball
-rw-r--r--.gitignore1
-rw-r--r--python-baseball.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..bfb30c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/baseball-16.12.tar.gz
diff --git a/python-baseball.spec b/python-baseball.spec
new file mode 100644
index 0000000..78e8fa9
--- /dev/null
+++ b/python-baseball.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-baseball
+Version: 16.12
+Release: 1
+Summary: Library to download, anaylyze, and visualize events in Major League Baseball games.
+License: MIT
+URL: https://github.com/benjamincrom/baseball
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fe/d8/516b59fbb8de21fa98e065cd82c3829947aa612ed45163cf02f3aa4d5464/baseball-16.12.tar.gz
+BuildArch: noarch
+
+Requires: python3-dateutil
+Requires: python3-pytz
+Requires: python3-requests
+
+%description
+
+
+%package -n python3-baseball
+Summary: Library to download, anaylyze, and visualize events in Major League Baseball games.
+Provides: python-baseball
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-baseball
+
+
+%package help
+Summary: Development documents and examples for baseball
+Provides: python3-baseball-doc
+%description help
+
+
+%prep
+%autosetup -n baseball-16.12
+
+%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-baseball -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 16.12-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f26875a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+bc75068435920aa6da8d7b18ba455e31 baseball-16.12.tar.gz