[packages/python3-django-picklefield] - python-django-picklefield.spec updated to 3.0.1 for python 3.5+/Django 2.2/3.0
qboosh
qboosh at pld-linux.org
Sun Dec 10 16:25:38 CET 2023
commit 84324409a1ea654c8405cb8efaf74fd6a8d22de7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 10 15:47:14 2023 +0100
- python-django-picklefield.spec updated to 3.0.1 for python 3.5+/Django 2.2/3.0
...lefield.spec => python3-django-picklefield.spec | 24 ++++++++++------------
1 file changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/python-django-picklefield.spec b/python3-django-picklefield.spec
similarity index 71%
rename from python-django-picklefield.spec
rename to python3-django-picklefield.spec
index 4c4c0bb..fb84337 100644
--- a/python-django-picklefield.spec
+++ b/python3-django-picklefield.spec
@@ -5,21 +5,21 @@
%define module django-picklefield
Summary: Pickled object field for Django
Summary(pl.UTF-8): Serializowalne przez pickle pole obiektowe dla Django
-Name: python-%{module}
-Version: 2.1.1
+Name: python3-%{module}
+# keep as compatible with python3-django.spec version (3.0.x support Django 2.2/3.0, 3.1.x supports Django 3.2/4.0)
+Version: 3.0.1
Release: 1
License: MIT
Group: Development/Languages/Python
Source0: https://files.pythonhosted.org/packages/source/d/django-picklefield/%{module}-%{version}.tar.gz
-# Source0-md5: cbebe7750ba7b5744c8e1a6875a3ee7c
+# Source0-md5: cedb9a5ba937b6d9a5b78989e81885ac
URL: https://pypi.org/project/django-picklefield/
-BuildRequires: python-devel >= 1:2.7
-BuildRequires: python-setuptools
+BuildRequires: python3-devel >= 1:3.5
+BuildRequires: python3-setuptools
%if %{with tests}
-BuildRequires: python-django >= 1.11
+BuildRequires: python3-django >= 2.2
%endif
BuildRequires: rpmbuild(macros) >= 1.714
-#BuildRequires: sed >= 4.0
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -36,14 +36,12 @@ serializowalne obiekty.
%setup -q -n %{module}-%{version}
%build
-%py_build
+%py3_build
%install
rm -rf $RPM_BUILD_ROOT
-%py_install
-
-%py_postclean
+%py3_install
%clean
rm -rf $RPM_BUILD_ROOT
@@ -51,5 +49,5 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc LICENSE README.rst
-%{py_sitescriptdir}/picklefield
-%{py_sitescriptdir}/django_picklefield-%{version}-*.egg-info
+%{py3_sitescriptdir}/picklefield
+%{py3_sitescriptdir}/django_picklefield-%{version}-*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-django-picklefield.git/commitdiff/84324409a1ea654c8405cb8efaf74fd6a8d22de7
More information about the pld-cvs-commit
mailing list