2023-05-11 14:11:13 +08:00
|
|
|
Name: dlm
|
2023-12-26 16:26:21 +08:00
|
|
|
Version: 4.2.0
|
|
|
|
|
Release: 1
|
2023-05-11 14:11:13 +08:00
|
|
|
License: GPLv2 and GPLv2+ and LGPLv2+
|
|
|
|
|
Group: System Environment/Kernel
|
|
|
|
|
Summary: dlm control daemon and tool
|
|
|
|
|
URL: https://pagure.io/dlm
|
|
|
|
|
BuildRequires: glibc-kernheaders
|
|
|
|
|
BuildRequires: corosynclib-devel >= 1.99.9
|
|
|
|
|
BuildRequires: pacemaker-libs-devel >= 1.1.7
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
BuildRequires: systemd-devel
|
2023-12-26 16:26:21 +08:00
|
|
|
BuildRequires: annobin
|
2023-05-11 14:11:13 +08:00
|
|
|
Source0: https://releases.pagure.org/dlm/%{name}-%{version}.tar.gz
|
2023-07-18 15:16:45 +08:00
|
|
|
Patch0001: 0030-dlm_controld-remove-unnecessary-header-include.patch
|
2023-05-11 14:11:13 +08:00
|
|
|
|
|
|
|
|
Requires: %{name}-lib = %{version}-%{release}
|
|
|
|
|
Requires: corosync >= 1.99.9
|
|
|
|
|
Requires(post): systemd-units
|
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
Conflicts: cman
|
|
|
|
|
|
2023-07-18 15:16:45 +08:00
|
|
|
|
2023-05-11 14:11:13 +08:00
|
|
|
%description
|
|
|
|
|
The kernel dlm requires a user daemon to control membership.
|
|
|
|
|
|
|
|
|
|
%package lib
|
|
|
|
|
Summary: Library for %{name}
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
Conflicts: clusterlib
|
|
|
|
|
|
|
|
|
|
%description lib
|
|
|
|
|
The %{name}-lib package contains the libraries needed to use the dlm
|
|
|
|
|
from userland applications.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name}-lib = %{version}-%{release}
|
|
|
|
|
Conflicts: clusterlib-devel
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-07-18 15:16:45 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2023-12-26 16:26:21 +08:00
|
|
|
%ifarch aarch64
|
|
|
|
|
sed -i 's/-fcf-protection=full//g' libdlm/Makefile
|
|
|
|
|
sed -i 's/-fcf-protection=full//g' dlm_controld/Makefile
|
|
|
|
|
sed -i 's/-fcf-protection=full//g' dlm_tool/Makefile
|
|
|
|
|
sed -i 's/-fcf-protection=full//g' fence/Makefile
|
|
|
|
|
%endif
|
2023-05-11 14:11:13 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
CFLAGS+=$RPM_OPT_FLAGS make
|
|
|
|
|
CFLAGS+=$RPM_OPT_FLAGS make -C fence
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
make install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
make -C fence install LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
|
|
|
|
|
install -Dm 0644 init/dlm.sysconfig %{buildroot}/etc/sysconfig/dlm
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post dlm.service
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun dlm.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart dlm.service
|
|
|
|
|
|
|
|
|
|
%post lib -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun lib -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc README.license
|
|
|
|
|
%{_unitdir}/dlm.service
|
|
|
|
|
%{_sbindir}/dlm_controld
|
|
|
|
|
%{_sbindir}/dlm_tool
|
|
|
|
|
%{_sbindir}/dlm_stonith
|
|
|
|
|
%{_mandir}/man8/dlm*
|
|
|
|
|
%{_mandir}/man5/dlm*
|
|
|
|
|
%{_mandir}/man3/*dlm*
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/dlm
|
|
|
|
|
|
|
|
|
|
%files lib
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_prefix}/lib/udev/rules.d/*-dlm.rules
|
|
|
|
|
%{_libdir}/libdlm*.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_libdir}/libdlm*.so
|
|
|
|
|
%{_includedir}/libdlm*.h
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-12-26 16:26:21 +08:00
|
|
|
* Tue Dec 26 2023 Ge Wang <wang__ge@126.com> - 4.2.0-1
|
|
|
|
|
- Update to version 4.2.0
|
|
|
|
|
|
2023-07-18 15:16:45 +08:00
|
|
|
* Tue Jul 18 2023 chenchen <chen_aka_jan@163.com> - 4.1.0-2
|
|
|
|
|
- dlm_controld: remove unnecessary header include
|
|
|
|
|
|
2023-05-11 14:11:13 +08:00
|
|
|
* Thu May 11 2023 xuxiaojuan <xuxiaojuan@kylinos.cn> - 4.1.0-1
|
|
|
|
|
- Package init
|
|
|
|
|
|