summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 07:20:42 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 07:20:42 +0000
commitf1ef9551d1346734991f6ec8f61fc87354d221b9 (patch)
tree6cd90ede3cadaeff6fe358cd6f2a86b723c43e10
parent6c3e22a8eef2284cd8576298d3e439be2ff7bf7f (diff)
automatic import of python-invenio-drafts-resourcesopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-invenio-drafts-resources.spec82
-rw-r--r--sources1
3 files changed, 84 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b9656d5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/invenio-drafts-resources-1.4.0.tar.gz
diff --git a/python-invenio-drafts-resources.spec b/python-invenio-drafts-resources.spec
new file mode 100644
index 0000000..422769c
--- /dev/null
+++ b/python-invenio-drafts-resources.spec
@@ -0,0 +1,82 @@
+%global _empty_manifest_terminate_build 0
+Name: python-invenio-drafts-resources
+Version: 1.4.0
+Release: 1
+Summary: Invenio Drafts Resources module to create REST APIs
+License: MIT
+URL: https://github.com/inveniosoftware/Invenio-Drafts-Resources
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ad/0d/309bdc614601324462cc7832bbcf8da5e8e793c2c2302fc2e21193dddf03/invenio-drafts-resources-1.4.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-invenio-i18n
+Requires: python3-invenio-records-resources
+Requires: python3-invenio-search[elasticsearch7]
+Requires: python3-invenio-search[opensearch1]
+Requires: python3-invenio-search[opensearch2]
+Requires: python3-pytest-black
+Requires: python3-pytest-invenio
+Requires: python3-invenio-app
+Requires: python3-Sphinx
+Requires: python3-invenio-db[mysql,postgresql]
+
+%description
+
+
+%package -n python3-invenio-drafts-resources
+Summary: Invenio Drafts Resources module to create REST APIs
+Provides: python-invenio-drafts-resources
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-invenio-drafts-resources
+
+
+%package help
+Summary: Development documents and examples for invenio-drafts-resources
+Provides: python3-invenio-drafts-resources-doc
+%description help
+
+
+%prep
+%autosetup -n invenio-drafts-resources-1.4.0
+
+%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-invenio-drafts-resources -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..cca1b18
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2b82a10236c3e3340912b534d7f1dcfa invenio-drafts-resources-1.4.0.tar.gz