From 8057138cdc3a4a963206c12a11bdeb35d32140f2 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Tue, 18 Oct 2022 16:38:36 +0800 Subject: [PATCH] optimise spec file --- mdadm.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mdadm.spec b/mdadm.spec index 60475b1..aaf6519 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 Name: mdadm Version: 4.2 @@ -62,6 +62,8 @@ install -d -m 0710 %{buildroot}/run/%{name}/ mkdir -p %{buildroot}/etc/libreport/events.d install -m644 %{SOURCE6} %{buildroot}/etc/libreport/events.d +%generate_compatibility_deps + %post %systemd_post mdmonitor.service raid-check.timer %{_bindir}/systemctl disable mdmonitor-takeover.service >/dev/null 2>&1 || : @@ -73,10 +75,12 @@ install -m644 %{SOURCE6} %{buildroot}/etc/libreport/events.d %systemd_postun_with_restart mdmonitor.service %files +%dir %{abidir} %license COPYING %doc mdadm.conf-example misc/* %{_udevrulesdir}/* %{_sbindir}/* +%{abidir}/*-option.list %{_unitdir}/* %{_mandir}/man*/md* /usr/lib/systemd/system-shutdown/* @@ -86,6 +90,9 @@ install -m644 %{SOURCE6} %{buildroot}/etc/libreport/events.d /etc/libreport/events.d/* %changelog +* Tue Oct 18 2022 mgb01105731 - 4.2-3 +- optimise spec file + * Fri Apr 22 2022 gcdota930915 - 4.2-2 - Remove requirement libreport-filesystem -- Gitee