commit 44242f8936b08080519ff4b0644b034eb756bd210205adf9c67f616260896db9 Author: Tomáš Chvátal Date: Wed Feb 20 10:05:44 2019 +0000 Accepting request 677648 from home:jayvdb:django - Initial spec for v0.2.0 OBS-URL: https://build.opensuse.org/request/show/677648 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-json-widget?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/django-json-widget-0.2.0.tar.gz b/django-json-widget-0.2.0.tar.gz new file mode 100644 index 0000000..38b33d1 --- /dev/null +++ b/django-json-widget-0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d2404ed3b8db2f3a4f6ad03741e4a6500e47feeaa9550b73df08e4b99d65433 +size 271173 diff --git a/python-django-json-widget.changes b/python-django-json-widget.changes new file mode 100644 index 0000000..2f3fd1b --- /dev/null +++ b/python-django-json-widget.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Feb 19 07:19:50 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.2.0 diff --git a/python-django-json-widget.spec b/python-django-json-widget.spec new file mode 100644 index 0000000..d7c235f --- /dev/null +++ b/python-django-json-widget.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-django-json-widget +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-django-json-widget +Version: 0.2.0 +Release: 0 +Summary: Django JSON widget allows editing the Django jsonfield +License: MIT +Group: Development/Languages/Python +URL: https://github.com/jmrivas86/django-json-widget +Source: https://github.com/jmrivas86/django-json-widget/archive/v%{version}.tar.gz#/django-json-widget-%{version}.tar.gz +BuildRequires: %{python_module Django} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Django +BuildArch: noarch +%python_subpackages + +%description +Django json widget is an alternative widget that makes it easy to edit the +jsonfield field of django. + +%prep +%setup -q -n django-json-widget-%{version} +chmod a-x django_json_widget/static/dist/img/*.* django_json_widget/static/dist/*.* django_json_widget/static/css/*.* + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export PYTHONPATH=. +%python_expand django-admin-%{$python_bin_suffix} test --settings=tests.settings + +%files %{python_files} +%doc AUTHORS.rst README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog