summaryrefslogtreecommitdiff
path: root/python-django-prettyjson.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-django-prettyjson.spec')
-rw-r--r--python-django-prettyjson.spec171
1 files changed, 171 insertions, 0 deletions
diff --git a/python-django-prettyjson.spec b/python-django-prettyjson.spec
new file mode 100644
index 0000000..0d2fc28
--- /dev/null
+++ b/python-django-prettyjson.spec
@@ -0,0 +1,171 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-prettyjson
+Version: 0.4.1
+Release: 1
+Summary: Enables pretty JSON viewer in Django forms, admin, or templates
+License: BSD
+URL: https://github.com/kevinmickey/django-prettyjson
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b0/92/fa6f4de06e85ad7b04cb26af98bac4b2d40beca0eea819e1c84f5fe145e9/django-prettyjson-0.4.1.tar.gz
+BuildArch: noarch
+
+
+%description
+0.1.0 (2016-05-28)
+++++++++++++++++++
+* First release.
+0.2.0 (2016-05-29)
+++++++++++++++++++
+* Switched to using standardjson for encoding objects
+* Added setup option for those with jquery already loaded
+0.2.1 (2016-07-01)
+++++++++++++++++++
+* Fixed manifest
+0.2.2 (2016-12-07)
+++++++++++++++++++
+* Added dependencies to setup.py
+0.3.0 (2017-05-23)
+++++++++++++++++++
+* Added "initial" option to show raw or parsed initial
+* Requires six
+0.3.1 (2018-04-01)
+++++++++++++++++++
+* Allows CSS control of parsed widget
+0.3.2 (2018-04-09)
+++++++++++++++++++
+* Fixes widget media order
+0.3.3 (2018-04-13)
+++++++++++++++++++
+* Fixes string passed as parameter
+0.4.0 (2018-04-30)
+++++++++++++++++++
+* Allows attrs in template tag
+* Fix JS for initial parsed with multiple widgets
+* Change parsed CSS height to max-height
+0.4.1 (2018-08-07)
+++++++++++++++++++
+* Fix widget for Django 2.1
+
+%package -n python3-django-prettyjson
+Summary: Enables pretty JSON viewer in Django forms, admin, or templates
+Provides: python-django-prettyjson
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-prettyjson
+0.1.0 (2016-05-28)
+++++++++++++++++++
+* First release.
+0.2.0 (2016-05-29)
+++++++++++++++++++
+* Switched to using standardjson for encoding objects
+* Added setup option for those with jquery already loaded
+0.2.1 (2016-07-01)
+++++++++++++++++++
+* Fixed manifest
+0.2.2 (2016-12-07)
+++++++++++++++++++
+* Added dependencies to setup.py
+0.3.0 (2017-05-23)
+++++++++++++++++++
+* Added "initial" option to show raw or parsed initial
+* Requires six
+0.3.1 (2018-04-01)
+++++++++++++++++++
+* Allows CSS control of parsed widget
+0.3.2 (2018-04-09)
+++++++++++++++++++
+* Fixes widget media order
+0.3.3 (2018-04-13)
+++++++++++++++++++
+* Fixes string passed as parameter
+0.4.0 (2018-04-30)
+++++++++++++++++++
+* Allows attrs in template tag
+* Fix JS for initial parsed with multiple widgets
+* Change parsed CSS height to max-height
+0.4.1 (2018-08-07)
+++++++++++++++++++
+* Fix widget for Django 2.1
+
+%package help
+Summary: Development documents and examples for django-prettyjson
+Provides: python3-django-prettyjson-doc
+%description help
+0.1.0 (2016-05-28)
+++++++++++++++++++
+* First release.
+0.2.0 (2016-05-29)
+++++++++++++++++++
+* Switched to using standardjson for encoding objects
+* Added setup option for those with jquery already loaded
+0.2.1 (2016-07-01)
+++++++++++++++++++
+* Fixed manifest
+0.2.2 (2016-12-07)
+++++++++++++++++++
+* Added dependencies to setup.py
+0.3.0 (2017-05-23)
+++++++++++++++++++
+* Added "initial" option to show raw or parsed initial
+* Requires six
+0.3.1 (2018-04-01)
+++++++++++++++++++
+* Allows CSS control of parsed widget
+0.3.2 (2018-04-09)
+++++++++++++++++++
+* Fixes widget media order
+0.3.3 (2018-04-13)
+++++++++++++++++++
+* Fixes string passed as parameter
+0.4.0 (2018-04-30)
+++++++++++++++++++
+* Allows attrs in template tag
+* Fix JS for initial parsed with multiple widgets
+* Change parsed CSS height to max-height
+0.4.1 (2018-08-07)
+++++++++++++++++++
+* Fix widget for Django 2.1
+
+%prep
+%autosetup -n django-prettyjson-0.4.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-prettyjson -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.1-1
+- Package Spec generated