summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 03:46:37 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 03:46:37 +0000
commit8057a0ce58405d6a954f6e887c2c42453eac3a2b (patch)
treeb0da7d21a03b5c0033681f1b619b7a1fa62d3015
parentc2c6ca23aaa8c8f136b370f2b43e9c6d2cf31249 (diff)
automatic import of python-django-etcopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-django-etc.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c22c1bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-etc-1.4.0.tar.gz
diff --git a/python-django-etc.spec b/python-django-etc.spec
new file mode 100644
index 0000000..a977549
--- /dev/null
+++ b/python-django-etc.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-etc
+Version: 1.4.0
+Release: 1
+Summary: Tiny stuff for Django that won't fit into separate apps.
+License: BSD 3-Clause License
+URL: https://github.com/idlesign/django-etc
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7d/3b/c164f4edd0aa3f5026e15aaa982771c506c2d473bbee97bbf1b7e90aefc0/django-etc-1.4.0.tar.gz
+BuildArch: noarch
+
+
+%description
+https://github.com/idlesign/django-etc
+
+%package -n python3-django-etc
+Summary: Tiny stuff for Django that won't fit into separate apps.
+Provides: python-django-etc
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-etc
+https://github.com/idlesign/django-etc
+
+%package help
+Summary: Development documents and examples for django-etc
+Provides: python3-django-etc-doc
+%description help
+https://github.com/idlesign/django-etc
+
+%prep
+%autosetup -n django-etc-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-django-etc -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..a0eb699
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7326ecff306fd1020691f00d5f892b3a django-etc-1.4.0.tar.gz