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

Группа :: Система/Основа
Пакет: ceph-deploy

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

%define modname ceph-deploy

Name: ceph-deploy
Version: 2.0.0
Release: alt1

Summary: Deploy Ceph with minimal infrastructure
Group: System/Base
License: MIT
Url: https://github.com/ceph/ceph-deploy
BuildArch: noarch

Source: %name-%version.tar
Patch: 0001-altlinux-distro-added.patch

BuildRequires(pre): rpm-build-python
BuildRequires: python-module-setuptools
BuildRequires: python-module-sphinx
BuildRequires: python-module-virtualenv
BuildRequires: python-module-remoto
BuildRequires: openssh-clients
BuildRequires: git

# Tox tests requirements

BuildRequires: python-module-pytest
BuildRequires: python-module-mock
BuildRequires: python-module-tox
BuildRequires: python-module-urlparse3

BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-module-setuptools
BuildPreReq: python3-module-virtualenv
BuildPreReq: python3-module-remoto

# Tox tests requirements

BuildPreReq: python3-module-pytest
BuildPreReq: python3-module-mock
BuildPreReq: python3-module-tox

Requires: python-module-%name = %EVR


%description
ceph-deploy is a way to deploy Ceph relying on just SSH access to the servers, sudo,
and some Python. It runs fully on your workstation, requiring no servers, databases,
or anything like that.

%package -n python-module-%name
Summary: Deploy Ceph with minimal infrastructure
Group: Development/Python
%py_requires remoto

%description -n python-module-%name
ceph-deploy is a way to deploy Ceph relying on just SSH access to the servers, sudo,
and some Python. It runs fully on your workstation, requiring no servers, databases,
or anything like that.

%package -n python3-module-%name
Summary: Deploy Ceph with minimal infrastructure
Group: Development/Python3
%py3_requires remoto
%add_python3_req_skip urlparse

%description -n python3-module-%name
ceph-deploy is a way to deploy Ceph relying on just SSH access to the servers, sudo,
and some Python. It runs fully on your workstation, requiring no servers, databases,
or anything like that.

%package docs
Summary: Documentation for %name
Group: Development/Documentation
Requires: %name = %version-%release

%description docs
ceph-deploy is a way to deploy Ceph relying on just SSH access to the servers, sudo,
and some Python. It runs fully on your workstation, requiring no servers, databases,
or anything like that.

This package contains documentation for %name

%package -n python-module-%name-tests
Summary: Tests for python-module-%name
Group: System/Base
Requires: python-module-%name = %version-%release

%description -n python-module-%name-tests
ceph-deploy is a way to deploy Ceph relying on just SSH access to the servers, sudo,
and some Python. It runs fully on your workstation, requiring no servers, databases,
or anything like that.

This package contains tests for python3-module-%name

%package -n python3-module-%name-tests
Summary: Tests for python3-module-%name
Group: System/Base
Requires: python3-module-%name = %version-%release

%description -n python3-module-%name-tests
ceph-deploy is a way to deploy Ceph relying on just SSH access to the servers, sudo,
and some Python. It runs fully on your workstation, requiring no servers, databases,
or anything like that.

This package contains tests for python3-module-%name

%prep
%setup
%patch -p1
sed -i 's/.*remoto.*//' setup.py
sed -i 's/.*else:.*//' setup.py

pushd ceph_deploy/util
sed -i "s/0644/'0664'/" pkg_managers.py
sed -i "s/0600/'0600'/" pkg_managers.py
popd

rm -rf ../python3
cp -fR . ../python3

%build
export CEPH_DEPLOY_NO_VENDOR=1
%python_build_debug

pushd ../python3
%python3_build_debug
popd

export PYTHONPATH=$PWD
%make -C docs man

%install
pushd ../python3
%python3_install
popd
pushd %buildroot/%_bindir
mv %name %name.py3
popd

export CEPH_DEPLOY_NO_VENDOR=1
%python_install -O1

%check
python setup.py test

%files
%doc LICENSE README.rst
%_bindir/*

%files -n python-module-%name
%python_sitelibdir/*
%exclude %python_sitelibdir/*/tests/

%files -n python3-module-%name
%python3_sitelibdir/*
%exclude %python3_sitelibdir/*/tests/

%files docs
%doc docs/*/man/*

%files -n python-module-%name-tests
%python_sitelibdir/*/tests/

%files -n python3-module-%name-tests
%python3_sitelibdir/*/tests/


%changelog

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

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