Sisyphus repositório
Última atualização: 25 junho 2019 | SRPMs: 17673 | Visitas: 14177458
en ru br
ALT Linux repositórios
S:2.10.0-alt1

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname magnumclient
%def_with python3

Name:       python-module-%oname
Version:    2.5.0
Release:    alt1.1
Summary:    Client Library for OpenStack Magnum Container Management API
Group:      Development/Python
License:    ASL 2.0
Url: http://docs.openstack.org/developer/python-%oname
Source: https://tarballs.openstack.org/python-%oname/python-%oname-%version.tar.gz

BuildArch:  noarch


BuildRequires: python-devel
BuildRequires: python-module-setuptools
BuildRequires: python-module-pbr >= 1.8
BuildRequires: python-module-sphinx
BuildRequires: python-module-oslosphinx
BuildRequires: python-module-reno
BuildRequires: python-module-babel >= 2.3.4
BuildRequires: python-module-six >= 1.9.0
BuildRequires: python-module-keystoneauth1 >= 2.18.0
BuildRequires: python-module-stevedore >= 1.17.1
BuildRequires: python-module-requests >= 2.10.0
BuildRequires: python-module-oslo.i18n >= 2.1.0
BuildRequires: python-module-oslo.serialization >= 1.10.0
BuildRequires: python-module-oslo.utils >= 3.18.0
BuildRequires: python-module-os-client-config >= 1.22.0
BuildRequires: python-module-osc-lib >= 1.2.0 python-module-osc-lib-tests
BuildRequires: python-module-prettytable >= 0.7.1
BuildRequires: python-module-cryptography >= 1.0
BuildRequires: python-module-decorator >= 3.4.0

BuildRequires: python-module-oslo.log
BuildRequires: python-module-argparse
BuildRequires: python-module-mock
BuildRequires: python-module-subunit-tests
BuildRequires: python-module-openstackclient-tests

%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-pbr >= 1.8
BuildRequires: python3-module-six >= 1.9.0
BuildRequires: python3-module-keystoneauth1 >= 2.10.0
BuildRequires: python3-module-stevedore >= 1.17.1
BuildRequires: python3-module-requests >= 2.10.0
BuildRequires: python3-module-oslo.i18n >= 2.1.0
BuildRequires: python3-module-oslo.serialization >= 1.10.0
BuildRequires: python3-module-oslo.utils >= 3.18.0
BuildRequires: python3-module-os-client-config >= 1.22.0
BuildRequires: python3-module-osc-lib >= 1.2.0
BuildRequires: python3-module-prettytable >= 0.7.1
BuildRequires: python3-module-cryptography >= 1.0
BuildRequires: python3-module-decorator >= 3.4.0
%endif

%description
There is a Python library for accessing the API (magnumclient module),
and a command-line script (magnum).

%package tests
Summary: Tests for %oname
Group: Development/Python
Requires: %name = %EVR

%description tests
This package contains tests for %oname.

%package -n python3-module-%oname
Summary:    Client Library for OpenStack Magnum Container Management API
Group: Development/Python3

%description -n python3-module-%oname
Client library and command line utility for interacting with Openstack
Magnum API.

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

%description -n python3-module-%oname-tests
This package contains tests for %oname.

%package doc
Summary:    Documentation for OpenStack Magnum Container Management API
Group:  Development/Documentation

%description doc
Documentation for the client library for interacting with Openstack
Magnum Container Management API.

%prep
%setup -n python-%oname-%version

# Let RPM handle the dependencies

rm -f test-requirements.txt requirements.txt

# Remove bundled egg-info

rm -rf python_magnumclient.egg-info
# let RPM handle deps
sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py

%if_with python3
rm -rf ../python3
cp -a . ../python3
%endif

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

%install
%if_with python3
pushd ../python3
%python3_install
popd
mv %buildroot%_bindir/magnum %buildroot%_bindir/python3-magnum
%endif

%python_install


# Build HTML docs and man page

python setup.py build_sphinx

# Fix hidden-file-or-dir warnings

rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo

%files
%doc LICENSE README.rst
%_bindir/magnum
%python_sitelibdir/*
%exclude %python_sitelibdir/*/tests

%files tests
%python_sitelibdir/*/tests

%if_with python3
%files -n python3-module-%oname
%_bindir/python3-magnum
%python3_sitelibdir/*
%exclude %python3_sitelibdir/*/tests

%files -n python3-module-%oname-tests
%python3_sitelibdir/*/tests
%endif

%files doc
%doc LICENSE doc/build/html

%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