809a3f
Name:           dlm
69373a
Version:        4.2.0
809a3f
Release:        2%{?dist}
809a3f
License:        GPLv2 and GPLv2+ and LGPLv2+
809a3f
# For a breakdown of the licensing, see README.license
809a3f
Summary:        dlm control daemon and tool
809a3f
URL:            https://pagure.io/dlm
809a3f
BuildRequires:  gcc
809a3f
BuildRequires:  glibc-kernheaders
809a3f
BuildRequires:  corosynclib-devel >= 3.1.0
809a3f
BuildRequires:  pacemaker-libs-devel >= 1.1.7
809a3f
BuildRequires:  libxml2-devel
809a3f
BuildRequires:  systemd-units
809a3f
BuildRequires:  systemd-devel
809a3f
BuildRequires: make
809a3f
Source0:	https://releases.pagure.org/dlm/%{name}-%{version}.tar.gz
809a3f
69373a
Patch0: 0001-Revert-treewide-add-fcf-protection-full-to-CFLAGS.patch
809a3f
809a3f
%if 0%{?rhel} && 0%{?rhel} <= 7
809a3f
ExclusiveArch: i686 x86_64
809a3f
%endif
809a3f
809a3f
Requires:       %{name}-lib = %{version}-%{release}
809a3f
Requires:       corosync >= 3.1.0
809a3f
%{?fedora:Requires: kernel-modules-extra}
809a3f
Requires(post): systemd-units
809a3f
Requires(preun): systemd-units
809a3f
Requires(postun): systemd-units
809a3f
Conflicts: cman
809a3f
809a3f
%description
809a3f
The kernel dlm requires a user daemon to control membership.
809a3f
809a3f
%prep
809a3f
%setup -q
809a3f
%patch0 -p1 -b .backup0
809a3f
809a3f
%build
809a3f
# upstream does not require configure
809a3f
# upstream does not support _smp_mflags
809a3f
CFLAGS=$RPM_OPT_FLAGS make
809a3f
CFLAGS=$RPM_OPT_FLAGS make -C fence
809a3f
809a3f
%install
809a3f
rm -rf $RPM_BUILD_ROOT
809a3f
make install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
809a3f
make -C fence install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
809a3f
809a3f
install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
809a3f
install -Dm 0644 init/dlm.sysconfig %{buildroot}/etc/sysconfig/dlm
809a3f
809a3f
%post
809a3f
%systemd_post dlm.service
809a3f
809a3f
%preun
809a3f
%systemd_preun dlm.service
809a3f
809a3f
%postun
809a3f
%systemd_postun_with_restart dlm.service
809a3f
809a3f
%files
809a3f
%doc README.license
809a3f
%{_unitdir}/dlm.service
809a3f
%{_sbindir}/dlm_controld
809a3f
%{_sbindir}/dlm_tool
809a3f
%{_sbindir}/dlm_stonith
809a3f
%{_mandir}/man8/dlm*
809a3f
%{_mandir}/man5/dlm*
809a3f
%{_mandir}/man3/*dlm*
809a3f
%config(noreplace) %{_sysconfdir}/sysconfig/dlm
809a3f
809a3f
%package        lib
809a3f
Summary:        Library for %{name}
809a3f
Conflicts:      clusterlib
809a3f
809a3f
%description    lib
809a3f
The %{name}-lib package contains the libraries needed to use the dlm
809a3f
from userland applications.
809a3f
809a3f
%ldconfig_scriptlets lib
809a3f
809a3f
%files          lib
809a3f
/usr/lib/udev/rules.d/*-dlm.rules
809a3f
%{_libdir}/libdlm*.so.*
809a3f
809a3f
%package        devel
809a3f
Summary:        Development files for %{name}
809a3f
Requires:       %{name}-lib = %{version}-%{release}
809a3f
Conflicts:      clusterlib-devel
809a3f
809a3f
%description    devel
809a3f
The %{name}-devel package contains libraries and header files for
809a3f
developing applications that use %{name}.
809a3f
809a3f
%files          devel
809a3f
%{_libdir}/libdlm*.so
809a3f
%{_includedir}/libdlm*.h
809a3f
%{_libdir}/pkgconfig/*.pc
809a3f
809a3f
%changelog
69373a
* Fri Oct 14 2022 David Teigland <teigland@redhat.com> - 4.2.0-2
69373a
- rebuild with tests
69373a
69373a
* Wed Oct 12 2022 David Teigland <teigland@redhat.com> - 4.2.0-1
69373a
- new upstream version
69373a
809a3f
* Tue Feb 15 2022 David Teigland <teigland@redhat.com> - 4.1.1-2
809a3f
- compiler warnings and makefile flags
809a3f
809a3f
* Mon Nov 15 2021 David Teigland <teigland@redhat.com> - 4.1.1-1
809a3f
- new upstream version
809a3f
809a3f
* Wed Aug 25 2021 David Teigland <teigland@redhat.com> - 4.0.9-7
809a3f
- fix pacemaker header
809a3f
809a3f
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.0.9-6
809a3f
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
809a3f
  Related: rhbz#1991688
809a3f
809a3f
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 4.0.9-5
809a3f
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
809a3f
809a3f
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.9-4
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
809a3f
809a3f
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.9-3
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
809a3f
809a3f
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.9-2
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
809a3f
809a3f
* Wed Jul 31 2019 David Teigland <teigland@redhat.com> - 4.0.9-1
809a3f
- New upstream realease
809a3f
809a3f
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-11
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
809a3f
809a3f
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-10
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
809a3f
809a3f
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-9
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
809a3f
809a3f
* Sat Mar 24 2018 Richard W.M. Jones <rjones@redhat.com> - 4.0.6-8
809a3f
- Fixes for glibc 2.27, required for riscv64.
809a3f
809a3f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-7
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
809a3f
809a3f
* Tue Oct 10 2017 Troy Dawson <tdawson@redhat.com> - 4.0.6-5
809a3f
- Cleanup spec file conditionals
809a3f
809a3f
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-5
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
809a3f
809a3f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-4
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
809a3f
809a3f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-3
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
809a3f
809a3f
* Fri Jun 10 2016 David Teigland <teigland@redhat.com> - 4.0.6-2
809a3f
- try fixing broken libsystemd
809a3f
809a3f
* Fri Jun 10 2016 David Teigland <teigland@redhat.com> - 4.0.6-1
809a3f
- New upstream release
809a3f
809a3f
* Tue Apr 26 2016 David Teigland <teigland@redhat.com> - 4.0.5-1
809a3f
- New upstream release
809a3f
809a3f
* Mon Feb 22 2016 David Teigland <teigland@redhat.com> - 4.0.4-1
809a3f
- New upstream release dlm-4.0.4
809a3f
809a3f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-6
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
809a3f
809a3f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-5
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
809a3f
809a3f
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-4
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
809a3f
809a3f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-3
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
809a3f
809a3f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
809a3f
809a3f
* Wed Mar 06 2013 David Teigland <teigland@redhat.com> - 4.0.1-1
809a3f
- New usptream release, fencing fixes
809a3f
809a3f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-8
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
809a3f
809a3f
* Tue Nov 06 2012 David Teigland <teigland@redhat.com> - 4.0.0-1
809a3f
- New upstream release, systemd fixes
809a3f
809a3f
* Wed Sep 05 2012 Václav Pavlín <vpavlin@redhat.com> - 3.99.5-7
809a3f
- Scriptlets replaced with new systemd macros (#850093)
809a3f
809a3f
* Tue Aug 28 2012 David Teigland <teigland@redhat.com> - 3.99.5-6
809a3f
- only fedora requires kernel-modules-extra
809a3f
809a3f
* Thu Aug 16 2012 David Teigland <teigland@redhat.com> - 3.99.5-5
809a3f
- dlm_controld: remove fence_all from cli
809a3f
809a3f
* Thu Aug 16 2012 David Teigland <teigland@redhat.com> - 3.99.5-4
809a3f
- dlm_stonith: include errno.h
809a3f
809a3f
* Thu Aug 16 2012 David Teigland <teigland@redhat.com> - 3.99.5-3
809a3f
- dlm_controld: fix uninitialized mem for fence_all config
809a3f
809a3f
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.99.5-2
809a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
809a3f
809a3f
* Thu Jun 21 2012 David Teigland <teigland@redhat.com> - 3.99.5-1
809a3f
- New upstream release
809a3f
809a3f
* Wed May 30 2012 David Teigland <teigland@redhat.com> - 3.99.4-2
809a3f
- Limit rhel arches
809a3f
809a3f
* Mon May 21 2012 David Teigland <teigland@redhat.com> - 3.99.4-1
809a3f
- New upstream release
809a3f
809a3f
* Mon May 14 2012 David Teigland <teigland@redhat.com> - 3.99.3-1
809a3f
- New upstream release
809a3f
809a3f
* Wed Apr 11 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.2-1
809a3f
- New upstream release
809a3f
809a3f
* Thu Mar 29 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.1-4
809a3f
- Merge back from F17
809a3f
809a3f
* Wed Mar 21 2012 David Teigland <teigland@redhat.com> - 3.99.1-3
809a3f
- Fix dlm_stonith linking
809a3f
809a3f
* Wed Mar 21 2012 David Teigland <teigland@redhat.com> - 3.99.1-2
809a3f
- Require pacemaker-libs-devel to build dlm_stonith
809a3f
809a3f
* Wed Mar 21 2012 David Teigland <teigland@redhat.com> - 3.99.1-1
809a3f
- Update to 3.99.1
809a3f
809a3f
* Fri Mar 16 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-8
809a3f
- Rebuild against new corosync (soname change).
809a3f
809a3f
* Thu Feb 16 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-7
809a3f
- Update to upstream HEAD 2ad89c869git.
809a3f
- Bump BuildRequires and Requires to new corosync
809a3f
809a3f
* Mon Feb 13 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-6
809a3f
- Fix init/systemd service to use /etc/sysconfig/dlm
809a3f
809a3f
* Mon Feb  6 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-5
809a3f
- Fix systemd service to recognize /etc/sysconfig/dlm_controld
809a3f
809a3f
* Fri Feb  3 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-4
809a3f
- Fix systemd service to modprobe dlm
809a3f
809a3f
* Fri Feb  3 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-3
809a3f
- Add patch to fix udev rules and make sure dlm_controld can find
809a3f
  its devices
809a3f
809a3f
* Thu Feb  2 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-2
809a3f
- Add Conflicts with clusterlib/cman as necessary
809a3f
809a3f
* Tue Jan 24 2012 David Teigland <teigland@redhat.com> - 3.99.0-1
809a3f
- initial package
809a3f