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

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

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

%define oname oauth2

%def_with python3

Name: python-module-%oname
Version: 1.5.211
Release: alt1
Summary: Library for OAuth version 1.0a (forked from python-oauth)

Group: Development/Python
License: MIT
Url: https://github.com/simplegeo/python-oauth2
Packager: Vitaly Kuznetsov <vitty at altlinux.ru>

Source: %name-%version.tar

BuildArch: noarch
BuildRequires: python-devel python-module-setuptools
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
BuildPreReq: python-tools-2to3
%endif

%description
python-oauth2 implements OAuth, which is an open protocol to allow API
authentication in a simple and standard method from desktop and web
applications. This was forked from python-oauth.

%package -n python3-module-%oname
Summary: Library for OAuth version 1.0a (forked from python-oauth)
Group: Development/Python3

%description -n python3-module-%oname
python-oauth2 implements OAuth, which is an open protocol to allow API
authentication in a simple and standard method from desktop and web
applications. This was forked from python-oauth.

%prep
%setup

%if_with python3
cp -fR . ../python3
find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' +
%endif

%build
%python_build

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

%install
%python_install
rm -rf %buildroot/%python_sitelibdir/tests

%if_with python3
pushd ../python3
%python3_install
popd
rm -rf %buildroot/%python3_sitelibdir/tests
%endif

%files
%doc LICENSE.txt README.md example/
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc LICENSE.txt README.md example/
%python3_sitelibdir/*
%endif

%changelog

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

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