summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 13:45:18 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 13:45:18 +0000
commit7dbf7da076c8696a210584af9424ae313467900e (patch)
treef0dd01b6d7d393ecf1223074500f42a32f7fe6cc
parent273dc8a72a78fb328d83fabb678f733250ee780d (diff)
automatic import of python-pyxlsb
-rw-r--r--.gitignore1
-rw-r--r--python-pyxlsb.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ca15eb6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyxlsb-1.0.10.tar.gz
diff --git a/python-pyxlsb.spec b/python-pyxlsb.spec
new file mode 100644
index 0000000..e3f3158
--- /dev/null
+++ b/python-pyxlsb.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyxlsb
+Version: 1.0.10
+Release: 1
+Summary: Excel 2007-2010 Binary Workbook (xlsb) parser
+License: LGPLv3+
+URL: https://github.com/willtrnr/pyxlsb
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3f/13/eebaeb7a40b062d1c6f7f91d09e73d30a69e33e4baa7cbe4b7658548b1cd/pyxlsb-1.0.10.tar.gz
+BuildArch: noarch
+
+
+%description
+|PyPI|
+``pyxlsb`` is an Excel 2007-2010 Binary Workbook (xlsb) parser for
+Python. The library is currently extremely limited, but functional
+enough for basic data extraction.
+
+%package -n python3-pyxlsb
+Summary: Excel 2007-2010 Binary Workbook (xlsb) parser
+Provides: python-pyxlsb
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyxlsb
+|PyPI|
+``pyxlsb`` is an Excel 2007-2010 Binary Workbook (xlsb) parser for
+Python. The library is currently extremely limited, but functional
+enough for basic data extraction.
+
+%package help
+Summary: Development documents and examples for pyxlsb
+Provides: python3-pyxlsb-doc
+%description help
+|PyPI|
+``pyxlsb`` is an Excel 2007-2010 Binary Workbook (xlsb) parser for
+Python. The library is currently extremely limited, but functional
+enough for basic data extraction.
+
+%prep
+%autosetup -n pyxlsb-1.0.10
+
+%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-pyxlsb -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.10-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..1b90bc8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e5d1117c2c5fffc9fdc872f0b7ea18a1 pyxlsb-1.0.10.tar.gz