2012-03-20 10:32:21 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-django-picklefield
|
|
|
|
|
#
|
2024-04-03 02:58:50 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2012-03-20 10:32:21 +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.
|
2012-05-08 04:47:54 +00:00
|
|
|
|
2018-12-11 14:49:49 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-03-20 10:32:21 +00:00
|
|
|
#
|
|
|
|
|
|
2013-06-19 14:36:07 +00:00
|
|
|
|
2023-06-26 10:22:05 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2024-04-03 02:58:50 +00:00
|
|
|
%define upstream_version 3.1
|
2012-03-20 10:32:21 +00:00
|
|
|
Name: python-django-picklefield
|
2023-01-04 14:14:09 +00:00
|
|
|
Version: 3.1.0
|
2012-03-20 10:32:21 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Pickled object field for Django
|
|
|
|
|
License: MIT
|
2020-02-20 08:38:09 +00:00
|
|
|
URL: https://github.com/gintas/django-picklefield
|
2018-12-11 14:49:49 +00:00
|
|
|
Source: https://github.com/gintas/django-picklefield/archive/v%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module Django >= 1.11}
|
2024-04-03 02:58:50 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-09-04 10:32:57 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-04-03 02:58:50 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
BuildRequires: fdupes
|
2017-09-04 10:32:57 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-11 14:49:49 +00:00
|
|
|
Requires: python-Django >= 1.11
|
2017-09-04 10:32:57 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
2012-03-20 10:32:21 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
django-picklefield provides an implementation of a pickled object field.
|
|
|
|
|
Such fields can contain any picklable objects.
|
|
|
|
|
|
|
|
|
|
The implementation is taken and adopted from Django snippet #1694
|
|
|
|
|
<http://www.djangosnippets.org/snippets/1694/> by Taavi Taijala, which is in
|
|
|
|
|
turn based on Django snippet #513 <http://www.djangosnippets.org/snippets/513/>
|
|
|
|
|
by Oliver Beattie.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n django-picklefield-%{version}
|
2021-07-24 02:34:54 +00:00
|
|
|
echo 'DEFAULT_AUTO_FIELD="django.db.models.AutoField"' >> tests/settings.py
|
2012-03-20 10:32:21 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-04-03 02:58:50 +00:00
|
|
|
%pyproject_wheel
|
2012-03-20 10:32:21 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-04-03 02:58:50 +00:00
|
|
|
%pyproject_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-09-04 10:32:57 +00:00
|
|
|
|
|
|
|
|
%check
|
2018-12-11 14:49:49 +00:00
|
|
|
%python_exec -m django test -v2 --settings=tests.settings
|
2012-03-20 10:32:21 +00:00
|
|
|
|
2017-09-04 10:32:57 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
2024-04-03 02:58:50 +00:00
|
|
|
%{python_sitelib}/picklefield
|
|
|
|
|
%{python_sitelib}/django_picklefield-%{upstream_version}.dist-info
|
2012-03-20 10:32:21 +00:00
|
|
|
|
|
|
|
|
%changelog
|