Sisyphus repository
Last update: 4 december 2020 | SRPMs: 17764 | Visits: 19753407
en ru br
ALT Linux repos
S:2.0.1-alt3

Group :: System/Base
RPM: ceph-deploy

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

%define modname ceph-deploy

Name: ceph-deploy
Version: 2.0.1
Release: alt2

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

Source: %name-%version.tar
Patch1: change-version.patch

BuildRequires(pre): rpm-build-python3

BuildRequires: openssh-clients
BuildRequires: git

BuildRequires: python3-module-virtualenv
BuildRequires: python3-module-remoto
BuildRequires: python3-module-sphinx

# Tox tests requirements

BuildRequires: python3-module-pytest
BuildRequires: python3-module-mock
BuildRequires: python3-module-tox

Requires: python3-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 python3-module-%name
Summary: Deploy Ceph with minimal infrastructure
Group: Development/Python3
%py3_requires remoto

%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 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

# Use only for version after release, delete when updating to a new version

%patch1 -p1

sed -i 's|sphinx-build|sphinx-build-3|' docs/Makefile

sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
   $(find ./ -name '*.py')

%build
%python3_build_debug -b build3

export PYTHONPATH=$PWD
%make -C docs man

%install
ln -snf build3 build
%python3_install

install -pDm644 docs/build/man/%name.1 %buildroot%_man1dir/%name.1

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

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

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


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin