Blame SPECS/sbd.spec

786b16
#
786b16
# spec file for package sbd
786b16
#
786b16
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
786b16
# Copyright (c) 2013 Lars Marowsky-Bree
786b16
#
786b16
# All modifications and additions to the file contributed by third parties
786b16
# remain the property of their copyright owners, unless otherwise agreed
786b16
# upon. The license for this file, and modifications and additions to the
786b16
# file, is the same license as for the pristine package itself (unless the
786b16
# license for the pristine package is not an Open Source License, in which
786b16
# case the license is the MIT License). An "Open Source License" is a
786b16
# license that conforms to the Open Source Definition (Version 1.9)
786b16
# published by the Open Source Initiative.
786b16
786b16
# Please submit bugfixes or comments via http://bugs.opensuse.org/
786b16
#
0b5381
%global commit c511b0692784a7085df4b1ae35748fb318fa79ee
786b16
%global shortcommit %(c=%{commit}; echo ${c:0:7})
0b5381
%global github_owner Clusterlabs
0b5381
%global buildnum 21
786b16
786b16
Name:           sbd
786b16
Summary:        Storage-based death
786b16
License:        GPLv2+
786b16
Group:          System Environment/Daemons
786b16
Version:        1.2.1
786b16
#Release:        0.%{buildnum}.%{shortcommit}.git%{?dist}
6d9134
Release:        %{buildnum}%{?dist}
786b16
Url:            https://github.com/%{github_owner}/%{name}
786b16
Source0:        https://github.com/%{github_owner}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
786b16
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
786b16
BuildRequires:  autoconf
786b16
BuildRequires:  automake
786b16
BuildRequires:  libuuid-devel
786b16
BuildRequires:  glib2-devel
786b16
BuildRequires:  libaio-devel
786b16
BuildRequires:  corosync-devel
6d9134
BuildRequires:  pacemaker-libs-devel > 1.1.12
786b16
BuildRequires:  libtool
786b16
BuildRequires:  libuuid-devel
786b16
BuildRequires:  libxml2-devel
786b16
BuildRequires:  pkgconfig
786b16
BuildRequires:  python-devel
786b16
Patch1:         sbd-no-storage-option.patch
786b16
786b16
%if 0%{?rhel} > 0
786b16
ExclusiveArch: i686 x86_64 s390x
786b16
%endif
786b16
786b16
%if %{defined systemd_requires}
786b16
%systemd_requires
786b16
%endif
786b16
786b16
%description
786b16
786b16
This package contains the storage-based death functionality.
786b16
Currently it is limited to watchdog integration.
786b16
786b16
###########################################################
786b16
786b16
%prep
786b16
%autosetup -n %{name}-%{commit} -p1
786b16
786b16
###########################################################
786b16
786b16
%build
786b16
autoreconf -i
786b16
export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror"
786b16
%configure --disable-shared-disk
786b16
make %{?_smp_mflags}
786b16
786b16
###########################################################
786b16
786b16
%install
786b16
786b16
make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install
786b16
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/stonith
786b16
rm -rf ${RPM_BUILD_ROOT}%{_mandir}/man8/sbd*
786b16
786b16
%if %{defined _unitdir}
786b16
install -D -m 0644 src/sbd.service $RPM_BUILD_ROOT/%{_unitdir}/sbd.service
0b5381
install -D -m 0644 src/sbd_remote.service $RPM_BUILD_ROOT/%{_unitdir}/sbd_remote.service
786b16
%endif
786b16
786b16
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
786b16
install -m 644 src/sbd.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/sbd
786b16
786b16
###########################################################
786b16
786b16
%clean
786b16
rm -rf %{buildroot}
786b16
786b16
%if %{defined _unitdir}
786b16
%post
786b16
%systemd_post sbd.service
0b5381
%systemd_post sbd_remote.service
786b16
786b16
%preun
786b16
%systemd_preun sbd.service
0b5381
%systemd_preun sbd_remote.service
786b16
786b16
%postun
786b16
%systemd_postun sbd.service
0b5381
%systemd_postun sbd_remote.service
786b16
%endif
786b16
786b16
%files
786b16
###########################################################
786b16
%defattr(-,root,root)
786b16
%config(noreplace) %{_sysconfdir}/sysconfig/sbd
786b16
%{_sbindir}/sbd
0b5381
#%{_datadir}/sbd
786b16
#doc %{_mandir}/man8/sbd*
786b16
%if %{defined _unitdir}
786b16
%{_unitdir}/sbd.service
0b5381
%{_unitdir}/sbd_remote.service
786b16
%endif
786b16
%doc COPYING
786b16
786b16
%changelog
0b5381
* Fri Apr 15 2016 <kwenning@redhat.com> - 1.2.1-21
0b5381
- Rebuild for new pacemaker
0b5381
  Resolves: rhbz#1320400
0b5381
0b5381
* Fri Apr 15 2016 <kwenning@redhat.com> - 1.2.1-20
0b5381
- tarball updated to c511b0692784a7085df4b1ae35748fb318fa79ee
0b5381
  from https://github.com/Clusterlabs/sbd
0b5381
  Resolves: rhbz#1324240
0b5381
6d9134
* Thu Jul 23 2015 <abeekhof@redhat.com> - 1.2.1-5
6d9134
- Rebuild for pacemaker
6d9134
6d9134
* Mon Jun 02 2015 <abeekhof@redhat.com> - 1.2.1-4
6d9134
- Include the dist tag in the release string
6d9134
- Rebuild for new pacemaker
6d9134
786b16
* Mon Jan 12 2015 <abeekhof@redhat.com> - 1.2.1-3
786b16
- Correctly parse SBD_WATCHDOG_TIMEOUT into seconds (not milliseconds)
786b16
786b16
* Mon Oct 27 2014 <abeekhof@redhat.com> - 1.2.1-2
786b16
- Correctly enable /proc/pid validation for sbd_lock_running()
786b16
786b16
* Fri Oct 24 2014 <abeekhof@redhat.com> - 1.2.1-1
786b16
- Further improve integration with the el7 environment
786b16
786b16
* Thu Oct 16 2014 <abeekhof@redhat.com> - 1.2.1-0.5.872e82f3.git
786b16
- Disable unsupported functionality (for now)
786b16
786b16
* Wed Oct 15 2014 <abeekhof@redhat.com> - 1.2.1-0.4.872e82f3.git
786b16
- Improved integration with the el7 environment
786b16
786b16
* Tue Sep 30 2014 <abeekhof@redhat.com> - 1.2.1-0.3.8f912945.git
786b16
- Only build on archs supported by the HA Add-on
786b16
786b16
* Fri Aug 29 2014 <abeekhof@redhat.com> - 1.2.1-0.2.8f912945.git
786b16
- Remove some additional SUSE-isms
786b16
786b16
* Fri Aug 29 2014 <abeekhof@redhat.com> - 1.2.1-0.1.8f912945.git
786b16
- Prepare for package review
786b16
  Resolves: rhbz#1134245