summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 04:08:16 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 04:08:16 +0000
commit1aa8bcdeed3ba47673772c0cfeb20440ac128850 (patch)
tree3c9c922d0624ce89369b171ab31ba5ffa4907fbe
parent9ff800c813be3bc6e82de85a7aafc89361f66d04 (diff)
automatic import of python-django-corsopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-django-cors.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f8717bd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-cors-0.1.tar.gz
diff --git a/python-django-cors.spec b/python-django-cors.spec
new file mode 100644
index 0000000..6eec11a
--- /dev/null
+++ b/python-django-cors.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-cors
+Version: 0.1
+Release: 1
+Summary: Django utilities for handling Cross-Origin Resource Sharing.
+License: UNKNOWN
+URL: https://github.com/elevenbasetwo/django-cors
+Source0: https://mirrors.aliyun.com/pypi/web/packages/b6/94/59b5353380df1aacd28e1efc1e77ce9925f65ef9adab6c44238daa9cefa3/django-cors-0.1.tar.gz
+BuildArch: noarch
+
+
+%description
+UNKNOWN
+
+%package -n python3-django-cors
+Summary: Django utilities for handling Cross-Origin Resource Sharing.
+Provides: python-django-cors
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-cors
+UNKNOWN
+
+%package help
+Summary: Development documents and examples for django-cors
+Provides: python3-django-cors-doc
+%description help
+UNKNOWN
+
+%prep
+%autosetup -n django-cors-0.1
+
+%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-cors -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..d06f629
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ac933056767841de6afb6412f9312a05 django-cors-0.1.tar.gz