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
#
786b16
%global commit 1ee3503cbc52b73876b6aae5471d3b6f7c092bf5
786b16
%global shortcommit %(c=%{commit}; echo ${c:0:7})
786b16
%global github_owner beekhof
786b16
%global buildnum 3
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}
786b16
Release:        %{buildnum}
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
786b16
BuildRequires:  pacemaker-libs-devel
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
Patch2:         sbd-local-debug.patch
786b16
Patch3:         sbd-pcmk-health.patch
786b16
Patch4:         sbd-proc-pid.patch
786b16
Patch5:         sbd-timeout-in-seconds.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
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
786b16
786b16
%preun
786b16
%systemd_preun sbd.service
786b16
786b16
%postun
786b16
%systemd_postun sbd.service
786b16
%endif
786b16
786b16
%files
786b16
###########################################################
786b16
%defattr(-,root,root)
786b16
%config(noreplace) %{_sysconfdir}/sysconfig/sbd
786b16
%{_sbindir}/sbd
786b16
#doc %{_mandir}/man8/sbd*
786b16
%if %{defined _unitdir}
786b16
%{_unitdir}/sbd.service
786b16
%endif
786b16
%doc COPYING
786b16
786b16
%changelog
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