summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 06:00:44 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 06:00:44 +0000
commit32dd5781270407a13574bbb8bc2a663000a5fa53 (patch)
tree614afddd2a8f70a3aba6ff6ca1b44965b6dcd16c
parent6a923826fc90cf7f66b63923ed7762b1e1b8dc0a (diff)
automatic import of python-django-enforce-host
-rw-r--r--.gitignore1
-rw-r--r--python-django-enforce-host.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8f6cb11 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-enforce-host-1.1.0.tar.gz
diff --git a/python-django-enforce-host.spec b/python-django-enforce-host.spec
new file mode 100644
index 0000000..9d6103b
--- /dev/null
+++ b/python-django-enforce-host.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-enforce-host
+Version: 1.1.0
+Release: 1
+Summary: Middleware to redirect requests to a canonical hostname
+License: BSD
+URL: https://github.com/dabapps/django-enforce-host
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a0/e3/eb3884ad23ac76b2ccbe9fc19a3cae657675791f600fb8506300292852a0/django-enforce-host-1.1.0.tar.gz
+BuildArch: noarch
+
+
+%description
+Middleware to redirect requests to a canonical hostname
+
+
+
+
+%package -n python3-django-enforce-host
+Summary: Middleware to redirect requests to a canonical hostname
+Provides: python-django-enforce-host
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-enforce-host
+Middleware to redirect requests to a canonical hostname
+
+
+
+
+%package help
+Summary: Development documents and examples for django-enforce-host
+Provides: python3-django-enforce-host-doc
+%description help
+Middleware to redirect requests to a canonical hostname
+
+
+
+
+%prep
+%autosetup -n django-enforce-host-1.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-enforce-host -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..1b8a178
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+501bad5022023e0b98c2c87231b1871b django-enforce-host-1.1.0.tar.gz