be23240
Name:           dlm
605fb81
Version:        4.0.1
28770e4
Release:        2%{?dist}
be23240
License:        GPLv2 and GPLv2+ and LGPLv2+
be23240
# For a breakdown of the licensing, see README.license
be23240
Group:          System Environment/Kernel
605fb81
Summary:        dlm control daemon and tool
be23240
URL:            https://fedorahosted.org/cluster
be23240
BuildRequires:  glibc-kernheaders
74cba63
BuildRequires:  corosynclib-devel >= 1.99.9
810a2be
BuildRequires:  pacemaker-libs-devel >= 1.1.7
05e0955
BuildRequires:  libxml2-devel
be23240
BuildRequires:  systemd-units
9942768
BuildRequires:  systemd-devel
be23240
Source0:	http://people.redhat.com/teigland/%{name}-%{version}.tar.gz
be23240
9942768
#Patch0: 0001-foo.patch
311152f
f5a9877
%if 0%{?rhel}
f5a9877
ExclusiveArch: i686 x86_64
f5a9877
%endif
f5a9877
ee6c2ef
Requires:       %{name}-lib = %{version}-%{release}
74cba63
Requires:       corosync >= 1.99.9
d2bcec6
%{?fedora:Requires: kernel-modules-extra}
be23240
Requires(post): systemd-units
be23240
Requires(preun): systemd-units
be23240
Requires(postun): systemd-units
e641fe4
Conflicts: cman
be23240
be23240
%description
605fb81
The kernel dlm requires a user daemon to control membership.
be23240
be23240
%prep
be23240
%setup -q
9942768
#%patch0 -p1 -b .0001-foo.patch
be23240
be23240
%build
be23240
# upstream does not require configure
be23240
# upstream does not support _smp_mflags
be23240
CFLAGS=$RPM_OPT_FLAGS make
4f6f606
CFLAGS=$RPM_OPT_FLAGS make -C fence
be23240
be23240
%install
be23240
rm -rf $RPM_BUILD_ROOT
be23240
make install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
4f6f606
make -C fence install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
be23240
be23240
install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
18afd52
install -Dm 0644 init/dlm.sysconfig %{buildroot}/etc/sysconfig/dlm
be23240
be23240
%post
5b976e5
%systemd_post dlm.service
be23240
be23240
%preun
5b976e5
%systemd_preun dlm.service
be23240
be23240
%postun
5b976e5
%systemd_postun_with_restart dlm.service
be23240
be23240
%files
be23240
%defattr(-,root,root,-)
be23240
%doc README.license
be23240
%{_unitdir}/dlm.service
be23240
%{_sbindir}/dlm_controld
be23240
%{_sbindir}/dlm_tool
4f6f606
%{_sbindir}/dlm_stonith
be23240
%{_mandir}/man8/dlm*
37e7a15
%{_mandir}/man5/dlm*
be23240
%{_mandir}/man3/*dlm*
18afd52
%config(noreplace) %{_sysconfdir}/sysconfig/dlm
be23240
be23240
%package        lib
be23240
Summary:        Library for %{name}
be23240
Group:          System Environment/Libraries
e641fe4
Conflicts:      clusterlib
be23240
be23240
%description    lib
be23240
The %{name}-lib package contains the libraries needed to use the dlm
be23240
from userland applications.
be23240
be23240
%post lib -p /sbin/ldconfig
be23240
be23240
%postun lib -p /sbin/ldconfig
be23240
be23240
%files          lib
be23240
%defattr(-,root,root,-)
be23240
/lib/udev/rules.d/*-dlm.rules
be23240
%{_libdir}/libdlm*.so.*
be23240
be23240
%package        devel
be23240
Summary:        Development files for %{name}
be23240
Group:          Development/Libraries
be23240
Requires:       %{name}-lib = %{version}-%{release}
e641fe4
Conflicts:      clusterlib-devel
be23240
be23240
%description    devel
be23240
The %{name}-devel package contains libraries and header files for
be23240
developing applications that use %{name}.
be23240
be23240
%files          devel
be23240
%defattr(-,root,root,-)
be23240
%{_libdir}/libdlm*.so
be23240
%{_includedir}/libdlm*.h
be23240
%{_libdir}/pkgconfig/*.pc
be23240
be23240
%changelog
28770e4
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2
28770e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
28770e4
605fb81
* Wed Mar 06 2013 David Teigland <teigland@redhat.com> - 4.0.1-1
605fb81
- New usptream release, fencing fixes
605fb81
de34af9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-8
de34af9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
de34af9
9942768
* Tue Nov 06 2012 David Teigland <teigland@redhat.com> - 4.0.0-1
9942768
- New upstream release, systemd fixes
9942768
5b976e5
* Wed Sep 05 2012 Václav Pavlín <vpavlin@redhat.com> - 3.99.5-7
5b976e5
- Scriptlets replaced with new systemd macros (#850093)
5b976e5
d2bcec6
* Tue Aug 28 2012 David Teigland <teigland@redhat.com> - 3.99.5-6
d2bcec6
- only fedora requires kernel-modules-extra
d2bcec6
0c7d035
* Thu Aug 16 2012 David Teigland <teigland@redhat.com> - 3.99.5-5
0c7d035
- dlm_controld: remove fence_all from cli
0c7d035
a95315d
* Thu Aug 16 2012 David Teigland <teigland@redhat.com> - 3.99.5-4
a95315d
- dlm_stonith: include errno.h
a95315d
311152f
* Thu Aug 16 2012 David Teigland <teigland@redhat.com> - 3.99.5-3
311152f
- dlm_controld: fix uninitialized mem for fence_all config
311152f
2aa4a98
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.99.5-2
2aa4a98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2aa4a98
18afd52
* Thu Jun 21 2012 David Teigland <teigland@redhat.com> - 3.99.5-1
18afd52
- New upstream release
18afd52
f5a9877
* Wed May 30 2012 David Teigland <teigland@redhat.com> - 3.99.4-2
f5a9877
- Limit rhel arches
f5a9877
2c58e6e
* Mon May 21 2012 David Teigland <teigland@redhat.com> - 3.99.4-1
2c58e6e
- New upstream release
2c58e6e
5035508
* Mon May 14 2012 David Teigland <teigland@redhat.com> - 3.99.3-1
5035508
- New upstream release
5035508
1685cae
* Wed Apr 11 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.2-1
37e7a15
- New upstream release
37e7a15
74cba63
* Thu Mar 29 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.1-4
74cba63
- Merge back from F17
74cba63
33e57f0
* Wed Mar 21 2012 David Teigland <teigland@redhat.com> - 3.99.1-3
33e57f0
- Fix dlm_stonith linking
33e57f0
810a2be
* Wed Mar 21 2012 David Teigland <teigland@redhat.com> - 3.99.1-2
810a2be
- Require pacemaker-libs-devel to build dlm_stonith
810a2be
4f6f606
* Wed Mar 21 2012 David Teigland <teigland@redhat.com> - 3.99.1-1
4f6f606
- Update to 3.99.1
4f6f606
bfd3627
* Fri Mar 16 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-8
bfd3627
- Rebuild against new corosync (soname change).
bfd3627
ee6c2ef
* Thu Feb 16 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-7
ee6c2ef
- Update to upstream HEAD 2ad89c869git.
ee6c2ef
- Bump BuildRequires and Requires to new corosync
ee6c2ef
a3710f7
* Mon Feb 13 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-6
a3710f7
- Fix init/systemd service to use /etc/sysconfig/dlm
a3710f7
c2aae11
* Mon Feb  6 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-5
c2aae11
- Fix systemd service to recognize /etc/sysconfig/dlm_controld
c2aae11
28ba073
* Fri Feb  3 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-4
28ba073
- Fix systemd service to modprobe dlm
28ba073
03271b2
* Fri Feb  3 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-3
03271b2
- Add patch to fix udev rules and make sure dlm_controld can find
03271b2
  its devices
03271b2
e641fe4
* Thu Feb  2 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-2
e641fe4
- Add Conflicts with clusterlib/cman as necessary
e641fe4
be23240
* Tue Jan 24 2012 David Teigland <teigland@redhat.com> - 3.99.0-1
be23240
- initial package
be23240