[fcitx] Fix mistakes on Line 143 and Line 146
Liang Suilong
liangsuilong at fedoraproject.org
Mon Aug 1 18:12:28 UTC 2011
commit 3999e2d18f39ddc71df3da0a88b558518da1d13a
Author: Fedora <fedora at fedora-desktop.(none)>
Date: Tue Aug 2 02:11:35 2011 +0800
Fix mistakes on Line 143 and Line 146
fcitx.spec | 8 ++------
fcitx.spec~ | 4 ++--
2 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/fcitx.spec b/fcitx.spec
index a715f91..beb1bff 100644
--- a/fcitx.spec
+++ b/fcitx.spec
@@ -140,20 +140,16 @@ install -pm 644 -D %{SOURCE1} %{buildroot}%{_xinputconf}
%clean
rm -rf %{buildroot}
-%post
+%post -p /sbin/ldconfig
%{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_xinputconf} 55 || :
-%postun
+%postun -p /sbin/ldconfig
if [ "$1" = "0" ]; then
%{_sbindir}/alternatives --remove xinputrc %{_xinputconf} || :
# if alternative was set to manual, reset to auto
[ -L %{_sysconfdir}/alternatives/xinputrc -a "`readlink %{_sysconfdir}/alternatives/xinputrc`" = "%{_xinputconf}" ] && %{_sbindir}/alternatives --auto xinputrc || :
fi
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog THANKS TODO COPYING
diff --git a/fcitx.spec~ b/fcitx.spec~
index 0353774..a715f91 100644
--- a/fcitx.spec~
+++ b/fcitx.spec~
@@ -150,9 +150,9 @@ if [ "$1" = "0" ]; then
[ -L %{_sysconfdir}/alternatives/xinputrc -a "`readlink %{_sysconfdir}/alternatives/xinputrc`" = "%{_xinputconf}" ] && %{_sbindir}/alternatives --auto xinputrc || :
fi
-%post libs -p /sbin/ldconfig
+%post -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root,-)
More information about the scm-commits
mailing list