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