2014-09-16 01:14:51 +00:00
|
|
|
#
|
|
|
|
# spec file for package sbd
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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 http://bugs.opensuse.org/
|
|
|
|
#
|
2020-03-06 13:25:25 +00:00
|
|
|
%global commit 25fce8a7d5e8cd5abc2379077381b10bd6cec183
|
2014-09-16 01:14:51 +00:00
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
2020-03-06 13:25:25 +00:00
|
|
|
%global github_owner Clusterlabs
|
|
|
|
%global buildnum 1
|
2014-09-16 01:14:51 +00:00
|
|
|
|
|
|
|
Name: sbd
|
|
|
|
Summary: Storage-based death
|
|
|
|
License: GPLv2+
|
2020-03-06 13:25:25 +00:00
|
|
|
Group: System Environment/Daemons
|
|
|
|
Version: 1.4.1
|
|
|
|
Release: %{buildnum}%{?dist}
|
2014-10-29 22:50:15 +00:00
|
|
|
Url: https://github.com/%{github_owner}/%{name}
|
2014-09-16 01:14:51 +00:00
|
|
|
Source0: https://github.com/%{github_owner}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
|
2020-03-06 13:25:25 +00:00
|
|
|
Patch0: 0001-Fix-regressions.sh-make-parameter-passing-consistent.patch
|
|
|
|
Patch1: 0002-Doc-add-environment-section-to-man-page.patch
|
|
|
|
Patch2: 0003-Fix-scheduling-overhaul-the-whole-thing.patch
|
2014-09-16 01:14:51 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: libaio-devel
|
2020-03-06 13:25:25 +00:00
|
|
|
BuildRequires: corosync-devel
|
2014-09-16 01:14:51 +00:00
|
|
|
BuildRequires: pacemaker-libs-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: pkgconfig
|
2018-11-21 15:07:32 +00:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: systemd
|
2020-03-06 13:25:25 +00:00
|
|
|
Conflicts: fence-agents-sbd < 4.5.0
|
2018-11-21 15:07:32 +00:00
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
ExclusiveArch: i686 x86_64 s390x aarch64 ppc64le
|
2014-10-29 22:50:15 +00:00
|
|
|
%endif
|
2014-09-16 01:14:51 +00:00
|
|
|
|
|
|
|
%if %{defined systemd_requires}
|
|
|
|
%systemd_requires
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
|
|
This package contains the storage-based death functionality.
|
|
|
|
|
2020-03-06 13:25:25 +00:00
|
|
|
%package tests
|
|
|
|
Summary: Storage-based death environment for regression tests
|
|
|
|
License: GPLv2+
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
This package provides an environment + testscripts for
|
|
|
|
regression-testing sbd.
|
|
|
|
|
2014-09-16 01:14:51 +00:00
|
|
|
###########################################################
|
2014-10-29 22:50:15 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{name}-%{commit} -p1
|
2020-03-06 13:25:25 +00:00
|
|
|
%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
|
2014-10-29 22:50:15 +00:00
|
|
|
|
2014-09-16 01:14:51 +00:00
|
|
|
###########################################################
|
|
|
|
|
|
|
|
%build
|
2020-03-06 13:25:25 +00:00
|
|
|
./autogen.sh
|
2014-09-16 01:14:51 +00:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror"
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
2014-10-29 22:50:15 +00:00
|
|
|
|
2014-09-16 01:14:51 +00:00
|
|
|
###########################################################
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/stonith
|
|
|
|
|
2020-03-06 13:25:25 +00:00
|
|
|
install -D -m 0755 tests/regressions.sh $RPM_BUILD_ROOT/usr/share/sbd/regressions.sh
|
2014-09-16 01:14:51 +00:00
|
|
|
%if %{defined _unitdir}
|
|
|
|
install -D -m 0644 src/sbd.service $RPM_BUILD_ROOT/%{_unitdir}/sbd.service
|
2018-11-21 15:07:32 +00:00
|
|
|
install -D -m 0644 src/sbd_remote.service $RPM_BUILD_ROOT/%{_unitdir}/sbd_remote.service
|
2014-09-16 01:14:51 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
|
|
|
install -m 644 src/sbd.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/sbd
|
|
|
|
|
2020-03-06 13:25:25 +00:00
|
|
|
# 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
|
|
|
|
|
2014-10-29 22:50:15 +00:00
|
|
|
###########################################################
|
|
|
|
|
2014-09-16 01:14:51 +00:00
|
|
|
%if %{defined _unitdir}
|
|
|
|
%post
|
|
|
|
%systemd_post sbd.service
|
2018-11-21 15:07:32 +00:00
|
|
|
%systemd_post sbd_remote.service
|
2020-03-06 13:25:25 +00:00
|
|
|
if [ $1 -ne 1 ] ; then
|
|
|
|
if systemctl --quiet is-enabled sbd.service 2>/dev/null
|
|
|
|
then
|
|
|
|
systemctl --quiet reenable sbd.service 2>/dev/null || :
|
|
|
|
fi
|
|
|
|
if systemctl --quiet is-enabled sbd_remote.service 2>/dev/null
|
|
|
|
then
|
|
|
|
systemctl --quiet reenable sbd_remote.service 2>/dev/null || :
|
|
|
|
fi
|
|
|
|
fi
|
2014-09-16 01:14:51 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun sbd.service
|
2018-11-21 15:07:32 +00:00
|
|
|
%systemd_preun sbd_remote.service
|
2014-09-16 01:14:51 +00:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun sbd.service
|
2018-11-21 15:07:32 +00:00
|
|
|
%systemd_postun sbd_remote.service
|
2014-09-16 01:14:51 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
###########################################################
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/sbd
|
|
|
|
%{_sbindir}/sbd
|
2020-03-06 13:25:25 +00:00
|
|
|
%exclude %{_datadir}/sbd/regressions.sh
|
2014-09-16 01:14:51 +00:00
|
|
|
%doc %{_mandir}/man8/sbd*
|
|
|
|
%if %{defined _unitdir}
|
|
|
|
%{_unitdir}/sbd.service
|
2018-11-21 15:07:32 +00:00
|
|
|
%{_unitdir}/sbd_remote.service
|
2014-09-16 01:14:51 +00:00
|
|
|
%endif
|
|
|
|
%doc COPYING
|
|
|
|
|
2020-03-06 13:25:25 +00:00
|
|
|
%files tests
|
|
|
|
###########################################################
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/sbd
|
|
|
|
%{_datadir}/sbd/regressions.sh
|
|
|
|
%{_libdir}/libsbdtestbed*
|
|
|
|
|
2014-09-16 01:14:51 +00:00
|
|
|
%changelog
|
2020-03-06 13:25:25 +00:00
|
|
|
* Thu Mar 5 2020 Klaus Wenninger <kwenning@redhat.com> - 1.4.1-4
|
|
|
|
- Rebase to upstream v1.4.1
|
|
|
|
- Make coverity happy with parameter passing in regressions.sh
|
|
|
|
- Add auto generated environment section to man-page
|
|
|
|
- Overhaul setting scheduler policy/priority
|
|
|
|
- Enable Fedora CI Gating
|
|
|
|
|
2020-01-30 22:51:27 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-26 22:43:46 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-01 16:57:53 +00:00
|
|
|
* Fri Feb 1 2019 Klaus Wenninger <kwenning@redhat.com> - 1.4.0-1
|
|
|
|
- Rebase to upstream v1.4.0
|
|
|
|
- Fail earlier on invalid servants (solves GCC9 build issue as well)
|
|
|
|
|
2018-11-21 15:07:32 +00:00
|
|
|
* Wed Nov 21 2018 Klaus Wenninger <kwenning@redhat.com> - 1.3.1-1.git4927571
|
|
|
|
- Rebased to commit 4927571f8e9b00db8242654b1329dfbd71dcfe99
|
2018-11-21 17:01:05 +00:00
|
|
|
- Removed disabling of shared-disk-support
|
2018-11-21 15:07:32 +00:00
|
|
|
Resolves rhbz#1606301
|
|
|
|
|
2018-07-14 05:44:00 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4.3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-03-18 15:17:47 +00:00
|
|
|
* Sun Mar 18 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.1-4.2
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2018-02-09 16:08:24 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-30 15:00:28 +00:00
|
|
|
* Tue Jan 30 2018 Merlin Mathesius <mmathesi@redhat.com> - 1.2.1-4
|
|
|
|
- Patch to use correct C inline function semantics to fix FTBFS (BZ#1424417)
|
|
|
|
Cleanup spec file conditionals
|
|
|
|
|
2017-08-03 08:08:13 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3.4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 18:10:20 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3.3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 13:06:04 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-04 23:37:14 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-19 21:58:04 +00:00
|
|
|
* Tue Jan 19 2016 Jan Pokorný <jpokorny+rpm-sbd@redhat.com> - 1.2.1-3
|
|
|
|
- Rebuilt for libpe_status soname bump arising from Pacemaker 1.1.14
|
|
|
|
|
2015-07-02 09:43:41 +00:00
|
|
|
* Thu Jul 02 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.2.1-2
|
|
|
|
- Add dist-tag (RHBZ #1237187).
|
|
|
|
|
2015-06-19 00:19:02 +00:00
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-1.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-10-29 22:50:15 +00:00
|
|
|
* Thu Oct 30 2014 <andrew@beekhof.net> - 1.2.1-1
|
|
|
|
- Correctly enable /proc/pid validation for sbd_lock_running()
|
|
|
|
- Improved integration with the el7 environment
|
|
|
|
|
2014-09-16 01:14:51 +00:00
|
|
|
* Fri Aug 29 2014 <andrew@beekhof.net> - 1.2.1-0.2.8f912945.git
|
|
|
|
- Remove some additional SUSE-isms
|
|
|
|
|
|
|
|
* Fri Aug 29 2014 <andrew@beekhof.net> - 1.2.1-0.1.8f912945.git
|
|
|
|
- Prepare for package review
|
2014-10-29 22:50:15 +00:00
|
|
|
Resolves: rhbz#1134245
|