Репозиторий Sisyphus
Последнее обновление: 17 октября 2019 | Пакетов: 17500 | Посещений: 15287212
en ru br
Репозитории ALT

Группа :: Разработка/Python
Пакет: python-module-dicttoxml

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

%define oname dicttoxml

%def_with python3

Name: python-module-%oname
Version: 1.5.8
Release: alt1.git20150106
Summary: Converts a Python dictionary or other native data type into a valid XML string
License: GPLv2
Group: Development/Python
Url: https://pypi.python.org/pypi/dicttoxml/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

# https://github.com/quandyfactory/dicttoxml.git

Source: %name-%version.tar
BuildArch: noarch

BuildPreReq: python-devel python-module-setuptools-tests
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-devel python3-module-setuptools-tests
%endif

%py_provides %oname

%description
Converts a Python dictionary or other native data type into a valid XML
string.

Supports item (int, float, long, bool, str, unicode, datetime, none) and
collection (list, set, tuple and dict, as well as iterable and dict-like
objects) data types, with arbitrary nesting for the collections. Items
with a datetime type are converted to ISO format strings. Items with a
none type become empty XML elements.

The root object passed into the dicttoxml method can be any of the
supported data types.

%package -n python3-module-%oname
Summary: Converts a Python dictionary or other native data type into a valid XML string
Group: Development/Python3
%py3_provides %oname

%description -n python3-module-%oname
Converts a Python dictionary or other native data type into a valid XML
string.

Supports item (int, float, long, bool, str, unicode, datetime, none) and
collection (list, set, tuple and dict, as well as iterable and dict-like
objects) data types, with arbitrary nesting for the collections. Items
with a datetime type are converted to ISO format strings. Items with a
none type become empty XML elements.

The root object passed into the dicttoxml method can be any of the
supported data types.

%prep
%setup

rm -fR dist

%if_with python3
cp -fR . ../python3
%endif

%build
%python_build_debug

%if_with python3
pushd ../python3
%python3_build_debug
popd
%endif

%install
%python_install

%if_with python3
pushd ../python3
%python3_install
popd
%endif

%files
%doc *.markdown
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc *.markdown
%python3_sitelibdir/*
%endif

%changelog

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

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