Sisyphus repositório
Última atualização: 20 agosto 2019 | SRPMs: 17342 | Visitas: 14672468
en ru br
ALT Linux repositórios
S:0.2.11-alt1.1

Group :: Desenvolvimento/Python
RPM: python-module-json_resource

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname json_resource

%def_with python3

Name: python-module-%oname
Version: 0.2.11
Release: alt1.1
Summary: JSON resources are dict, and list, etc. types
License: Free
Group: Development/Python
Url: https://pypi.python.org/pypi/json_resource/

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

BuildPreReq: python-modules-json
BuildPreReq: python-devel python-module-setuptools
BuildPreReq: python-module-json_pointer python-module-jsonschema
BuildPreReq: python-module-json_patch python-module-pymongo
BuildPreReq: python-module-behave
BuildPreReq: python-module-pytest
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-devel python3-module-setuptools
BuildPreReq: python3-module-json_pointer python3-module-jsonschema
BuildPreReq: python3-module-json_patch python3-module-pymongo
BuildPreReq: python3-module-behave
BuildPreReq: python-tools-2to3
BuildPreReq: python3-module-pytest
%endif

%py_provides %oname

%description
JSON resources are dict, and list, etc. types. They behave like oridnary
python dicts and lists, but have extra functionality from several json
standards.

%package -n python3-module-%oname
Summary: JSON resources are dict, and list, etc. types
Group: Development/Python3
%py3_provides %oname

%description -n python3-module-%oname
JSON resources are dict, and list, etc. types. They behave like oridnary
python dicts and lists, but have extra functionality from several json
standards.

%prep
%setup

%if_with python3
cp -fR . ../python3
find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' +
%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

%check
py.test json_resource/tests/test_instance.py json_resource/tests/test_resource.py
%if_with python3
pushd ../python3
py.test3 json_resource/tests/test_instance.py json_resource/tests/test_resource.py
popd
%endif

%files
%doc *.rst
%python_sitelibdir/*

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

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009