2019-02-20 10:05:44 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-django-json-widget
|
|
|
|
|
#
|
2023-01-04 14:27:22 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-02-20 10:05:44 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2023-06-25 19:14:02 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-02-20 10:05:44 +00:00
|
|
|
Name: python-django-json-widget
|
2023-01-04 14:27:22 +00:00
|
|
|
Version: 1.1.1
|
2019-02-20 10:05:44 +00:00
|
|
|
Release: 0
|
2019-02-20 21:13:44 +00:00
|
|
|
Summary: Django JSON widget for editing the Django jsonfield
|
2019-02-20 10:05:44 +00:00
|
|
|
License: MIT
|
|
|
|
|
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
|
2023-09-05 04:10:04 +00:00
|
|
|
# PATCH-FIX-OPENSUSE We don't use Django < 3.1
|
|
|
|
|
Patch0: remove-future-requirement.patch
|
2019-02-20 10:05:44 +00:00
|
|
|
BuildRequires: %{python_module Django}
|
2023-09-05 04:10:04 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-02-20 10:05:44 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-09-05 04:10:04 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-02-20 10:05:44 +00:00
|
|
|
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
|
2023-09-05 04:10:04 +00:00
|
|
|
%autosetup -p1 -n django-json-widget-%{version}
|
2019-02-20 10:05:44 +00:00
|
|
|
chmod a-x django_json_widget/static/dist/img/*.* django_json_widget/static/dist/*.* django_json_widget/static/css/*.*
|
|
|
|
|
|
|
|
|
|
%build
|
2023-09-05 04:10:04 +00:00
|
|
|
%pyproject_wheel
|
2019-02-20 10:05:44 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-09-05 04:10:04 +00:00
|
|
|
%pyproject_install
|
2019-02-20 10:05:44 +00:00
|
|
|
%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
|
2023-09-05 04:10:04 +00:00
|
|
|
%{python_sitelib}/django_json_widget
|
|
|
|
|
%{python_sitelib}/django_json_widget-%{version}.dist-info
|
2019-02-20 10:05:44 +00:00
|
|
|
|
|
|
|
|
%changelog
|