Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37650203
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-django-sortedm2m

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname django-sortedm2m

Name: python3-module-%oname
Version: 3.0.0
Release: alt1.1

Summary: Drop-in replacement for django's many to many field with sorted relations
License: BSD
Group: Development/Python3
Url: https://pypi.python.org/pypi/django-sortedm2m/
BuildArch: noarch

# https://github.com/gregmuellegger/django-sortedm2m.git

Source0: %name-%version.tar.gz

BuildRequires(pre): rpm-build-python3

%add_python3_self_prov_path %buildroot%python3_sitelibdir/sortedm2m/test_project


%description
sortedm2m is a drop-in replacement for django's own ManyToManyField. The
provided SortedManyToManyField behaves like the original one but
remembers the order of added relations.

%package tests
Summary: Tests for %name
Group: Development/Python3
Requires: python3-module-%oname = %EVR

%description tests
sortedm2m is a drop-in replacement for django's own ManyToManyField. The
provided SortedManyToManyField behaves like the original one but
remembers the order of added relations.

This package contains tests for %name.

%prep
%setup

sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
   $(find ./ -name '*.py')

%build
%python3_build_debug

%install
%python3_install

mv sortedm2m_tests/ test_project/ %buildroot%python3_sitelibdir/sortedm2m/

%files
%doc *.rst example/
%python3_sitelibdir/*
%exclude %python3_sitelibdir/sortedm2m/sortedm2m_tests
%exclude %python3_sitelibdir/sortedm2m/test_project

%files tests
%python3_sitelibdir/sortedm2m/sortedm2m_tests
%python3_sitelibdir/sortedm2m/test_project


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin