summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 04:06:13 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 04:06:13 +0000
commitb3b44d58cb52f020f4277e25bda25296cecb3f10 (patch)
tree98f38579c747283dbc35a4f8851c79eb5ac8be04
parent8a8a629ed0af26c2047555e075e28417f125bc49 (diff)
automatic import of python-pyldmod
-rw-r--r--.gitignore1
-rw-r--r--python-pyldmod.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..37480d5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/PyLDmod-2.0.5.tar.gz
diff --git a/python-pyldmod.spec b/python-pyldmod.spec
new file mode 100644
index 0000000..1a0e146
--- /dev/null
+++ b/python-pyldmod.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-PyLDmod
+Version: 2.0.5
+Release: 1
+Summary: modified Python implementation of the JSON-LD API
+License: BSD 3-Clause license
+URL: https://github.com/digitalbazaar/pyld
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/88/61/ef8644ffccaaee289eee6dd97e952923b18d26cb7a75c29cef982e0bee07/PyLDmod-2.0.5.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-PyLDmod
+Summary: modified Python implementation of the JSON-LD API
+Provides: python-PyLDmod
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-PyLDmod
+
+
+%package help
+Summary: Development documents and examples for PyLDmod
+Provides: python3-PyLDmod-doc
+%description help
+
+
+%prep
+%autosetup -n PyLDmod-2.0.5
+
+%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-PyLDmod -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..db7ef23
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9f560a04d69f10125f05b8fa50d1c037 PyLDmod-2.0.5.tar.gz