Sisyphus repositório
Última atualização: 26 maio 2019 | SRPMs: 17693 | Visitas: 13599924
en ru br
ALT Linux repositórios
S:3.0.3-alt1

Group :: Sistema/Configurações/Rede
RPM: crmsh

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define gname haclient
%define uname hacluster



Name: crmsh
Summary: Pacemaker command line interface
Version: 2.3.2
Release: alt1%ubt
License: GPL-2.0+
Url: http://crmsh.github.io
Group: System/Configuration/Other
Source0: %name-%version.tar

BuildArch: noarch

Requires: pacemaker-cli
Requires: %name-scripts = %version-%release
BuildRequires: asciidoc-a2x libpacemaker-devel time
#libcluster-glue-devel
BuildPreReq: python-devel python-module-setuptools

BuildRequires(pre): rpm-build-ubt

%description
The crm shell is a command-line interface for High-Availability
cluster management on GNU/Linux systems. It simplifies the
configuration, management and troubleshooting of Pacemaker-based
clusters, by providing a powerful and intuitive set of features.
crm shell, a Pacemaker command line interface.

%package test
Summary: Test package for crmsh
Group: System/Configuration/Other
Requires: %name = %version-%release

%description test
The crm shell is a command-line interface for High-Availability
cluster management on GNU/Linux systems. It simplifies the
configuration, management and troubleshooting of Pacemaker-based
clusters, by providing a powerful and intuitive set of features.
This package contains the regression test suite for crmsh.

%package scripts
Summary: Crm Shell Cluster Scripts
Group: System/Configuration/Other

%description scripts
Cluster scripts for crmsh. The cluster scripts can be run
directly from the crm command line, or used by user interfaces
like hawk to implement configuration wizards.

%package -n bash-completion-%name
Summary: Bash completion for %name
Group: Shells
Requires: bash-completion
Requires: %name = %version-%release

%description -n bash-completion-%name
Bash completion for %name.

%add_python_lib_path %_datadir/%name/utils

%prep
%setup

%build
%autoreconf
%configure \
--localstatedir=%_var \
--with-version=%version-%release \
--docdir=%_defaultdocdir/%version-%release

%make_build VERSION="%version-%release" sysconfdir=%_sysconfdir localstatedir=%_var

%install
%makeinstall_std
install -Dm0644 contrib/bash_completion.sh %buildroot%_sysconfdir/bash_completion.d/crm.sh

mkdir -p %buildroot%_sbindir
mv %buildroot%_bindir/crm %buildroot%_sbindir/crm

%files
%_sbindir/crm
%python_sitelibdir/crmsh*

%_datadir/%name
%exclude %_datadir/%name/tests
%exclude %_datadir/%name/scripts

%dir %_sysconfdir/crm
%config(noreplace) %_sysconfdir/crm/*

%_man8dir/*
%_defaultdocdir/%version-%release
%dir %attr (770, %uname, %gname) %_var/cache/crm

%files scripts
%_datadir/%name/scripts

%files test
%_datadir/%name/tests

%files -n bash-completion-%name
%_sysconfdir/bash_completion.d/*

%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