summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 02:27:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 02:27:17 +0000
commit623fc81bddedf050394069fad29fcdd3965447f7 (patch)
tree9a91f53b18ca0606c4c13554a1ecc7f16f76c143
parente3514a03134bb44b2cb70d234c16e24816e3ec70 (diff)
automatic import of python-django-graphql-playground
-rw-r--r--.gitignore1
-rw-r--r--python-django-graphql-playground.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1f9f652 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-graphql-playground-1.0.tar.gz
diff --git a/python-django-graphql-playground.spec b/python-django-graphql-playground.spec
new file mode 100644
index 0000000..860c759
--- /dev/null
+++ b/python-django-graphql-playground.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-graphql-playground
+Version: 1.0
+Release: 1
+Summary: Apollo GraphQL Playground as a Django view
+License: MIT License
+URL: https://jaydenwindle.com/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/14/0b/ed6d9229d251a0736cb4f54e6cb8de257a4e47c62da8382ae0e6c0f2bb40/django-graphql-playground-1.0.tar.gz
+BuildArch: noarch
+
+
+%description
+# django-graphql-playground
+
+[Apollo GraphQL Playground](https://github.com/prisma/graphql-playground) as a Django view
+
+%package -n python3-django-graphql-playground
+Summary: Apollo GraphQL Playground as a Django view
+Provides: python-django-graphql-playground
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-graphql-playground
+# django-graphql-playground
+
+[Apollo GraphQL Playground](https://github.com/prisma/graphql-playground) as a Django view
+
+%package help
+Summary: Development documents and examples for django-graphql-playground
+Provides: python3-django-graphql-playground-doc
+%description help
+# django-graphql-playground
+
+[Apollo GraphQL Playground](https://github.com/prisma/graphql-playground) as a Django view
+
+%prep
+%autosetup -n django-graphql-playground-1.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-django-graphql-playground -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..52ac7db
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+23fdda63ad701336056adeefe1fa9a4f django-graphql-playground-1.0.tar.gz