Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
sbd.13350
sbd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sbd.spec of Package sbd.13350
# # spec file for package sbd # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 Lars Marowsky-Bree # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} %define _fillupdir /var/adm/fillup-templates %endif Name: sbd Version: 1.4.0+20191029.695f9ca Release: 0 Summary: Storage-based death License: GPL-2.0-or-later Group: Productivity/Clustering/HA Url: https://github.com/ClusterLabs/sbd Source: %{name}-%{version}.tar.xz Patch1: bsc#1140065-Fix-sbd-cluster-exit-if-cmap-is-disconnected.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: e2fsprogs-devel BuildRequires: libaio-devel BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(corosync) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libqb) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(pacemaker) BuildRequires: pkgconfig(pacemaker-cib) BuildRequires: pkgconfig(uuid) Requires(post): %fillup_prereq Conflicts: ClusterTools2 < 2.3.2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_requires} %description This package contains the storage-based death functionality. %package devel Summary: Storage-based death environment for regression tests Group: Productivity/Clustering/HA Requires: %{name} = %{version}-%{release} %description devel This package provides an environment + testscripts for regression-testing sbd. %prep %autosetup -n %{name}-%{version} -p1 %ifarch s390x s390 sed -i src/sbd.sysconfig -e "s/Default: 5/Default: 15/" sed -i src/sbd.sysconfig -e "s/SBD_WATCHDOG_TIMEOUT=5/SBD_WATCHDOG_TIMEOUT=15/" %endif %build ./autogen.sh %configure make %{?_smp_mflags} %install %make_install LIBDIR=%{_libdir} install -D -m 0755 src/sbd.sh %{buildroot}%{_datadir}/sbd/sbd.sh install -D -m 0755 tests/regressions.sh %{buildroot}%{_datadir}/sbd/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 ln -s service %{buildroot}%{_sbindir}/rcsbd ln -s service %{buildroot}%{_sbindir}/rcsbd_remote mkdir -p %{buildroot}%{_fillupdir} install -m 0644 src/sbd.sysconfig %{buildroot}%{_fillupdir}/sysconfig.sbd # Don't package static libs find %{buildroot} -type f -name "*.a" -delete -print find %{buildroot} -type f -name "*.la" -delete -print %post %service_add_post sbd.service sbd_remote.service if [ ! -e %{_sysconfdir}/sysconfig/sbd ]; then %fillup_only sbd fi %pre %service_add_pre sbd.service sbd_remote.service %preun %service_del_preun -n sbd.service sbd_remote.service %postun %service_del_postun -n sbd.service sbd_remote.service %post devel -p /sbin/ldconfig %postun devel -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/stonith/ %{_sbindir}/sbd %{_sbindir}/rcsbd %{_sbindir}/rcsbd_remote %{_datadir}/sbd %exclude %{_datadir}/sbd/regressions.sh %{_mandir}/man8/sbd* %{_unitdir}/sbd.service %{_unitdir}/sbd_remote.service %{_fillupdir}/sysconfig.sbd %doc COPYING %files devel %defattr(-,root,root) %dir %{_datadir}/sbd %{_datadir}/sbd/regressions.sh %{_libdir}/libsbdtestbed* %doc COPYING %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor