Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37535593
en ru br
Репозитории ALT

Группа :: Система/Серверы
Пакет: sbd

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

%define _localstatedir %_var

Name:     sbd
Version:  1.5.2
Release:  alt1

Summary:  Storage-based death
License:  GPLv2+
Group:    System/Servers
Url:      https://github.com/ClusterLabs/sbd
Vcs:      https://github.com/ClusterLabs/sbd.git

Packager: Andrew A. Vasilyev <andy at altlinux.org>

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

BuildRequires: libaio-devel libpacemaker-devel
BuildRequires: glib2-devel corosync libcorosync-devel libuuid-devel libqb-devel libxml2-devel
BuildRequires: /usr/bin/pod2man

Requires: corosync dlm pacemaker pacemaker-remote

Conflicts: fence-agents-sbd < 4.5.0

%description
This package contains the storage-based death functionality.

%package tests
Summary:  Storage-based death environment for regression tests
License:  GPLv2+
Group:    System/Servers
Requires: %name = %EVR

%description tests
This package provides an environment + testscripts for
regression-testing sbd.

%package tests-devel
Summary:  Storage-based death environment for regression tests
License:  GPLv2+
Group:    System/Servers
Requires: %name = %EVR

%description tests-devel
This package provides a shared library symlink for
regression-testing sbd.

%prep
%setup
%patch1 -p1

%build
./autogen.sh
%ifnarch %e2k
%add_optflags -Wall -Werror
%endif
%configure --with-runstatedir=/run
%make_build

%install
%makeinstall_std

rm -rf %buildroot%_libdir/stonith

install -D -m 0755 src/sbd.sh %buildroot%_datadir/%name/sbd.sh
install -D -m 0755 tests/regressions.sh %buildroot%_datadir/%name/regressions.sh

install -D -m 0644 src/sbd.service %buildroot%_unitdir/sbd.service
install -D -m 0644 src/sbd_remote.service %buildroot%_unitdir/sbd_remote.service

mkdir -p %buildroot%_sysconfdir/sysconfig
install -m 644 src/sbd.sysconfig %buildroot%_sysconfdir/sysconfig/sbd

# Don't package static libs

find %buildroot -name '*.a' -type f -print0 | xargs -0 rm -f
find %buildroot -name '*.la' -type f -print0 | xargs -0 rm -f

%post
%post_service sbd
%post_service sbd_remote

%preun
%preun_service sbd
%preun_service sbd_remote

%files
%config(noreplace) %_sysconfdir/sysconfig/%name
%_sbindir/%name
%_datadir/%name
%exclude %_datadir/%name/regressions.sh
%doc %_man8dir/*
%_unitdir/sbd.service
%_unitdir/sbd_remote.service
%doc COPYING
%_datadir/pkgconfig/%name.pc

%files tests
%dir %_datadir/%name
%_datadir/%name/regressions.sh
%_libdir/libsbdtestbed*
%exclude %_libdir/libsbdtestbed.so

%files tests-devel
%_libdir/libsbdtestbed.so

%changelog

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

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