summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 03:54:39 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 03:54:39 +0000
commitb2b799190dc8875b870dc244cf78f416bf28da21 (patch)
tree36c7c80ad0b36c84e11e377ee02bc3bae116edeb
parent3c43164303ebc56fe86e3a86e5e0e95576d1c17b (diff)
automatic import of python-superjsonopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-superjson.spec83
-rw-r--r--sources1
3 files changed, 85 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..dbb124a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/superjson-1.0.2.tar.gz
diff --git a/python-superjson.spec b/python-superjson.spec
new file mode 100644
index 0000000..965fcb1
--- /dev/null
+++ b/python-superjson.spec
@@ -0,0 +1,83 @@
+%global _empty_manifest_terminate_build 0
+Name: python-superjson
+Version: 1.0.2
+Release: 1
+Summary: Extendable json encode/decode library.
+License: MIT
+URL: https://github.com/MacHu-GWU/superjson-project
+Source0: https://mirrors.aliyun.com/pypi/web/packages/78/ab/1f3dd362e369c7cc99cd5e88d3c77814b38f42e322f91aa9e756eb7fe3b4/superjson-1.0.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-sphinx
+Requires: python3-furo
+Requires: python3-sphinx-inline-tabs
+Requires: python3-sphinx-jinja
+Requires: python3-sphinx-copybutton
+Requires: python3-docfly
+Requires: python3-rstobj
+Requires: python3-Pygments
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-dateutil
+
+%description
+
+
+%package -n python3-superjson
+Summary: Extendable json encode/decode library.
+Provides: python-superjson
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-superjson
+
+
+%package help
+Summary: Development documents and examples for superjson
+Provides: python3-superjson-doc
+%description help
+
+
+%prep
+%autosetup -n superjson-1.0.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-superjson -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..3445d8b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+71456ac7274726ad1a23b6c2dcc751c9 superjson-1.0.2.tar.gz