summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-17 04:22:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-17 04:22:56 +0000
commite80a3689569273015e11000530821777a8e5f6f2 (patch)
tree0410d0adc9e30891ff3d3fe5062b33af6423a366
parent06c05cff0f0d5bb81db16244fca4d7c2eb1d5c3e (diff)
automatic import of python-django-json-field
-rw-r--r--.gitignore1
-rw-r--r--python-django-json-field.spec90
-rw-r--r--sources1
3 files changed, 92 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7d8ed3d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-json-field-0.5.7.tar.gz
diff --git a/python-django-json-field.spec b/python-django-json-field.spec
new file mode 100644
index 0000000..c560605
--- /dev/null
+++ b/python-django-json-field.spec
@@ -0,0 +1,90 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-json-field
+Version: 0.5.7
+Release: 1
+Summary: Generic JSON model and form fields.
+License: UNKNOWN
+URL: https://github.com/derek-schaefer/django-json-field
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5a/76/a1bdcc2ad9a82f731ce38c32640f371b234a0b79b1b1c578156f47b9de5e/django-json-field-0.5.7.tar.gz
+BuildArch: noarch
+
+
+%description
+``django-json-field`` contains a flexible JSONField and associated form field. The model field is not only capable of serializing common JSON data types (int, float, decimal, string, time, date, datetime, etc.) but also lazily deserializing them so they can be accessed and modified as normal Python objects within Django.
+A form field is also provided. It will accept serialized representations:
+ ``{"date": "2012-04-23T19:16:54.133", "num": "1.2399"}``
+And also provides safe access to the ``datetime`` module for explicit use:
+ ``{"date": datetime.datetime(2012, 4, 23, 19, 16, 54, 133000)}``
+While the JSON string will not be deserialized until it is accessed it can still be a performance concern, so you may find it valuable to disable the custom deserializer (``JSONField(decoder=None)``).
+``django-json-field`` is also compatible with South and Python 3.
+
+%package -n python3-django-json-field
+Summary: Generic JSON model and form fields.
+Provides: python-django-json-field
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-json-field
+``django-json-field`` contains a flexible JSONField and associated form field. The model field is not only capable of serializing common JSON data types (int, float, decimal, string, time, date, datetime, etc.) but also lazily deserializing them so they can be accessed and modified as normal Python objects within Django.
+A form field is also provided. It will accept serialized representations:
+ ``{"date": "2012-04-23T19:16:54.133", "num": "1.2399"}``
+And also provides safe access to the ``datetime`` module for explicit use:
+ ``{"date": datetime.datetime(2012, 4, 23, 19, 16, 54, 133000)}``
+While the JSON string will not be deserialized until it is accessed it can still be a performance concern, so you may find it valuable to disable the custom deserializer (``JSONField(decoder=None)``).
+``django-json-field`` is also compatible with South and Python 3.
+
+%package help
+Summary: Development documents and examples for django-json-field
+Provides: python3-django-json-field-doc
+%description help
+``django-json-field`` contains a flexible JSONField and associated form field. The model field is not only capable of serializing common JSON data types (int, float, decimal, string, time, date, datetime, etc.) but also lazily deserializing them so they can be accessed and modified as normal Python objects within Django.
+A form field is also provided. It will accept serialized representations:
+ ``{"date": "2012-04-23T19:16:54.133", "num": "1.2399"}``
+And also provides safe access to the ``datetime`` module for explicit use:
+ ``{"date": datetime.datetime(2012, 4, 23, 19, 16, 54, 133000)}``
+While the JSON string will not be deserialized until it is accessed it can still be a performance concern, so you may find it valuable to disable the custom deserializer (``JSONField(decoder=None)``).
+``django-json-field`` is also compatible with South and Python 3.
+
+%prep
+%autosetup -n django-json-field-0.5.7
+
+%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-json-field -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.7-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..977c4fc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a75ac07821fbba975a5ce0f8e4eadb53 django-json-field-0.5.7.tar.gz