2012-02-01 07:13:13 +00:00
|
|
|
Name: dlm
|
2012-03-21 20:33:42 +00:00
|
|
|
Version: 3.99.1
|
2012-03-21 20:53:13 +00:00
|
|
|
Release: 2%{?dist}
|
2012-02-01 07:13:13 +00:00
|
|
|
License: GPLv2 and GPLv2+ and LGPLv2+
|
|
|
|
# For a breakdown of the licensing, see README.license
|
|
|
|
Group: System Environment/Kernel
|
|
|
|
Summary: Cluster control daemon and tool
|
|
|
|
URL: https://fedorahosted.org/cluster
|
|
|
|
BuildRequires: glibc-kernheaders
|
2012-03-21 20:33:42 +00:00
|
|
|
BuildRequires: corosynclib-devel >= 1.99.7
|
2012-03-21 20:53:13 +00:00
|
|
|
BuildRequires: pacemaker-libs-devel >= 1.1.7
|
2012-02-01 07:20:40 +00:00
|
|
|
BuildRequires: libxml2-devel
|
2012-02-01 07:13:13 +00:00
|
|
|
BuildRequires: systemd-units
|
|
|
|
Source0: http://people.redhat.com/teigland/%{name}-%{version}.tar.gz
|
|
|
|
|
2012-02-16 11:38:24 +00:00
|
|
|
Requires: %{name}-lib = %{version}-%{release}
|
2012-03-21 20:33:42 +00:00
|
|
|
Requires: corosync >= 1.99.7
|
2012-02-01 07:13:13 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
2012-02-02 10:21:01 +00:00
|
|
|
Conflicts: cman
|
2012-02-01 07:13:13 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The kernel dlm requires a user daemon to control cluster membership.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
# upstream does not require configure
|
|
|
|
# upstream does not support _smp_mflags
|
|
|
|
CFLAGS=$RPM_OPT_FLAGS make
|
2012-03-21 20:33:42 +00:00
|
|
|
CFLAGS=$RPM_OPT_FLAGS make -C fence
|
2012-02-01 07:13:13 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
2012-03-21 20:33:42 +00:00
|
|
|
make -C fence install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
2012-02-01 07:13:13 +00:00
|
|
|
|
|
|
|
install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ $1 -eq 1 ] ; then
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
/bin/systemctl --no-reload disable dlm.service > /dev/null 2>&1 || :
|
|
|
|
/bin/systemctl stop dlm.service > /dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
if [ $1 -ge 1 ] ; then
|
|
|
|
/bin/systemctl try-restart dlm.service >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.license
|
|
|
|
%{_unitdir}/dlm.service
|
|
|
|
%{_sbindir}/dlm_controld
|
|
|
|
%{_sbindir}/dlm_tool
|
2012-03-21 20:33:42 +00:00
|
|
|
%{_sbindir}/dlm_stonith
|
2012-02-01 07:13:13 +00:00
|
|
|
%{_mandir}/man8/dlm*
|
|
|
|
%{_mandir}/man3/*dlm*
|
|
|
|
|
|
|
|
%package lib
|
|
|
|
Summary: Library for %{name}
|
|
|
|
Group: System Environment/Libraries
|
2012-02-02 10:21:01 +00:00
|
|
|
Conflicts: clusterlib
|
2012-02-01 07:13:13 +00:00
|
|
|
|
|
|
|
%description lib
|
|
|
|
The %{name}-lib package contains the libraries needed to use the dlm
|
|
|
|
from userland applications.
|
|
|
|
|
|
|
|
%post lib -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun lib -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files lib
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/lib/udev/rules.d/*-dlm.rules
|
|
|
|
%{_libdir}/libdlm*.so.*
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-lib = %{version}-%{release}
|
2012-02-02 10:21:01 +00:00
|
|
|
Conflicts: clusterlib-devel
|
2012-02-01 07:13:13 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libdlm*.so
|
|
|
|
%{_includedir}/libdlm*.h
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|
2012-03-21 20:53:13 +00:00
|
|
|
* Wed Mar 21 2012 David Teigland <teigland@redhat.com> - 3.99.1-2
|
|
|
|
- Require pacemaker-libs-devel to build dlm_stonith
|
|
|
|
|
2012-03-21 20:33:42 +00:00
|
|
|
* Wed Mar 21 2012 David Teigland <teigland@redhat.com> - 3.99.1-1
|
|
|
|
- Update to 3.99.1
|
|
|
|
|
2012-02-16 11:38:24 +00:00
|
|
|
* Thu Feb 16 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-7
|
|
|
|
- Update to upstream HEAD 2ad89c869git.
|
|
|
|
- Bump BuildRequires and Requires to new corosync
|
|
|
|
|
2012-02-13 05:19:35 +00:00
|
|
|
* Mon Feb 13 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-6
|
|
|
|
- Fix init/systemd service to use /etc/sysconfig/dlm
|
|
|
|
|
2012-02-06 12:32:46 +00:00
|
|
|
* Mon Feb 6 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-5
|
|
|
|
- Fix systemd service to recognize /etc/sysconfig/dlm_controld
|
|
|
|
|
2012-02-03 15:42:50 +00:00
|
|
|
* Fri Feb 3 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-4
|
|
|
|
- Fix systemd service to modprobe dlm
|
|
|
|
|
2012-02-03 14:27:12 +00:00
|
|
|
* Fri Feb 3 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-3
|
|
|
|
- Add patch to fix udev rules and make sure dlm_controld can find
|
|
|
|
its devices
|
|
|
|
|
2012-02-02 10:21:01 +00:00
|
|
|
* Thu Feb 2 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.99.0-2
|
|
|
|
- Add Conflicts with clusterlib/cman as necessary
|
|
|
|
|
2012-02-01 07:13:13 +00:00
|
|
|
* Tue Jan 24 2012 David Teigland <teigland@redhat.com> - 3.99.0-1
|
|
|
|
- initial package
|
|
|
|
|