11c6eb
Name:           dlm
f4656f
Version:        4.1.0
f4656f
Release:        1%{?dist}
11c6eb
License:        GPLv2 and GPLv2+ and LGPLv2+
11c6eb
# For a breakdown of the licensing, see README.license
11c6eb
Group:          System Environment/Kernel
11c6eb
Summary:        dlm control daemon and tool
11c6eb
URL:            https://pagure.io/dlm
11c6eb
BuildRequires:  glibc-kernheaders
11c6eb
BuildRequires:  corosynclib-devel >= 1.99.9
11c6eb
BuildRequires:  pacemaker-libs-devel >= 1.1.7
11c6eb
BuildRequires:  libxml2-devel
11c6eb
BuildRequires:  systemd-units
11c6eb
BuildRequires:  systemd-devel
11c6eb
Source0:	https://releases.pagure.org/dlm/%{name}-%{version}.tar.gz
11c6eb
125d08
# Patch0: 0001-foo.patch
11c6eb
11c6eb
%if 0%{?rhel} && 0%{?rhel} <= 7
11c6eb
ExclusiveArch: i686 x86_64
11c6eb
%endif
11c6eb
11c6eb
Requires:       %{name}-lib = %{version}-%{release}
11c6eb
Requires:       corosync >= 1.99.9
11c6eb
%{?fedora:Requires: kernel-modules-extra}
11c6eb
Requires(post): systemd-units
11c6eb
Requires(preun): systemd-units
11c6eb
Requires(postun): systemd-units
11c6eb
Conflicts: cman
11c6eb
11c6eb
%description
11c6eb
The kernel dlm requires a user daemon to control membership.
11c6eb
11c6eb
%prep
11c6eb
%setup -q
125d08
# %patch0 -p1 -b .0001-foo.patch
11c6eb
11c6eb
%build
11c6eb
# upstream does not require configure
11c6eb
# upstream does not support _smp_mflags
11c6eb
CFLAGS+=$RPM_OPT_FLAGS make
11c6eb
CFLAGS+=$RPM_OPT_FLAGS make -C fence
11c6eb
11c6eb
%install
11c6eb
rm -rf $RPM_BUILD_ROOT
11c6eb
make install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
11c6eb
make -C fence install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
11c6eb
11c6eb
install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
11c6eb
install -Dm 0644 init/dlm.sysconfig %{buildroot}/etc/sysconfig/dlm
11c6eb
11c6eb
%post
11c6eb
%systemd_post dlm.service
11c6eb
11c6eb
%preun
11c6eb
%systemd_preun dlm.service
11c6eb
11c6eb
%postun
11c6eb
%systemd_postun_with_restart dlm.service
11c6eb
11c6eb
%files
11c6eb
%defattr(-,root,root,-)
11c6eb
%doc README.license
11c6eb
%{_unitdir}/dlm.service
11c6eb
%{_sbindir}/dlm_controld
11c6eb
%{_sbindir}/dlm_tool
11c6eb
%{_sbindir}/dlm_stonith
11c6eb
%{_mandir}/man8/dlm*
11c6eb
%{_mandir}/man5/dlm*
11c6eb
%{_mandir}/man3/*dlm*
11c6eb
%config(noreplace) %{_sysconfdir}/sysconfig/dlm
11c6eb
11c6eb
%package        lib
11c6eb
Summary:        Library for %{name}
11c6eb
Group:          System Environment/Libraries
11c6eb
Conflicts:      clusterlib
11c6eb
11c6eb
%description    lib
11c6eb
The %{name}-lib package contains the libraries needed to use the dlm
11c6eb
from userland applications.
11c6eb
11c6eb
%post lib -p /sbin/ldconfig
11c6eb
11c6eb
%postun lib -p /sbin/ldconfig
11c6eb
11c6eb
%files          lib
11c6eb
%defattr(-,root,root,-)
11c6eb
%{_prefix}/lib/udev/rules.d/*-dlm.rules
11c6eb
%{_libdir}/libdlm*.so.*
11c6eb
11c6eb
%package        devel
11c6eb
Summary:        Development files for %{name}
11c6eb
Group:          Development/Libraries
11c6eb
Requires:       %{name}-lib = %{version}-%{release}
11c6eb
Conflicts:      clusterlib-devel
11c6eb
11c6eb
%description    devel
11c6eb
The %{name}-devel package contains libraries and header files for
11c6eb
developing applications that use %{name}.
11c6eb
11c6eb
%files          devel
11c6eb
%defattr(-,root,root,-)
11c6eb
%{_libdir}/libdlm*.so
11c6eb
%{_includedir}/libdlm*.h
11c6eb
%{_libdir}/pkgconfig/*.pc
11c6eb
11c6eb
%changelog
f4656f
* Wed Jan 13 2021 David Teigland <teigland@redhat.com> - 4.1.0-1
f4656f
- update to 4.1.0
f4656f
f4656f
* Wed Jan 06 2021 David Teigland <teigland@redhat.com> - 4.0.9-4
f4656f
- dlm_controld: use new quorum api to detect missed failures
f4656f
125d08
* Wed Jun 12 2019 David Teigland <teigland@redhat.com> - 4.0.9-3
125d08
- kick gating system
125d08
125d08
* Wed Jun 12 2019 David Teigland <teigland@redhat.com> - 4.0.9-2
125d08
- try to kick gating system
125d08
125d08
* Tue Jun 11 2019 David Teigland <teigland@redhat.com> - 4.0.9-1
125d08
- update to 4.0.9
125d08
11c6eb
* Wed Jan 23 2019 David Teigland <teigland@redhat.com> - 4.0.6-10
11c6eb
- dlm_controld: ignore unwanted uevent strings
11c6eb
11c6eb
* Tue Oct 02 2018 David Teigland <teigland@redhat.com> - 4.0.6-9
11c6eb
- update makefile gcc flags
11c6eb
11c6eb
* Thu Aug 09 2018 David Teigland <teigland@redhat.com> - 4.0.6-8
11c6eb
- Work around glibc regression for major/minor header
11c6eb
11c6eb
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-7
11c6eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
11c6eb
11c6eb
* Tue Oct 10 2017 Troy Dawson <tdawson@redhat.com> - 4.0.6-5
11c6eb
- Cleanup spec file conditionals
11c6eb
11c6eb
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-5
11c6eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
11c6eb
11c6eb
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-4
11c6eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
11c6eb
11c6eb
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-3
11c6eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
11c6eb
11c6eb
* Fri Jun 10 2016 David Teigland <teigland@redhat.com> - 4.0.6-2
11c6eb
- try fixing broken libsystemd
11c6eb
11c6eb
* Fri Jun 10 2016 David Teigland <teigland@redhat.com> - 4.0.6-1
11c6eb
- New upstream release
11c6eb
11c6eb
* Tue Apr 26 2016 David Teigland <teigland@redhat.com> - 4.0.5-1
11c6eb
- New upstream release
11c6eb
11c6eb
* Mon Feb 22 2016 David Teigland <teigland@redhat.com> - 4.0.4-1
11c6eb
- New upstream release dlm-4.0.4
11c6eb
11c6eb
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-6
11c6eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
11c6eb
11c6eb
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-5
11c6eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
11c6eb
11c6eb
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-4
11c6eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
11c6eb
11c6eb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-3
11c6eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
11c6eb
11c6eb
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2
11c6eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
11c6eb
11c6eb
* Wed Mar 06 2013 David Teigland <teigland@redhat.com> - 4.0.1-1
11c6eb
- New usptream release, fencing fixes
11c6eb
11c6eb
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-8
11c6eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
11c6eb
11c6eb
* Tue Nov 06 2012 David Teigland <teigland@redhat.com> - 4.0.0-1
11c6eb
- New upstream release, systemd fixes
11c6eb
11c6eb
* Wed Sep 05 2012 Václav Pavlín <vpavlin@redhat.com> - 3.99.5-7
11c6eb
- Scriptlets replaced with new systemd macros (#850093)
11c6eb
11c6eb
* Tue Aug 28 2012 David Teigland <teigland@redhat.com> - 3.99.5-6
11c6eb
- only fedora requires kernel-modules-extra
11c6eb
11c6eb
* Thu Aug 16 2012 David Teigland <teigland@redhat.com> - 3.99.5-5
11c6eb
- dlm_controld: remove fence_all from cli
11c6eb
11c6eb
* Thu Aug 16 2012 David Teigland <teigland@redhat.com> - 3.99.5-4
11c6eb
- dlm_stonith: include errno.h
11c6eb
11c6eb
* Thu Aug 16 2012 David Teigland <teigland@redhat.com> - 3.99.5-3
11c6eb
- dlm_controld: fix uninitialized mem for fence_all config
11c6eb
11c6eb
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.99.5-2
11c6eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
11c6eb
11c6eb
* Thu Jun 21 2012 David Teigland <teigland@redhat.com> - 3.99.5-1
11c6eb
- New upstream release
11c6eb
11c6eb
* Wed May 30 2012 David Teigland <teigland@redhat.com> - 3.99.4-2
11c6eb
- Limit rhel arches
11c6eb
11c6eb
* Mon May 21 2012 David Teigland <teigland@redhat.com> - 3.99.4-1
11c6eb
- New upstream release
11c6eb
11c6eb
* Mon May 14 2012 David Teigland <teigland@redhat.com> - 3.99.3-1
11c6eb
- New upstream release
11c6eb
11c6eb
* Wed Apr 11 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.2-1
11c6eb
- New upstream release
11c6eb
11c6eb
* Thu Mar 29 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.1-4
11c6eb
- Merge back from F17
11c6eb
11c6eb
* Wed Mar 21 2012 David Teigland <teigland@redhat.com> - 3.99.1-3
11c6eb
- Fix dlm_stonith linking
11c6eb
11c6eb
* Wed Mar 21 2012 David Teigland <teigland@redhat.com> - 3.99.1-2
11c6eb
- Require pacemaker-libs-devel to build dlm_stonith
11c6eb
11c6eb
* Wed Mar 21 2012 David Teigland <teigland@redhat.com> - 3.99.1-1
11c6eb
- Update to 3.99.1
11c6eb
11c6eb
* Fri Mar 16 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-8
11c6eb
- Rebuild against new corosync (soname change).
11c6eb
11c6eb
* Thu Feb 16 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-7
11c6eb
- Update to upstream HEAD 2ad89c869git.
11c6eb
- Bump BuildRequires and Requires to new corosync
11c6eb
11c6eb
* Mon Feb 13 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-6
11c6eb
- Fix init/systemd service to use /etc/sysconfig/dlm
11c6eb
11c6eb
* Mon Feb  6 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-5
11c6eb
- Fix systemd service to recognize /etc/sysconfig/dlm_controld
11c6eb
11c6eb
* Fri Feb  3 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-4
11c6eb
- Fix systemd service to modprobe dlm
11c6eb
11c6eb
* Fri Feb  3 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-3
11c6eb
- Add patch to fix udev rules and make sure dlm_controld can find
11c6eb
  its devices
11c6eb
11c6eb
* Thu Feb  2 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-2
11c6eb
- Add Conflicts with clusterlib/cman as necessary
11c6eb
11c6eb
* Tue Jan 24 2012 David Teigland <teigland@redhat.com> - 3.99.0-1
11c6eb
- initial package
11c6eb