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