summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 11:59:55 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 11:59:55 +0000
commit70b1c1d8df02bcef6fcead0e7fb541d3f79fee43 (patch)
tree2f20a056d8bf45276c1faa6166c8f4ed932b9be4
parent5aa75f52d557885132d8e92f10662c74a84c7f29 (diff)
automatic import of python-django-codemirror-widgetopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-django-codemirror-widget.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..805dcbc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-codemirror-widget-0.5.0.tar.gz
diff --git a/python-django-codemirror-widget.spec b/python-django-codemirror-widget.spec
new file mode 100644
index 0000000..1ea6cf6
--- /dev/null
+++ b/python-django-codemirror-widget.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-codemirror-widget
+Version: 0.5.0
+Release: 1
+Summary: Django form widget library for using CodeMirror on textarea
+License: MIT
+URL: https://github.com/lambdalisue/django-codemirror-widget
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/36/c4/cbb7865507104470fae886fb868a65e09a4345d30e60b47149e256f0f956/django-codemirror-widget-0.5.0.tar.gz
+BuildArch: noarch
+
+
+%description
+`Django <https://www.djangoproject.com>`_ form widget library for using `CodeMirror <http://codemirror.net/>`_ on ``Textarea``.
+
+%package -n python3-django-codemirror-widget
+Summary: Django form widget library for using CodeMirror on textarea
+Provides: python-django-codemirror-widget
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-codemirror-widget
+`Django <https://www.djangoproject.com>`_ form widget library for using `CodeMirror <http://codemirror.net/>`_ on ``Textarea``.
+
+%package help
+Summary: Development documents and examples for django-codemirror-widget
+Provides: python3-django-codemirror-widget-doc
+%description help
+`Django <https://www.djangoproject.com>`_ form widget library for using `CodeMirror <http://codemirror.net/>`_ on ``Textarea``.
+
+%prep
+%autosetup -n django-codemirror-widget-0.5.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-codemirror-widget -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..cc14df6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+bc948b6ce21e4d7354147acc7865724a django-codemirror-widget-0.5.0.tar.gz