modify spec file for avoiding errors during installation and uninstallation

Signed-off-by: eulerstorage <eulerstorage@huawei.com>
This commit is contained in:
eulerstorage 2019-12-24 16:44:40 +08:00
parent 6a8f14b8c4
commit 3ae14cc693

View File

@ -60,7 +60,7 @@ Name: udisks2
Summary: Disk Manager Summary: Disk Manager
Version: 2.8.1 Version: 2.8.1
%if %{is_git} == 0 %if %{is_git} == 0
Release: 2 Release: 3
%else %else
Release: 0.%{build_date}git%{git_hash}%{?dist} Release: 0.%{build_date}git%{git_hash}%{?dist}
%endif %endif
@ -321,29 +321,22 @@ chrpath --delete %{buildroot}/%{_libexecdir}/udisks2/udisksd
%post -n %{name} %post -n %{name}
%systemd_post udisks2.service %systemd_post udisks2.service
%systemd_post clean-mount-point@.service
udevadm control --reload
udevadm trigger udevadm trigger
%preun -n %{name} %preun -n %{name}
%systemd_preun udisks2.service %systemd_preun udisks2.service
%systemd_preun clean-mount-point@.service
%postun -n %{name} %postun -n %{name}
%systemd_postun_with_restart udisks2.service %systemd_postun_with_restart udisks2.service
%systemd_postun clean-mount-point@.service
%ldconfig_scriptlets -n lib%{name} %ldconfig_scriptlets -n lib%{name}
%if 0%{?with_zram} %if 0%{?with_zram}
%post -n %{name}-zram %post -n %{name}-zram
%systemd_post zram-setup@.service
%preun -n %{name}-zram %preun -n %{name}-zram
%systemd_preun zram-setup@.service
%postun -n %{name}-zram %postun -n %{name}-zram
%systemd_postun zram-setup@.service
%endif %endif
%files -f udisks2.lang %files -f udisks2.lang
@ -444,6 +437,12 @@ udevadm trigger
%endif %endif
%changelog %changelog
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.8.1-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:avoid errors during installation and uninstallation
* Tue Sep 05 2019 suweifeng <suweifeng1@huawei.com> - 2.8.1-2 * Tue Sep 05 2019 suweifeng <suweifeng1@huawei.com> - 2.8.1-2
- Type:enhancemnet - Type:enhancemnet
- ID:NA - ID:NA