[packages/python-django-picklefield] - updated to 2.1.1 for django 1.11 (and 2.2)
qboosh
qboosh at pld-linux.org
Sun Dec 10 15:59:45 CET 2023
commit 6ce97109d202e7e17309dc7b7b603a52e3fba349
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 10 15:19:01 2023 +0100
- updated to 2.1.1 for django 1.11 (and 2.2)
python-django-picklefield.spec | 52 +++++++++++++++++++-----------------------
1 file changed, 24 insertions(+), 28 deletions(-)
---
diff --git a/python-django-picklefield.spec b/python-django-picklefield.spec
index 1e0f9aa..4c4c0bb 100644
--- a/python-django-picklefield.spec
+++ b/python-django-picklefield.spec
@@ -1,27 +1,25 @@
#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_with tests # unit tests (not included in sdist)
%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: 0.1.9
-Release: 2
+Version: 2.1.1
+Release: 1
License: MIT
-Group: Development/Languages
-URL: http://pypi.python.org/pypi/django-picklefield
-Source0: http://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5: 4c2bad7ccbd6981ce3515d2e5e23058b
-#BuildRequires: python-coverage
-#BuildRequires: python-devel
-#BuildRequires: python-django
-#BuildRequires: python-nose
-#BuildRequires: python-pyflakes
-#BuildRequires: python-setuptools
-#BuildRequires: python-sqlite
-BuildRequires: rpmbuild(macros) >= 1.710
-BuildRequires: sed >= 4.0
-Requires: python-django
+Group: Development/Languages/Python
+Source0: https://files.pythonhosted.org/packages/source/d/django-picklefield/%{module}-%{version}.tar.gz
+# Source0-md5: cbebe7750ba7b5744c8e1a6875a3ee7c
+URL: https://pypi.org/project/django-picklefield/
+BuildRequires: python-devel >= 1:2.7
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-django >= 1.11
+%endif
+BuildRequires: rpmbuild(macros) >= 1.714
+#BuildRequires: sed >= 4.0
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -29,31 +27,29 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
django-picklefield provides an implementation of a pickled object
field. Such fields can contain any picklable objects.
+%description -l pl.UTF-8
+django-picklefield dostarcza implementację pola obiektowego
+serializowalnego przez pickle. Pola takie mogą zawierać dowolne
+serializowalne obiekty.
+
%prep
%setup -q -n %{module}-%{version}
-%{__sed} -i -e 's/^from ez_setup/#from ez_setup/' setup.py
-%{__sed} -i -e 's/^use_setuptools()/#use_setuptools()/' setup.py
%build
%py_build
%install
rm -rf $RPM_BUILD_ROOT
-%py_install \
- --root $RPM_BUILD_ROOT
-%py_postclean
+%py_install
-rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
-rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
+%py_postclean
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README
+%doc LICENSE README.rst
%{py_sitescriptdir}/picklefield
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/django_picklefield-%{version}-*.egg-info/
-%endif
+%{py_sitescriptdir}/django_picklefield-%{version}-*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-django-picklefield.git/commitdiff/6ce97109d202e7e17309dc7b7b603a52e3fba349
More information about the pld-cvs-commit
mailing list